=== Test case: muc_light_http_api_SUITE:invite_to_room/1 (click for source code)
=== Config value:
[{watchdog,<0.2704.1>},
{mim_data_dir,"/home/circleci/project/big_tests/tests/muc_light_http_api_SUITE_data"},
{preset,"internal_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@34a9b6d2516c.2022-01-27_15.25.07/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-01-27_15.33.34/muc_light_http_api_suite.invite_to_room.52866.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@34a9b6d2516c.2022-01-27_15.25.07/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-01-27_15.33.34/log_private/"},
{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@34a9b6d2516c.2022-01-27_15.25.07"
=== Started at 2022-01-27 15:33:34
*** User 2022-01-27 15:33:34.932 ***
alicE_invite_to_room_1003@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-01-27 15:33:34.932 ***
alicE_invite_to_room_1003@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='424d60f72f1875b1' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:34.932 ***
alicE_invite_to_room_1003@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-01-27 15:33:34.932 ***
alicE_invite_to_room_1003@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludml0ZV90b19yb29tXzEwMDMAbWF0eWdyeXNh</auth>
*** User 2022-01-27 15:33:34.933 ***
alicE_invite_to_room_1003@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:33:34.933 ***
alicE_invite_to_room_1003@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-01-27 15:33:34.933 ***
alicE_invite_to_room_1003@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='647e7159091c4bef' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:34.933 ***
alicE_invite_to_room_1003@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-01-27 15:33:34.933 ***
alicE_invite_to_room_1003@localhost/res1 out
<iq type='set' id='01adb0073ef5aa9baf6e87b548ea8770'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:33:34.933 ***
alicE_invite_to_room_1003@localhost/res1 in
<iq id='01adb0073ef5aa9baf6e87b548ea8770' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_invite_to_room_1003@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:33:34.934 ***
alicE_invite_to_room_1003@localhost/res1 out
<iq type='set' id='d1c3c0ef1a289cae5322a44351f61b93'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:34.934 ***
alicE_invite_to_room_1003@localhost/res1 in
<iq type='result' id='d1c3c0ef1a289cae5322a44351f61b93'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:34.934 ***
alicE_invite_to_room_1003@localhost/res1 out
<presence/>
*** User 2022-01-27 15:33:34.935 ***
alicE_invite_to_room_1003@localhost/res1 in
<presence from='alicE_invite_to_room_1003@localhost/res1' to='alice_invite_to_room_1003@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:33:34.935 ***
bOb_invite_to_room_1003@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-01-27 15:33:34.935 ***
bOb_invite_to_room_1003@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='771476d7345c6972' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:34.935 ***
bOb_invite_to_room_1003@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-01-27 15:33:34.936 ***
bOb_invite_to_room_1003@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZpdGVfdG9fcm9vbV8xMDAzAG1ha3JvbGlrYQ==</auth>
*** User 2022-01-27 15:33:34.936 ***
bOb_invite_to_room_1003@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:33:34.936 ***
bOb_invite_to_room_1003@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-01-27 15:33:34.936 ***
bOb_invite_to_room_1003@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d32f9650753738bf' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:34.936 ***
bOb_invite_to_room_1003@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-01-27 15:33:34.936 ***
bOb_invite_to_room_1003@localhost/res1 out
<iq type='set' id='5d0e9a86e926d3491419024b58070b3a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:33:34.937 ***
bOb_invite_to_room_1003@localhost/res1 in
<iq id='5d0e9a86e926d3491419024b58070b3a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_invite_to_room_1003@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:33:34.937 ***
bOb_invite_to_room_1003@localhost/res1 out
<iq type='set' id='9e2b261a0909ffbc4c46db3358936e53'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:34.937 ***
bOb_invite_to_room_1003@localhost/res1 in
<iq type='result' id='9e2b261a0909ffbc4c46db3358936e53'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:34.937 ***
bOb_invite_to_room_1003@localhost/res1 out
<presence/>
*** User 2022-01-27 15:33:34.938 ***
bOb_invite_to_room_1003@localhost/res1 in
<presence from='bOb_invite_to_room_1003@localhost/res1' to='bob_invite_to_room_1003@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:33:34.938 ***
kate_invite_to_room_1003@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-01-27 15:33:34.938 ***
kate_invite_to_room_1003@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='285a457bb8f71fb5' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:34.939 ***
kate_invite_to_room_1003@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-01-27 15:33:34.939 ***
kate_invite_to_room_1003@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfaW52aXRlX3RvX3Jvb21fMTAwMwBtYWtyb3dlO3A=</auth>
*** User 2022-01-27 15:33:34.939 ***
kate_invite_to_room_1003@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:33:34.939 ***
kate_invite_to_room_1003@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-01-27 15:33:34.940 ***
kate_invite_to_room_1003@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b1aee985931ad571' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:34.940 ***
kate_invite_to_room_1003@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-01-27 15:33:34.940 ***
kate_invite_to_room_1003@localhost/res1 out
<iq type='set' id='d8e57e28ac6dc16a3426b6833920e651'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:33:34.940 ***
kate_invite_to_room_1003@localhost/res1 in
<iq id='d8e57e28ac6dc16a3426b6833920e651' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_invite_to_room_1003@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:33:34.940 ***
kate_invite_to_room_1003@localhost/res1 out
<iq type='set' id='f25a7b20fa55377eddba2d52a55a882a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:34.940 ***
kate_invite_to_room_1003@localhost/res1 in
<iq type='result' id='f25a7b20fa55377eddba2d52a55a882a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:34.941 ***
kate_invite_to_room_1003@localhost/res1 out
<presence/>
*** User 2022-01-27 15:33:34.941 ***
kate_invite_to_room_1003@localhost/res1 in
<presence from='kate_invite_to_room_1003@localhost/res1' to='kate_invite_to_room_1003@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:33:34.941 ***
alicE_invite_to_room_1003@localhost/res1 out
<iq type='set' id='96c5007ce0eb6a07fa96ace240a24811' to='muclight.localhost'>
<query xmlns='urn:xmpp:muclight:0#create'>
<configuration>
<roomname>wonderland</roomname>
</configuration>
<occupants>
<user affiliation='member'>kate_invite_to_room_1003@localhost</user>
</occupants>
</query>
</iq>
*** User 2022-01-27 15:33:34.942 ***
alicE_invite_to_room_1003@localhost/res1 in
<message from='1643-297614-942040@muclight.localhost' to='alice_invite_to_room_1003@localhost' id='96c5007ce0eb6a07fa96ace240a24811' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1643-297614-942017</version>
<user affiliation='owner'>alice_invite_to_room_1003@localhost</user>
</x>
<body/>
</message>
*** User 2022-01-27 15:33:34.942 ***
alicE_invite_to_room_1003@localhost/res1 in
<iq from='muclight.localhost' to='alicE_invite_to_room_1003@localhost/res1' id='96c5007ce0eb6a07fa96ace240a24811' type='result'/>
*** User 2022-01-27 15:33:34.945 ***
REST request:
Code: 204
Req: {<0.2788.1>,
<<"/api/muc-lights/muclight.localhost/wonderland/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0a065c355d814461">>}],
<<"{\"sender\":\"alicE_invite_to_room_1003@localhost\",\"recipient\":\"bOb_invite_to_room_1003@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:33:34 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,1213}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_to_room_1003@localhost\",\"recipient\":\"bOb_invite_to_room_1003@localhost\"}">>,
method => <<"POST">>,
path =>
<<"/api/muc-lights/muclight.localhost/wonderland/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:33:34.945 ***
bOb_invite_to_room_1003@localhost/res1 in
<message from='1643-297614-942040@muclight.localhost' to='bob_invite_to_room_1003@localhost' id='1e8a2075-608c-44ae-83b8-56b41d26e617' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1643-297614-944734</version>
<user affiliation='member'>bob_invite_to_room_1003@localhost</user>
</x>
<body/>
</message>
*** User 2022-01-27 15:33:34.945 ***
alicE_invite_to_room_1003@localhost/res1 in
<message from='1643-297614-942040@muclight.localhost' to='alice_invite_to_room_1003@localhost' id='1e8a2075-608c-44ae-83b8-56b41d26e617' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<prev-version>1643-297614-942017</prev-version>
<version>1643-297614-944734</version>
<user affiliation='member'>bob_invite_to_room_1003@localhost</user>
</x>
<body/>
</message>
*** User 2022-01-27 15:33:34.945 ***
kate_invite_to_room_1003@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:33:34.945 ***
kate_invite_to_room_1003@localhost/res1 in
</stream:stream>
*** User 2022-01-27 15:33:34.945 ***
bOb_invite_to_room_1003@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:33:34.946 ***
bOb_invite_to_room_1003@localhost/res1 in
</stream:stream>
*** User 2022-01-27 15:33:34.946 ***
alicE_invite_to_room_1003@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:33:34.946 ***
alicE_invite_to_room_1003@localhost/res1 in
</stream:stream>
=== Ended at 2022-01-27 15:33:34
=== successfully completed test case
=== === Returned value: ok