=== Test case: muc_light_http_api_SUITE:invite_to_room/1 (click for source code)
=== Config value:
[{watchdog,<0.22953.1>},
{mim_data_dir,"/home/circleci/project/big_tests/tests/muc_light_http_api_SUITE_data"},
{preset,"odbc_mssql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-03-04_11.24.21/muc_light_http_api_suite.invite_to_room.141314.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@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-03-04_11.24.21/log_private/"},
{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@88d84ff17c71.2022-03-04_11.16.52"
=== Started at 2022-03-04 11:24:21
*** User 2022-03-04 11:24:21.823 ***
alicE_invite_to_room_1711@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-04 11:24:21.823 ***
alicE_invite_to_room_1711@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d9620719668a392d' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:24:21.823 ***
alicE_invite_to_room_1711@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-04 11:24:21.823 ***
alicE_invite_to_room_1711@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludml0ZV90b19yb29tXzE3MTEAbWF0eWdyeXNh</auth>
*** User 2022-03-04 11:24:21.824 ***
alicE_invite_to_room_1711@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:24:21.824 ***
alicE_invite_to_room_1711@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-04 11:24:21.824 ***
alicE_invite_to_room_1711@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2537618d22523223' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:24:21.824 ***
alicE_invite_to_room_1711@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-04 11:24:21.824 ***
alicE_invite_to_room_1711@domain.example.com/res1 out
<iq type='set' id='8e79ec2b0becd0c47c39bcbe9eda8cb1'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:24:21.824 ***
alicE_invite_to_room_1711@domain.example.com/res1 in
<iq id='8e79ec2b0becd0c47c39bcbe9eda8cb1' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_invite_to_room_1711@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:24:21.825 ***
alicE_invite_to_room_1711@domain.example.com/res1 out
<iq type='set' id='bb1a68de2a6b62992bd457c60a16ad5d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:24:21.825 ***
alicE_invite_to_room_1711@domain.example.com/res1 in
<iq type='result' id='bb1a68de2a6b62992bd457c60a16ad5d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:24:21.825 ***
alicE_invite_to_room_1711@domain.example.com/res1 out
<presence/>
*** User 2022-03-04 11:24:21.827 ***
alicE_invite_to_room_1711@domain.example.com/res1 in
<presence from='alicE_invite_to_room_1711@domain.example.com/res1' to='alice_invite_to_room_1711@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-04 11:24:21.828 ***
bOb_invite_to_room_1711@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-04 11:24:21.828 ***
bOb_invite_to_room_1711@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e1cf85353bb79b45' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:24:21.828 ***
bOb_invite_to_room_1711@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-04 11:24:21.828 ***
bOb_invite_to_room_1711@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZpdGVfdG9fcm9vbV8xNzExAG1ha3JvbGlrYQ==</auth>
*** User 2022-03-04 11:24:21.829 ***
bOb_invite_to_room_1711@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:24:21.829 ***
bOb_invite_to_room_1711@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-04 11:24:21.830 ***
bOb_invite_to_room_1711@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e02332f6437fd9d3' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:24:21.830 ***
bOb_invite_to_room_1711@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-04 11:24:21.830 ***
bOb_invite_to_room_1711@domain.example.com/res1 out
<iq type='set' id='1700939f75687ba4d9acfab5defe99a4'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:24:21.830 ***
bOb_invite_to_room_1711@domain.example.com/res1 in
<iq id='1700939f75687ba4d9acfab5defe99a4' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_invite_to_room_1711@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:24:21.830 ***
bOb_invite_to_room_1711@domain.example.com/res1 out
<iq type='set' id='ff7bb81cb236308ae1f42ace96416eaf'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:24:21.830 ***
bOb_invite_to_room_1711@domain.example.com/res1 in
<iq type='result' id='ff7bb81cb236308ae1f42ace96416eaf'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:24:21.831 ***
bOb_invite_to_room_1711@domain.example.com/res1 out
<presence/>
*** User 2022-03-04 11:24:21.833 ***
bOb_invite_to_room_1711@domain.example.com/res1 in
<presence from='bOb_invite_to_room_1711@domain.example.com/res1' to='bob_invite_to_room_1711@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-04 11:24:21.834 ***
kate_invite_to_room_1711@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-04 11:24:21.834 ***
kate_invite_to_room_1711@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dfbf53ea31cd4c66' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:24:21.834 ***
kate_invite_to_room_1711@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-04 11:24:21.834 ***
kate_invite_to_room_1711@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfaW52aXRlX3RvX3Jvb21fMTcxMQBtYWtyb3dlO3A=</auth>
*** User 2022-03-04 11:24:21.836 ***
kate_invite_to_room_1711@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:24:21.836 ***
kate_invite_to_room_1711@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-04 11:24:21.836 ***
kate_invite_to_room_1711@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8aeb5d9fc236426b' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:24:21.836 ***
kate_invite_to_room_1711@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-04 11:24:21.837 ***
kate_invite_to_room_1711@domain.example.com/res1 out
<iq type='set' id='b6e74339351f14b290bed6717747d9b0'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:24:21.837 ***
kate_invite_to_room_1711@domain.example.com/res1 in
<iq id='b6e74339351f14b290bed6717747d9b0' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_invite_to_room_1711@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:24:21.837 ***
kate_invite_to_room_1711@domain.example.com/res1 out
<iq type='set' id='2c4151dfb8b2d3fa44e4314af7545899'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:24:21.837 ***
kate_invite_to_room_1711@domain.example.com/res1 in
<iq type='result' id='2c4151dfb8b2d3fa44e4314af7545899'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:24:21.837 ***
kate_invite_to_room_1711@domain.example.com/res1 out
<presence/>
*** User 2022-03-04 11:24:21.838 ***
kate_invite_to_room_1711@domain.example.com/res1 in
<presence from='kate_invite_to_room_1711@domain.example.com/res1' to='kate_invite_to_room_1711@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-04 11:24:21.839 ***
alicE_invite_to_room_1711@domain.example.com/res1 out
<iq type='set' id='b61eca9704804fff788be2d2504424d3' to='invite_to_room@muclight2.domain.example.com'>
<query xmlns='urn:xmpp:muclight:0#create'>
<configuration>
<roomname>wonderland</roomname>
</configuration>
<occupants>
<user affiliation='member'>kate_invite_to_room_1711@domain.example.com</user>
</occupants>
</query>
</iq>
*** User 2022-03-04 11:24:21.844 ***
alicE_invite_to_room_1711@domain.example.com/res1 in
<message from='invite_to_room@muclight2.domain.example.com' to='alice_invite_to_room_1711@domain.example.com' id='b61eca9704804fff788be2d2504424d3' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1646-393061-839883</version>
<user affiliation='owner'>alice_invite_to_room_1711@domain.example.com</user>
</x>
<body/>
</message>
*** User 2022-03-04 11:24:21.844 ***
alicE_invite_to_room_1711@domain.example.com/res1 in
<iq from='invite_to_room@muclight2.domain.example.com' to='alicE_invite_to_room_1711@domain.example.com/res1' id='b61eca9704804fff788be2d2504424d3' type='result'/>
*** User 2022-03-04 11:24:21.852 ***
REST request:
Code: 204
Req: {<0.23038.1>,
<<"/api/muc-lights/muclight2.domain.example.com/invite_to_room/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b13c1d8e5a834980">>}],
<<"{\"sender\":\"alicE_invite_to_room_1711@domain.example.com\",\"recipient\":\"bOb_invite_to_room_1711@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:24:20 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,6144}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_to_room_1711@domain.example.com\",\"recipient\":\"bOb_invite_to_room_1711@domain.example.com\"}">>,
method => <<"POST">>,
path =>
<<"/api/muc-lights/muclight2.domain.example.com/invite_to_room/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:24:21.852 ***
bOb_invite_to_room_1711@domain.example.com/res1 in
<message from='invite_to_room@muclight2.domain.example.com' to='bob_invite_to_room_1711@domain.example.com' id='0fe4d6f8-f61e-427b-bbd7-9e84b032fa30' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1646-393061-849023</version>
<user affiliation='member'>bob_invite_to_room_1711@domain.example.com</user>
</x>
<body/>
</message>
*** User 2022-03-04 11:24:21.852 ***
alicE_invite_to_room_1711@domain.example.com/res1 in
<message from='invite_to_room@muclight2.domain.example.com' to='alice_invite_to_room_1711@domain.example.com' id='0fe4d6f8-f61e-427b-bbd7-9e84b032fa30' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<prev-version>1646-393061-839883</prev-version>
<version>1646-393061-849023</version>
<user affiliation='member'>bob_invite_to_room_1711@domain.example.com</user>
</x>
<body/>
</message>
*** User 2022-03-04 11:24:21.852 ***
kate_invite_to_room_1711@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-04 11:24:21.852 ***
kate_invite_to_room_1711@domain.example.com/res1 in
</stream:stream>
*** User 2022-03-04 11:24:21.852 ***
bOb_invite_to_room_1711@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-04 11:24:21.852 ***
bOb_invite_to_room_1711@domain.example.com/res1 in
</stream:stream>
*** User 2022-03-04 11:24:21.853 ***
alicE_invite_to_room_1711@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-04 11:24:21.853 ***
alicE_invite_to_room_1711@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-03-04 11:24:21
=== successfully completed test case
=== === Returned value: ok