=== Test case: muc_light_http_api_SUITE:invite_to_room/1 (click for source code)
=== Config value:
[{watchdog,<0.2801.2>},
{mim_data_dir,"/home/circleci/project/big_tests/tests/muc_light_http_api_SUITE_data"},
{preset,"pgsql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@3b05d744781a.2022-05-18_09.59.20/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-05-18_10.08.25/muc_light_http_api_suite.invite_to_room.118915.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@3b05d744781a.2022-05-18_09.59.20/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-05-18_10.08.25/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 => #{iqdisc => no_queue},
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"}],
iqdisc => one_queue,password_strength => 0,
registration_watchers => []},
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,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 => rdbms,
host => {prefix,<<"vjud.">>},
iqdisc => parallel,matches => 30,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@3b05d744781a.2022-05-18_09.59.20"
=== Started at 2022-05-18 10:08:25
*** User 2022-05-18 10:08:25.168 ***
alicE_invite_to_room_2076@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-05-18 10:08:25.168 ***
alicE_invite_to_room_2076@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2ed86e0b795567b6' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-18 10:08:25.168 ***
alicE_invite_to_room_2076@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-05-18 10:08:25.168 ***
alicE_invite_to_room_2076@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludml0ZV90b19yb29tXzIwNzYAbWF0eWdyeXNh</auth>
*** User 2022-05-18 10:08:25.169 ***
alicE_invite_to_room_2076@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-18 10:08:25.169 ***
alicE_invite_to_room_2076@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-05-18 10:08:25.170 ***
alicE_invite_to_room_2076@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f7fb7ea7a0bf9fbb' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-18 10:08:25.170 ***
alicE_invite_to_room_2076@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-05-18 10:08:25.170 ***
alicE_invite_to_room_2076@localhost/res1 out
<iq type='set' id='73807014436b6b2e6e09a6d56a5bcd4c'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-18 10:08:25.170 ***
alicE_invite_to_room_2076@localhost/res1 in
<iq id='73807014436b6b2e6e09a6d56a5bcd4c' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_invite_to_room_2076@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-18 10:08:25.170 ***
alice_invite_to_room_2076@localhost/res1 out
<iq type='set' id='338b1c0f8000c5f1640aed9661849b7a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-18 10:08:25.170 ***
alice_invite_to_room_2076@localhost/res1 in
<iq type='result' id='338b1c0f8000c5f1640aed9661849b7a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-18 10:08:25.170 ***
alice_invite_to_room_2076@localhost/res1 out
<presence/>
*** User 2022-05-18 10:08:25.171 ***
alice_invite_to_room_2076@localhost/res1 in
<presence from='alice_invite_to_room_2076@localhost/res1' to='alice_invite_to_room_2076@localhost/res1' xml:lang='en'/>
*** User 2022-05-18 10:08:25.172 ***
bOb_invite_to_room_2076@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-05-18 10:08:25.172 ***
bOb_invite_to_room_2076@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8ca654c601c66c26' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-18 10:08:25.172 ***
bOb_invite_to_room_2076@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-05-18 10:08:25.173 ***
bOb_invite_to_room_2076@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZpdGVfdG9fcm9vbV8yMDc2AG1ha3JvbGlrYQ==</auth>
*** User 2022-05-18 10:08:25.173 ***
bOb_invite_to_room_2076@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-18 10:08:25.173 ***
bOb_invite_to_room_2076@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-05-18 10:08:25.173 ***
bOb_invite_to_room_2076@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='44d95a0c9e0993e5' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-18 10:08:25.174 ***
bOb_invite_to_room_2076@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-05-18 10:08:25.174 ***
bOb_invite_to_room_2076@localhost/res1 out
<iq type='set' id='5e610e918465e5e226848a6b8e28f38e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-18 10:08:25.174 ***
bOb_invite_to_room_2076@localhost/res1 in
<iq id='5e610e918465e5e226848a6b8e28f38e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_invite_to_room_2076@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-18 10:08:25.174 ***
bob_invite_to_room_2076@localhost/res1 out
<iq type='set' id='776b47713753650eb81e1c6718295a87'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-18 10:08:25.174 ***
bob_invite_to_room_2076@localhost/res1 in
<iq type='result' id='776b47713753650eb81e1c6718295a87'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-18 10:08:25.175 ***
bob_invite_to_room_2076@localhost/res1 out
<presence/>
*** User 2022-05-18 10:08:25.176 ***
bob_invite_to_room_2076@localhost/res1 in
<presence from='bob_invite_to_room_2076@localhost/res1' to='bob_invite_to_room_2076@localhost/res1' xml:lang='en'/>
*** User 2022-05-18 10:08:25.177 ***
kate_invite_to_room_2076@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-05-18 10:08:25.177 ***
kate_invite_to_room_2076@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d4095808e1723be3' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-18 10:08:25.177 ***
kate_invite_to_room_2076@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-05-18 10:08:25.178 ***
kate_invite_to_room_2076@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfaW52aXRlX3RvX3Jvb21fMjA3NgBtYWtyb3dlO3A=</auth>
*** User 2022-05-18 10:08:25.178 ***
kate_invite_to_room_2076@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-18 10:08:25.178 ***
kate_invite_to_room_2076@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-05-18 10:08:25.178 ***
kate_invite_to_room_2076@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7b5aaf99d83268bc' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-18 10:08:25.179 ***
kate_invite_to_room_2076@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-05-18 10:08:25.179 ***
kate_invite_to_room_2076@localhost/res1 out
<iq type='set' id='0e8c7985c4baf61d9c40fdfe7d3939a2'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-18 10:08:25.179 ***
kate_invite_to_room_2076@localhost/res1 in
<iq id='0e8c7985c4baf61d9c40fdfe7d3939a2' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_invite_to_room_2076@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-18 10:08:25.179 ***
kate_invite_to_room_2076@localhost/res1 out
<iq type='set' id='fc122e8e002152bc25576150aa014850'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-18 10:08:25.179 ***
kate_invite_to_room_2076@localhost/res1 in
<iq type='result' id='fc122e8e002152bc25576150aa014850'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-18 10:08:25.180 ***
kate_invite_to_room_2076@localhost/res1 out
<presence/>
*** User 2022-05-18 10:08:25.180 ***
kate_invite_to_room_2076@localhost/res1 in
<presence from='kate_invite_to_room_2076@localhost/res1' to='kate_invite_to_room_2076@localhost/res1' xml:lang='en'/>
*** User 2022-05-18 10:08:25.181 ***
alice_invite_to_room_2076@localhost/res1 out
<iq type='set' id='72b149fa069a77a5a3e5f06ee1f038e0' 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_2076@localhost</user>
</occupants>
</query>
</iq>
*** User 2022-05-18 10:08:25.183 ***
alice_invite_to_room_2076@localhost/res1 in
<message from='invite_to_room@muclight.localhost' to='alice_invite_to_room_2076@localhost' id='72b149fa069a77a5a3e5f06ee1f038e0' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1652-868505-181704</version>
<user affiliation='owner'>alice_invite_to_room_2076@localhost</user>
</x>
<body/>
</message>
*** User 2022-05-18 10:08:25.183 ***
alice_invite_to_room_2076@localhost/res1 in
<iq from='invite_to_room@muclight.localhost' to='alice_invite_to_room_2076@localhost/res1' id='72b149fa069a77a5a3e5f06ee1f038e0' type='result'/>
*** User 2022-05-18 10:08:25.188 ***
REST request:
Code: 204
Req: {<0.2885.2>,
<<"/api/muc-lights/muclight.localhost/invite_to_room/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b5a3fe4d78314c3f">>}],
<<"{\"sender\":\"alice_invite_to_room_2076@localhost\",\"recipient\":\"bob_invite_to_room_2076@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 18 May 2022 10:08:24 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,3537}
Params: #{body =>
<<"{\"sender\":\"alice_invite_to_room_2076@localhost\",\"recipient\":\"bob_invite_to_room_2076@localhost\"}">>,
method => <<"POST">>,
path =>
<<"/api/muc-lights/muclight.localhost/invite_to_room/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-18 10:08:25.188 ***
bob_invite_to_room_2076@localhost/res1 in
<message from='invite_to_room@muclight.localhost' to='bob_invite_to_room_2076@localhost' id='355c6635-8d71-464f-a40f-537b3d9ecfed' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1652-868505-186826</version>
<user affiliation='member'>bob_invite_to_room_2076@localhost</user>
</x>
<body/>
</message>
*** User 2022-05-18 10:08:25.189 ***
alice_invite_to_room_2076@localhost/res1 in
<message from='invite_to_room@muclight.localhost' to='alice_invite_to_room_2076@localhost' id='355c6635-8d71-464f-a40f-537b3d9ecfed' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<prev-version>1652-868505-181704</prev-version>
<version>1652-868505-186826</version>
<user affiliation='member'>bob_invite_to_room_2076@localhost</user>
</x>
<body/>
</message>
*** User 2022-05-18 10:08:25.189 ***
kate_invite_to_room_2076@localhost/res1 out
</stream:stream>
*** User 2022-05-18 10:08:25.189 ***
kate_invite_to_room_2076@localhost/res1 in
</stream:stream>
*** User 2022-05-18 10:08:25.189 ***
bob_invite_to_room_2076@localhost/res1 out
</stream:stream>
*** User 2022-05-18 10:08:25.190 ***
bob_invite_to_room_2076@localhost/res1 in
</stream:stream>
*** User 2022-05-18 10:08:25.190 ***
alice_invite_to_room_2076@localhost/res1 out
</stream:stream>
*** User 2022-05-18 10:08:25.190 ***
alice_invite_to_room_2076@localhost/res1 in
</stream:stream>
=== Ended at 2022-05-18 10:08:25
=== successfully completed test case
=== === Returned value: ok