=== Test case: muc_light_http_api_SUITE:invite_to_room/1 (click for source code)
=== Config value:
[{watchdog,<0.24931.1>},
{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@a072b68d2bee.2022-03-18_10.50.04/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-03-18_10.57.32/muc_light_http_api_suite.invite_to_room.137986.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@a072b68d2bee.2022-03-18_10.50.04/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-03-18_10.57.32/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{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 => 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,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrolika">>}]},
{kate,[{username,<<"kate">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrowe;p">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@a072b68d2bee.2022-03-18_10.50.04"
=== Started at 2022-03-18 10:57:32
*** User 2022-03-18 10:57:32.590 ***
alicE_invite_to_room_1901@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-03-18 10:57:32.590 ***
alicE_invite_to_room_1901@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='25b85ef30f6e790d' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-18 10:57:32.590 ***
alicE_invite_to_room_1901@domain.example.com/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-03-18 10:57:32.590 ***
alicE_invite_to_room_1901@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludml0ZV90b19yb29tXzE5MDEAbWF0eWdyeXNh</auth>
*** User 2022-03-18 10:57:32.591 ***
alicE_invite_to_room_1901@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-18 10:57:32.591 ***
alicE_invite_to_room_1901@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-03-18 10:57:32.592 ***
alicE_invite_to_room_1901@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9c42603009147e92' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-18 10:57:32.592 ***
alicE_invite_to_room_1901@domain.example.com/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-18 10:57:32.592 ***
alicE_invite_to_room_1901@domain.example.com/res1 out
<iq type='set' id='4a62275f9f1416f418ce8455d91491fb'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-18 10:57:32.592 ***
alicE_invite_to_room_1901@domain.example.com/res1 in
<iq id='4a62275f9f1416f418ce8455d91491fb' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_invite_to_room_1901@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-18 10:57:32.592 ***
alicE_invite_to_room_1901@domain.example.com/res1 out
<iq type='set' id='f80eb5fbccc29657e1cae3906cac14dc'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 10:57:32.592 ***
alicE_invite_to_room_1901@domain.example.com/res1 in
<iq type='result' id='f80eb5fbccc29657e1cae3906cac14dc'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 10:57:32.593 ***
alicE_invite_to_room_1901@domain.example.com/res1 out
<presence/>
*** User 2022-03-18 10:57:32.594 ***
alicE_invite_to_room_1901@domain.example.com/res1 in
<presence from='alicE_invite_to_room_1901@domain.example.com/res1' to='alice_invite_to_room_1901@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-18 10:57:32.594 ***
bOb_invite_to_room_1901@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-03-18 10:57:32.594 ***
bOb_invite_to_room_1901@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a6af613344c7062b' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-18 10:57:32.595 ***
bOb_invite_to_room_1901@domain.example.com/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-03-18 10:57:32.595 ***
bOb_invite_to_room_1901@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZpdGVfdG9fcm9vbV8xOTAxAG1ha3JvbGlrYQ==</auth>
*** User 2022-03-18 10:57:32.596 ***
bOb_invite_to_room_1901@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-18 10:57:32.596 ***
bOb_invite_to_room_1901@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-03-18 10:57:32.596 ***
bOb_invite_to_room_1901@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fd0b82ac594f12be' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-18 10:57:32.596 ***
bOb_invite_to_room_1901@domain.example.com/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-18 10:57:32.596 ***
bOb_invite_to_room_1901@domain.example.com/res1 out
<iq type='set' id='f2571bcdf4dbbc11810721b3231a5cbb'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-18 10:57:32.596 ***
bOb_invite_to_room_1901@domain.example.com/res1 in
<iq id='f2571bcdf4dbbc11810721b3231a5cbb' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_invite_to_room_1901@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-18 10:57:32.597 ***
bOb_invite_to_room_1901@domain.example.com/res1 out
<iq type='set' id='472c029dcf80a8114e352ff572f212ec'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 10:57:32.597 ***
bOb_invite_to_room_1901@domain.example.com/res1 in
<iq type='result' id='472c029dcf80a8114e352ff572f212ec'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 10:57:32.598 ***
bOb_invite_to_room_1901@domain.example.com/res1 out
<presence/>
*** User 2022-03-18 10:57:32.599 ***
bOb_invite_to_room_1901@domain.example.com/res1 in
<presence from='bOb_invite_to_room_1901@domain.example.com/res1' to='bob_invite_to_room_1901@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-18 10:57:32.599 ***
kate_invite_to_room_1901@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-03-18 10:57:32.600 ***
kate_invite_to_room_1901@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8728c0ed4fe0e786' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-18 10:57:32.600 ***
kate_invite_to_room_1901@domain.example.com/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-03-18 10:57:32.600 ***
kate_invite_to_room_1901@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfaW52aXRlX3RvX3Jvb21fMTkwMQBtYWtyb3dlO3A=</auth>
*** User 2022-03-18 10:57:32.601 ***
kate_invite_to_room_1901@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-18 10:57:32.602 ***
kate_invite_to_room_1901@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-03-18 10:57:32.602 ***
kate_invite_to_room_1901@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='27fe30bbe10cb5cc' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-18 10:57:32.602 ***
kate_invite_to_room_1901@domain.example.com/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-18 10:57:32.602 ***
kate_invite_to_room_1901@domain.example.com/res1 out
<iq type='set' id='780d355e0dc09db490ebcd4670707274'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-18 10:57:32.603 ***
kate_invite_to_room_1901@domain.example.com/res1 in
<iq id='780d355e0dc09db490ebcd4670707274' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_invite_to_room_1901@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-18 10:57:32.603 ***
kate_invite_to_room_1901@domain.example.com/res1 out
<iq type='set' id='35b95202839e79faa9bcdfd5e783bc70'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 10:57:32.603 ***
kate_invite_to_room_1901@domain.example.com/res1 in
<iq type='result' id='35b95202839e79faa9bcdfd5e783bc70'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 10:57:32.603 ***
kate_invite_to_room_1901@domain.example.com/res1 out
<presence/>
*** User 2022-03-18 10:57:32.604 ***
kate_invite_to_room_1901@domain.example.com/res1 in
<presence from='kate_invite_to_room_1901@domain.example.com/res1' to='kate_invite_to_room_1901@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-18 10:57:32.605 ***
alicE_invite_to_room_1901@domain.example.com/res1 out
<iq type='set' id='6f94db1d4e7fba7c3fdf14e50fa48907' to='invite_to_room@muclight.domain.example.com'>
<query xmlns='urn:xmpp:muclight:0#create'>
<configuration>
<roomname>wonderland</roomname>
</configuration>
<occupants>
<user affiliation='member'>kate_invite_to_room_1901@domain.example.com</user>
</occupants>
</query>
</iq>
*** User 2022-03-18 10:57:32.608 ***
alicE_invite_to_room_1901@domain.example.com/res1 in
<message from='invite_to_room@muclight.domain.example.com' to='alice_invite_to_room_1901@domain.example.com' id='6f94db1d4e7fba7c3fdf14e50fa48907' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1647-601052-605749</version>
<user affiliation='owner'>alice_invite_to_room_1901@domain.example.com</user>
</x>
<body/>
</message>
*** User 2022-03-18 10:57:32.608 ***
alicE_invite_to_room_1901@domain.example.com/res1 in
<iq from='invite_to_room@muclight.domain.example.com' to='alicE_invite_to_room_1901@domain.example.com/res1' id='6f94db1d4e7fba7c3fdf14e50fa48907' type='result'/>
*** User 2022-03-18 10:57:32.614 ***
REST request:
Code: 204
Req: {<0.25016.1>,
<<"/api/muc-lights/muclight.domain.example.com/invite_to_room/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d0e0f2096c1228f0">>}],
<<"{\"sender\":\"alicE_invite_to_room_1901@domain.example.com\",\"recipient\":\"bOb_invite_to_room_1901@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 10:57:32 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,4400}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_to_room_1901@domain.example.com\",\"recipient\":\"bOb_invite_to_room_1901@domain.example.com\"}">>,
method => <<"POST">>,
path =>
<<"/api/muc-lights/muclight.domain.example.com/invite_to_room/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 10:57:32.614 ***
bOb_invite_to_room_1901@domain.example.com/res1 in
<message from='invite_to_room@muclight.domain.example.com' to='bob_invite_to_room_1901@domain.example.com' id='08e97e9e-b45a-4026-b8f9-8474538825af' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1647-601052-612466</version>
<user affiliation='member'>bob_invite_to_room_1901@domain.example.com</user>
</x>
<body/>
</message>
*** User 2022-03-18 10:57:32.614 ***
alicE_invite_to_room_1901@domain.example.com/res1 in
<message from='invite_to_room@muclight.domain.example.com' to='alice_invite_to_room_1901@domain.example.com' id='08e97e9e-b45a-4026-b8f9-8474538825af' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<prev-version>1647-601052-605749</prev-version>
<version>1647-601052-612466</version>
<user affiliation='member'>bob_invite_to_room_1901@domain.example.com</user>
</x>
<body/>
</message>
*** User 2022-03-18 10:57:32.614 ***
kate_invite_to_room_1901@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-18 10:57:32.614 ***
kate_invite_to_room_1901@domain.example.com/res1 in
</stream:stream>
*** User 2022-03-18 10:57:32.615 ***
bOb_invite_to_room_1901@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-18 10:57:32.615 ***
bOb_invite_to_room_1901@domain.example.com/res1 in
</stream:stream>
*** User 2022-03-18 10:57:32.615 ***
alicE_invite_to_room_1901@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-18 10:57:32.615 ***
alicE_invite_to_room_1901@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-03-18 10:57:32
=== successfully completed test case
=== === Returned value: ok