=== Test case: muc_light_http_api_SUITE:invite_to_room/1 (click for source code)
=== Config value:
[{watchdog,<0.8267.1>},
{mim_data_dir,"/home/circleci/project/big_tests/tests/muc_light_http_api_SUITE_data"},
{preset,"riak_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@22b4515d438b.2022-04-05_07.43.19/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-04-05_07.54.26/muc_light_http_api_suite.invite_to_room.39939.html"},
{tc_group_properties,[{name,positive},parallel]},
{tc_group_path,[]},
{data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/muc_light_http_api_SUITE_data/"},
{priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@22b4515d438b.2022-04-05_07.43.19/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-04-05_07.54.26/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_amp => [],
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{number_of_segments => 5,strategy => fifo,time_to_live => 2},
mod_carboncopy => [],mod_commands => [],
mod_disco =>
#{extra_domains => [],iqdisc => one_queue,server_info => [],
users_can_see_hidden_services => false},
mod_muc_commands => [],mod_muc_light_commands => [],
mod_register =>
[{access,register},
{ip_access,[{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
{welcome_message,{[],[]}}],
mod_roster =>
#{backend => riak,iqdisc => one_queue,
riak =>
#{bucket_type => <<"rosters">>,
version_bucket_type => <<"roster_versions">>},
store_current_id => false,versioning => false},
mod_sic => #{iqdisc => one_queue},
mod_stream_management =>
#{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
buffer_max => 100,resume_timeout => 600,
stale_h =>
#{enabled => false,geriatric => 3600,repeat_after => 1800}},
mod_vcard =>
#{backend => riak,
host => {prefix,<<"vjud.">>},
iqdisc => parallel,matches => 30,
riak =>
#{bucket_type => <<"vcard">>,search_index => <<"vcard">>},
search => true}}},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"localhost">>},
{password,<<"makrolika">>}]},
{kate,[{username,<<"kate">>},
{server,<<"localhost">>},
{password,<<"makrowe;p">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@22b4515d438b.2022-04-05_07.43.19"
=== Started at 2022-04-05 07:54:26
*** User 2022-04-05 07:54:26.665 ***
alicE_invite_to_room_1174@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-04-05 07:54:26.667 ***
alicE_invite_to_room_1174@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dc72a25c61547446' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-05 07:54:26.667 ***
alicE_invite_to_room_1174@localhost/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-04-05 07:54:26.667 ***
alicE_invite_to_room_1174@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludml0ZV90b19yb29tXzExNzQAbWF0eWdyeXNh</auth>
*** User 2022-04-05 07:54:26.671 ***
alicE_invite_to_room_1174@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-04-05 07:54:26.671 ***
alicE_invite_to_room_1174@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-04-05 07:54:26.672 ***
alicE_invite_to_room_1174@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='15766334d1cb9be3' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-05 07:54:26.672 ***
alicE_invite_to_room_1174@localhost/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-04-05 07:54:26.672 ***
alicE_invite_to_room_1174@localhost/res1 out
<iq type='set' id='1ece8840c766724cb6af5110ec9ca684'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-04-05 07:54:26.673 ***
alicE_invite_to_room_1174@localhost/res1 in
<iq id='1ece8840c766724cb6af5110ec9ca684' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_invite_to_room_1174@localhost/res1</jid>
</bind>
</iq>
*** User 2022-04-05 07:54:26.673 ***
alicE_invite_to_room_1174@localhost/res1 out
<iq type='set' id='70ddeee7917df143c9f4d0628f11802e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-05 07:54:26.673 ***
alicE_invite_to_room_1174@localhost/res1 in
<iq type='result' id='70ddeee7917df143c9f4d0628f11802e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-05 07:54:26.674 ***
alicE_invite_to_room_1174@localhost/res1 out
<presence/>
*** User 2022-04-05 07:54:26.677 ***
alicE_invite_to_room_1174@localhost/res1 in
<presence from='alicE_invite_to_room_1174@localhost/res1' to='alice_invite_to_room_1174@localhost/res1' xml:lang='en'/>
*** User 2022-04-05 07:54:26.678 ***
bOb_invite_to_room_1174@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-04-05 07:54:26.681 ***
bOb_invite_to_room_1174@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='13114cc0a612649a' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-05 07:54:26.682 ***
bOb_invite_to_room_1174@localhost/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-04-05 07:54:26.682 ***
bOb_invite_to_room_1174@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZpdGVfdG9fcm9vbV8xMTc0AG1ha3JvbGlrYQ==</auth>
*** User 2022-04-05 07:54:26.687 ***
bOb_invite_to_room_1174@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-04-05 07:54:26.687 ***
bOb_invite_to_room_1174@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-04-05 07:54:26.687 ***
bOb_invite_to_room_1174@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4cfb519d8fc79c37' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-05 07:54:26.687 ***
bOb_invite_to_room_1174@localhost/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-04-05 07:54:26.687 ***
bOb_invite_to_room_1174@localhost/res1 out
<iq type='set' id='81f964f18317293da4a10c6b3e3d8dbf'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-04-05 07:54:26.688 ***
bOb_invite_to_room_1174@localhost/res1 in
<iq id='81f964f18317293da4a10c6b3e3d8dbf' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_invite_to_room_1174@localhost/res1</jid>
</bind>
</iq>
*** User 2022-04-05 07:54:26.688 ***
bOb_invite_to_room_1174@localhost/res1 out
<iq type='set' id='be9d0cbd71310d7ddfd8d44463bb3dd7'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-05 07:54:26.689 ***
bOb_invite_to_room_1174@localhost/res1 in
<iq type='result' id='be9d0cbd71310d7ddfd8d44463bb3dd7'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-05 07:54:26.689 ***
bOb_invite_to_room_1174@localhost/res1 out
<presence/>
*** User 2022-04-05 07:54:26.695 ***
bOb_invite_to_room_1174@localhost/res1 in
<presence from='bOb_invite_to_room_1174@localhost/res1' to='bob_invite_to_room_1174@localhost/res1' xml:lang='en'/>
*** User 2022-04-05 07:54:26.697 ***
kate_invite_to_room_1174@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-04-05 07:54:26.699 ***
kate_invite_to_room_1174@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='60c2ed63a9f22a70' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-05 07:54:26.699 ***
kate_invite_to_room_1174@localhost/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-04-05 07:54:26.699 ***
kate_invite_to_room_1174@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfaW52aXRlX3RvX3Jvb21fMTE3NABtYWtyb3dlO3A=</auth>
*** User 2022-04-05 07:54:26.702 ***
kate_invite_to_room_1174@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-04-05 07:54:26.702 ***
kate_invite_to_room_1174@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-04-05 07:54:26.702 ***
kate_invite_to_room_1174@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e81a849992189d33' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-05 07:54:26.702 ***
kate_invite_to_room_1174@localhost/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-04-05 07:54:26.702 ***
kate_invite_to_room_1174@localhost/res1 out
<iq type='set' id='da85f99e1cfd3b5b811837a2666d8454'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-04-05 07:54:26.703 ***
kate_invite_to_room_1174@localhost/res1 in
<iq id='da85f99e1cfd3b5b811837a2666d8454' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_invite_to_room_1174@localhost/res1</jid>
</bind>
</iq>
*** User 2022-04-05 07:54:26.703 ***
kate_invite_to_room_1174@localhost/res1 out
<iq type='set' id='d32d082018292029a44870fd72f9d6e3'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-05 07:54:26.703 ***
kate_invite_to_room_1174@localhost/res1 in
<iq type='result' id='d32d082018292029a44870fd72f9d6e3'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-05 07:54:26.704 ***
kate_invite_to_room_1174@localhost/res1 out
<presence/>
*** User 2022-04-05 07:54:26.712 ***
kate_invite_to_room_1174@localhost/res1 in
<presence from='kate_invite_to_room_1174@localhost/res1' to='kate_invite_to_room_1174@localhost/res1' xml:lang='en'/>
*** User 2022-04-05 07:54:26.712 ***
alicE_invite_to_room_1174@localhost/res1 out
<iq type='set' id='772ce2f2c070d03d1b5cc7b1625b1eb1' to='invite_to_room@muclight.localhost'>
<query xmlns='urn:xmpp:muclight:0#create'>
<configuration>
<roomname>wonderland</roomname>
</configuration>
<occupants>
<user affiliation='member'>kate_invite_to_room_1174@localhost</user>
</occupants>
</query>
</iq>
*** User 2022-04-05 07:54:26.759 ***
alicE_invite_to_room_1174@localhost/res1 in
<message from='invite_to_room@muclight.localhost' to='alice_invite_to_room_1174@localhost' id='772ce2f2c070d03d1b5cc7b1625b1eb1' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1649-145266-713306</version>
<user affiliation='owner'>alice_invite_to_room_1174@localhost</user>
</x>
<body/>
</message>
*** User 2022-04-05 07:54:26.759 ***
alicE_invite_to_room_1174@localhost/res1 in
<iq from='invite_to_room@muclight.localhost' to='alicE_invite_to_room_1174@localhost/res1' id='772ce2f2c070d03d1b5cc7b1625b1eb1' type='result'/>
*** User 2022-04-05 07:54:26.804 ***
REST request:
Code: 204
Req: {<0.8354.1>,
<<"/api/muc-lights/muclight.localhost/invite_to_room/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6cb5060600e572a3">>}],
<<"{\"sender\":\"alicE_invite_to_room_1174@localhost\",\"recipient\":\"bOb_invite_to_room_1174@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 05 Apr 2022 07:54:25 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,2050}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_to_room_1174@localhost\",\"recipient\":\"bOb_invite_to_room_1174@localhost\"}">>,
method => <<"POST">>,
path =>
<<"/api/muc-lights/muclight.localhost/invite_to_room/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-04-05 07:54:26.804 ***
bOb_invite_to_room_1174@localhost/res1 in
<message from='invite_to_room@muclight.localhost' to='bob_invite_to_room_1174@localhost' id='44e383b7-65c3-46d6-ae5b-db923bd14c34' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1649-145266-803494</version>
<user affiliation='member'>bob_invite_to_room_1174@localhost</user>
</x>
<body/>
</message>
*** User 2022-04-05 07:54:26.804 ***
alicE_invite_to_room_1174@localhost/res1 in
<message from='invite_to_room@muclight.localhost' to='alice_invite_to_room_1174@localhost' id='44e383b7-65c3-46d6-ae5b-db923bd14c34' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<prev-version>1649-145266-713306</prev-version>
<version>1649-145266-803494</version>
<user affiliation='member'>bob_invite_to_room_1174@localhost</user>
</x>
<body/>
</message>
*** User 2022-04-05 07:54:26.804 ***
kate_invite_to_room_1174@localhost/res1 out
</stream:stream>
*** User 2022-04-05 07:54:26.805 ***
kate_invite_to_room_1174@localhost/res1 in
</stream:stream>
*** User 2022-04-05 07:54:26.805 ***
bOb_invite_to_room_1174@localhost/res1 out
</stream:stream>
*** User 2022-04-05 07:54:26.806 ***
bOb_invite_to_room_1174@localhost/res1 in
</stream:stream>
*** User 2022-04-05 07:54:26.806 ***
alicE_invite_to_room_1174@localhost/res1 out
</stream:stream>
*** User 2022-04-05 07:54:26.806 ***
alicE_invite_to_room_1174@localhost/res1 in
</stream:stream>
=== Ended at 2022-04-05 07:54:26
=== successfully completed test case
=== === Returned value: ok