=== Test case: muc_light_http_api_SUITE:invite_to_room/1 (click for source code)
=== Config value:
[{watchdog,<0.2780.1>},
{mim_data_dir,"/home/circleci/project/big_tests/tests/muc_light_http_api_SUITE_data"},
{preset,"ldap_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-03-03_10.36.06/muc_light_http_api_suite.invite_to_room.45186.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@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-03-03_10.36.06/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@12130b74fc81.2022-03-03_10.28.39"
=== Started at 2022-03-03 10:36:06
*** User 2022-03-03 10:36:06.805 ***
alicE_invite_to_room_950@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-03-03 10:36:06.806 ***
alicE_invite_to_room_950@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f1e7843d0092c996' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:36:06.806 ***
alicE_invite_to_room_950@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>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-03-03 10:36:06.806 ***
alicE_invite_to_room_950@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludml0ZV90b19yb29tXzk1MABtYXR5Z3J5c2E=</auth>
*** User 2022-03-03 10:36:06.807 ***
alicE_invite_to_room_950@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-03 10:36:06.807 ***
alicE_invite_to_room_950@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-03-03 10:36:06.807 ***
alicE_invite_to_room_950@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='21da5dca62eefed3' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:36:06.807 ***
alicE_invite_to_room_950@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-03-03 10:36:06.807 ***
alicE_invite_to_room_950@localhost/res1 out
<iq type='set' id='6f8f76d63f698c119ad925e6afd145ec'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-03 10:36:06.808 ***
alicE_invite_to_room_950@localhost/res1 in
<iq id='6f8f76d63f698c119ad925e6afd145ec' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_invite_to_room_950@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-03 10:36:06.808 ***
alicE_invite_to_room_950@localhost/res1 out
<iq type='set' id='0382587143b04b323fb55e2e22b64f12'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:36:06.808 ***
alicE_invite_to_room_950@localhost/res1 in
<iq type='result' id='0382587143b04b323fb55e2e22b64f12'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:36:06.808 ***
alicE_invite_to_room_950@localhost/res1 out
<presence/>
*** User 2022-03-03 10:36:06.809 ***
alicE_invite_to_room_950@localhost/res1 in
<presence from='alicE_invite_to_room_950@localhost/res1' to='alice_invite_to_room_950@localhost/res1' xml:lang='en'/>
*** User 2022-03-03 10:36:06.810 ***
bOb_invite_to_room_950@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-03-03 10:36:06.810 ***
bOb_invite_to_room_950@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2c656c92c3095631' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:36:06.810 ***
bOb_invite_to_room_950@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>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-03-03 10:36:06.810 ***
bOb_invite_to_room_950@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZpdGVfdG9fcm9vbV85NTAAbWFrcm9saWth</auth>
*** User 2022-03-03 10:36:06.811 ***
bOb_invite_to_room_950@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-03 10:36:06.812 ***
bOb_invite_to_room_950@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-03-03 10:36:06.812 ***
bOb_invite_to_room_950@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6f398db3794c8f6f' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:36:06.812 ***
bOb_invite_to_room_950@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-03-03 10:36:06.812 ***
bOb_invite_to_room_950@localhost/res1 out
<iq type='set' id='0b157307eab9ad872477549e57de4e90'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-03 10:36:06.812 ***
bOb_invite_to_room_950@localhost/res1 in
<iq id='0b157307eab9ad872477549e57de4e90' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_invite_to_room_950@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-03 10:36:06.812 ***
bOb_invite_to_room_950@localhost/res1 out
<iq type='set' id='fd726c3e40800c0386b12fd0c2d8935c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:36:06.813 ***
bOb_invite_to_room_950@localhost/res1 in
<iq type='result' id='fd726c3e40800c0386b12fd0c2d8935c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:36:06.813 ***
bOb_invite_to_room_950@localhost/res1 out
<presence/>
*** User 2022-03-03 10:36:06.813 ***
bOb_invite_to_room_950@localhost/res1 in
<presence from='bOb_invite_to_room_950@localhost/res1' to='bob_invite_to_room_950@localhost/res1' xml:lang='en'/>
*** User 2022-03-03 10:36:06.814 ***
kate_invite_to_room_950@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-03-03 10:36:06.814 ***
kate_invite_to_room_950@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='17eb040974484cdf' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:36:06.815 ***
kate_invite_to_room_950@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>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-03-03 10:36:06.815 ***
kate_invite_to_room_950@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfaW52aXRlX3RvX3Jvb21fOTUwAG1ha3Jvd2U7cA==</auth>
*** User 2022-03-03 10:36:06.816 ***
kate_invite_to_room_950@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-03 10:36:06.816 ***
kate_invite_to_room_950@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-03-03 10:36:06.816 ***
kate_invite_to_room_950@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b1f5ef973709dafe' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:36:06.816 ***
kate_invite_to_room_950@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-03-03 10:36:06.816 ***
kate_invite_to_room_950@localhost/res1 out
<iq type='set' id='49cebf83ab9a367d786d1e0b05883f8b'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-03 10:36:06.816 ***
kate_invite_to_room_950@localhost/res1 in
<iq id='49cebf83ab9a367d786d1e0b05883f8b' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_invite_to_room_950@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-03 10:36:06.816 ***
kate_invite_to_room_950@localhost/res1 out
<iq type='set' id='ec48e71f4098401d298d59c67e245673'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:36:06.817 ***
kate_invite_to_room_950@localhost/res1 in
<iq type='result' id='ec48e71f4098401d298d59c67e245673'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:36:06.817 ***
kate_invite_to_room_950@localhost/res1 out
<presence/>
*** User 2022-03-03 10:36:06.818 ***
kate_invite_to_room_950@localhost/res1 in
<presence from='kate_invite_to_room_950@localhost/res1' to='kate_invite_to_room_950@localhost/res1' xml:lang='en'/>
*** User 2022-03-03 10:36:06.818 ***
alicE_invite_to_room_950@localhost/res1 out
<iq type='set' id='6844ff73da07bb7731c775bffb32aaba' 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_950@localhost</user>
</occupants>
</query>
</iq>
*** User 2022-03-03 10:36:06.819 ***
alicE_invite_to_room_950@localhost/res1 in
<message from='invite_to_room@muclight.localhost' to='alice_invite_to_room_950@localhost' id='6844ff73da07bb7731c775bffb32aaba' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1646-303766-818528</version>
<user affiliation='owner'>alice_invite_to_room_950@localhost</user>
</x>
<body/>
</message>
*** User 2022-03-03 10:36:06.819 ***
alicE_invite_to_room_950@localhost/res1 in
<iq from='invite_to_room@muclight.localhost' to='alicE_invite_to_room_950@localhost/res1' id='6844ff73da07bb7731c775bffb32aaba' type='result'/>
*** User 2022-03-03 10:36:06.821 ***
REST request:
Code: 204
Req: {<0.2866.1>,
<<"/api/muc-lights/muclight.localhost/invite_to_room/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8f7fed132a4e60a0">>}],
<<"{\"sender\":\"alicE_invite_to_room_950@localhost\",\"recipient\":\"bOb_invite_to_room_950@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 03 Mar 2022 10:36:06 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,1177}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_to_room_950@localhost\",\"recipient\":\"bOb_invite_to_room_950@localhost\"}">>,
method => <<"POST">>,
path =>
<<"/api/muc-lights/muclight.localhost/invite_to_room/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-03 10:36:06.821 ***
bOb_invite_to_room_950@localhost/res1 in
<message from='invite_to_room@muclight.localhost' to='bob_invite_to_room_950@localhost' id='10219c3e-2909-4882-86f3-ee25caa5e0fc' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1646-303766-820808</version>
<user affiliation='member'>bob_invite_to_room_950@localhost</user>
</x>
<body/>
</message>
*** User 2022-03-03 10:36:06.821 ***
alicE_invite_to_room_950@localhost/res1 in
<message from='invite_to_room@muclight.localhost' to='alice_invite_to_room_950@localhost' id='10219c3e-2909-4882-86f3-ee25caa5e0fc' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<prev-version>1646-303766-818528</prev-version>
<version>1646-303766-820808</version>
<user affiliation='member'>bob_invite_to_room_950@localhost</user>
</x>
<body/>
</message>
*** User 2022-03-03 10:36:06.821 ***
kate_invite_to_room_950@localhost/res1 out
</stream:stream>
*** User 2022-03-03 10:36:06.821 ***
kate_invite_to_room_950@localhost/res1 in
</stream:stream>
*** User 2022-03-03 10:36:06.821 ***
bOb_invite_to_room_950@localhost/res1 out
</stream:stream>
*** User 2022-03-03 10:36:06.822 ***
bOb_invite_to_room_950@localhost/res1 in
</stream:stream>
*** User 2022-03-03 10:36:06.822 ***
alicE_invite_to_room_950@localhost/res1 out
</stream:stream>
*** User 2022-03-03 10:36:06.822 ***
alicE_invite_to_room_950@localhost/res1 in
</stream:stream>
=== Ended at 2022-03-03 10:36:06
=== successfully completed test case
=== === Returned value: ok