init
This commit is contained in:
15
lib/modules/test/fixtures/channels.js
vendored
Normal file
15
lib/modules/test/fixtures/channels.js
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
module.exports = [
|
||||
{
|
||||
room_jid: 'admin@room.example.com',
|
||||
subject: 'Admin Room',
|
||||
config: '<x type=\'submit\' xmlns=\'jabber:x:data\'><field type=\'boolean\' var=\'persistent\'><value>1</value></field><field type=\'text-single\' var=\'max-persistent-history\'><value>15</value></field><field type=\'boolean\' var=\'open-membership\'><value>1</value></field><field type=\'boolean\' var=\'members-only\'><value>0</value></field><field type=\'boolean\' var=\'allow-gc\'><value>1</value></field><field type=\'boolean\' var=\'anonymous\'><value>1</value></field><field type=\'boolean\' var=\'show-unavailable\'><value>1</value></field><field type=\'list-single\' var=\'invite-role\'><value>participant</value></field><field type=\'boolean\' var=\'password\'><value>0</value></field><field type=\'text-private\' var=\'secret\'><value/></field><field type=\'list-single\' var=\'subject-acl\'><value>moderator</value></field><field type=\'boolean\' var=\'strip-xhtml\'><value>0</value></field><field type=\'boolean\' var=\'moderated-room\'><value>0</value></field></x>',
|
||||
}, {
|
||||
room_jid: 'test\\20room@room.example.com',
|
||||
subject: '',
|
||||
config: '<x type=\'submit\' xmlns=\'jabber:x:data\'><field type=\'boolean\' var=\'persistent\'><value>1</value></field><field type=\'text-single\' var=\'max-persistent-history\'><value>15</value></field><field type=\'boolean\' var=\'open-membership\'><value>1</value></field><field type=\'boolean\' var=\'members-only\'><value>0</value></field><field type=\'boolean\' var=\'allow-gc\'><value>1</value></field><field type=\'boolean\' var=\'anonymous\'><value>0</value></field><field type=\'boolean\' var=\'show-unavailable\'><value>1</value></field><field type=\'list-single\' var=\'invite-role\'><value>participant</value></field><field type=\'boolean\' var=\'password\'><value>0</value></field><field type=\'text-private\' var=\'secret\'><value/></field><field type=\'list-single\' var=\'subject-acl\'><value>moderator</value></field><field type=\'boolean\' var=\'strip-xhtml\'><value>0</value></field><field type=\'boolean\' var=\'moderated-room\'><value>0</value></field></x>',
|
||||
}, {
|
||||
room_jid: 'tonyd_20161206_1432@room.example.com',
|
||||
subject: '',
|
||||
config: '<x type=\'submit\' xmlns=\'jabber:x:data\'><field type=\'boolean\' var=\'persistent\'><value>1</value></field><field type=\'text-single\' var=\'max-persistent-history\'><value>15</value></field><field type=\'boolean\' var=\'open-membership\'><value>1</value></field><field type=\'boolean\' var=\'members-only\'><value>0</value></field><field type=\'boolean\' var=\'allow-gc\'><value>1</value></field><field type=\'boolean\' var=\'anonymous\'><value>0</value></field><field type=\'boolean\' var=\'show-unavailable\'><value>1</value></field><field type=\'list-single\' var=\'invite-role\'><value>participant</value></field><field type=\'boolean\' var=\'password\'><value>0</value></field><field type=\'text-private\' var=\'secret\'><value/></field><field type=\'list-single\' var=\'subject-acl\'><value>moderator</value></field><field type=\'boolean\' var=\'strip-xhtml\'><value>0</value></field><field type=\'boolean\' var=\'moderated-room\'><value>0</value></field></x>',
|
||||
}
|
||||
]
|
||||
15
lib/modules/test/fixtures/directChannels.js
vendored
Normal file
15
lib/modules/test/fixtures/directChannels.js
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
module.exports = [
|
||||
{
|
||||
to_jid: 'person.one@example.com/rnq1gmague',
|
||||
from_jid: 'person.two@example.com/objc04v73q'
|
||||
}, {
|
||||
to_jid: 'person.one@example.com/rnq1gmague',
|
||||
from_jid: 'person.three@example.com/w32ugtn6ch'
|
||||
}, {
|
||||
to_jid: 'person.two@example.com',
|
||||
from_jid: 'person.one@example.com/blrjlefa3a'
|
||||
}, {
|
||||
to_jid: 'person.two@example.com/lhdms8czsw',
|
||||
from_jid: 'person.one@example.com/blrjlefa3a'
|
||||
}
|
||||
]
|
||||
27
lib/modules/test/fixtures/directPosts.js
vendored
Normal file
27
lib/modules/test/fixtures/directPosts.js
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
module.exports = [
|
||||
{
|
||||
to_jid: 'person.one@example.com/Jabber Messenger Desktop',
|
||||
from_jid: 'person.two@example.com/g1b9b8hs09',
|
||||
sent_date: '2017-06-10T03:50:28.513Z',
|
||||
body_string: 'message 01',
|
||||
body_text: ''
|
||||
}, {
|
||||
to_jid: 'person.one@example.com/Jabber Messenger Desktop',
|
||||
from_jid: 'person.three@example.com/g1b9b8hs09',
|
||||
sent_date: '2017-06-10T03:50:28.514Z',
|
||||
body_string: 'message 02',
|
||||
body_text: ''
|
||||
}, {
|
||||
to_jid: 'person.two@example.com/g1b9b8hs09',
|
||||
from_jid: 'person.one@example.com/Jabber Messenger Desktop',
|
||||
sent_date: '2017-06-10T03:50:28.515Z',
|
||||
body_string: '',
|
||||
body_text: 'message 03'
|
||||
}, {
|
||||
to_jid: 'person.two@example.com/g1b9b8hs09',
|
||||
from_jid: 'person.two@example.com/g1b9b8hs08',
|
||||
sent_date: '2017-06-10T03:50:28.515Z',
|
||||
body_string: 'This should not be exported',
|
||||
body_text: ''
|
||||
}
|
||||
]
|
||||
13
lib/modules/test/fixtures/index.js
vendored
Normal file
13
lib/modules/test/fixtures/index.js
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
const channels = require('./channels')
|
||||
const users = require('./users')
|
||||
const posts = require('./posts')
|
||||
const directChannels = require('./directChannels')
|
||||
const directPosts = require('./directPosts')
|
||||
|
||||
module.exports = {
|
||||
channels,
|
||||
users,
|
||||
posts,
|
||||
directChannels,
|
||||
directPosts
|
||||
}
|
||||
43
lib/modules/test/fixtures/posts.js
vendored
Normal file
43
lib/modules/test/fixtures/posts.js
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
module.exports = {
|
||||
|
||||
ok: [{
|
||||
msg_id: '3315',
|
||||
to_jid: 'uat-appsupport@conference.example.com',
|
||||
from_jid: 'micahel.cross@example.com',
|
||||
sent_date: '2017-06-05T20:08:38.263Z',
|
||||
body_string: 'I meant thick',
|
||||
body_text: ''
|
||||
}, {
|
||||
msg_id: '3334',
|
||||
to_jid: 'uat-appsupport@conference.example.com',
|
||||
from_jid: 'micahel.cross@example.com',
|
||||
sent_date: '2017-06-05T20:08:38.263Z',
|
||||
body_string: 'that is when I came on again',
|
||||
body_text: ''
|
||||
}],
|
||||
|
||||
userNotFound: [{
|
||||
msg_id: '3334',
|
||||
to_jid: 'uat-appsupport@conference.example.com',
|
||||
from_jid: 'terrence.flynn@example.com',
|
||||
sent_date: '2017-06-05T20:08:38.263Z',
|
||||
body_string: 'that is when I came on again',
|
||||
body_text: ''
|
||||
}, {
|
||||
msg_id: '3315',
|
||||
to_jid: 'uat-appsupport@conference.example.com',
|
||||
from_jid: 'micahel.cross@example.com',
|
||||
sent_date: '2017-06-05T20:08:38.263Z',
|
||||
body_string: 'I meant thick',
|
||||
body_text: ''
|
||||
}],
|
||||
|
||||
bodyNotFound: [{
|
||||
msg_id: '3315',
|
||||
to_jid: 'uat-appsupport@conference.example.com',
|
||||
from_jid: 'micahel.cross@example.com',
|
||||
sent_date: '2017-06-05T20:08:38.263Z',
|
||||
body_string: '',
|
||||
body_text: ''
|
||||
}]
|
||||
}
|
||||
57
lib/modules/test/fixtures/users.js
vendored
Normal file
57
lib/modules/test/fixtures/users.js
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
module.exports = [
|
||||
{
|
||||
room_jid: 'admin@conference.example.com',
|
||||
real_jid: 'micahel.cross@example.com'
|
||||
}, {
|
||||
room_jid: 'admin@conference.example.com',
|
||||
real_jid: 'sbarclay@example.com'
|
||||
}, {
|
||||
room_jid: 'uat-appsupport@conference.example.com',
|
||||
real_jid: 'anthony.brown@example.com'
|
||||
}, {
|
||||
room_jid: 'uat-appsupport@conference.example.com',
|
||||
real_jid: 'james.seegar1@example.com'
|
||||
}, {
|
||||
room_jid: 'uat-appsupport@conference.example.com',
|
||||
real_jid: 'jarrett.jennings2@example.com'
|
||||
}, {
|
||||
room_jid: 'uat-appsupport@conference.example.com',
|
||||
real_jid: 'micahel.cross@example.com'
|
||||
}, {
|
||||
room_jid: 'uat-appsupport@conference.example.com',
|
||||
real_jid: 'michael.rhoades3@example.com'
|
||||
}, {
|
||||
room_jid: 'uat-appsupport@conference.example.com',
|
||||
real_jid: 'michael.rock@example.com'
|
||||
}, {
|
||||
room_jid: 'uat-appsupport@conference.example.com',
|
||||
real_jid: 'terrence.flynn@example.com'
|
||||
}, {
|
||||
room_jid: 'uat-appsupport@conference.example.com',
|
||||
real_jid: 'tony.dilisio2@example.com'
|
||||
}, {
|
||||
room_jid: 'uat-appsupport@conference.example.com',
|
||||
real_jid: 'william.fleming2@example.com'
|
||||
}, {
|
||||
room_jid: 'test\\20room@conference.example.com',
|
||||
real_jid: 'lt.u755@example.com'
|
||||
}, {
|
||||
room_jid: 'test\\20room@conference.example.com',
|
||||
real_jid: 'lt.u755@example.com/9fyg1zayoi'
|
||||
}, {
|
||||
room_jid: 'the\\20cool\\20room@conference.example.com',
|
||||
real_jid: 'cody.webb@example.com'
|
||||
}, {
|
||||
room_jid: 'tonyd_20161206_1432@conference.example.com',
|
||||
real_jid: 'tony.dilisio2@example.com'
|
||||
}, {
|
||||
room_jid: 'tonyd_20161206_1432@conference.example.com',
|
||||
real_jid: 'julie..sokol@example.com'
|
||||
}, {
|
||||
real_jid: 'mbcross',
|
||||
room_jid: null
|
||||
},{
|
||||
real_jid: 'cross,\\20michael@chat.dhs.gov',
|
||||
room_jid: null
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user