=== Test case: muc_light_http_api_SUITE:invite_to_room/1 (click for source code)

=== Config value:

    [{watchdog,<0.43610.0>},
     {preset,"internal_mnesia"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/muc_light_http_api_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@8dadd8a9c704.2024-03-29_09.14.50/big_tests.tests.muc_light_http_api_SUITE.logs/run.2024-03-29_09.27.57/muc_light_http_api_suite.invite_to_room.56579.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@8dadd8a9c704.2024-03-29_09.14.50/big_tests.tests.muc_light_http_api_SUITE.logs/run.2024-03-29_09.27.57/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,backend => mnesia,iqdisc => parallel},
        mod_roster =>
            #{backend => mnesia,iqdisc => one_queue,versioning => false,
              store_current_id => false},
        mod_amp => #{},
        mod_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_sic => #{iqdisc => one_queue},
        mod_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,buffer_max => 100,
              ack_freq => 1,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              resume_timeout => 600},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_carboncopy => #{iqdisc => no_queue}}},
     {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@8dadd8a9c704.2024-03-29_09.14.50"

=== Started at 2024-03-29 09:27:58


*** CT 2024-03-29 09:27:58.031 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4355.html

*** User 2024-03-29 09:27:58.040 ***🔗
alicE_invite_to_room_1480@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-29 09:27:58.041 ***🔗
alicE_invite_to_room_1480@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ebaae1f3bb9399e3' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-29 09:27:58.041 ***🔗
alicE_invite_to_room_1480@localhost/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-29 09:27:58.041 ***🔗
alicE_invite_to_room_1480@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludml0ZV90b19yb29tXzE0ODAAbWF0eWdyeXNh</auth>



*** User 2024-03-29 09:27:58.041 ***🔗
alicE_invite_to_room_1480@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-29 09:27:58.041 ***🔗
alicE_invite_to_room_1480@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-29 09:27:58.042 ***🔗
alicE_invite_to_room_1480@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='09a57130902f966c' from='localhost' version='1.0' xml:lang='en' to='alice_invite_to_room_1480@localhost'>

*** User 2024-03-29 09:27:58.042 ***🔗
alicE_invite_to_room_1480@localhost/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-29 09:27:58.042 ***🔗
alicE_invite_to_room_1480@localhost/res1 out
<iq type='set' id='45e00bdea4e6aab53bc7a14c258e54d3'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-29 09:27:58.042 ***🔗
alicE_invite_to_room_1480@localhost/res1 in
<iq id='45e00bdea4e6aab53bc7a14c258e54d3' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_invite_to_room_1480@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-29 09:27:58.042 ***🔗
alice_invite_to_room_1480@localhost/res1 out
<iq type='set' id='941a42c69ba834f9e52d5a6f1af78700'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-29 09:27:58.043 ***🔗
alice_invite_to_room_1480@localhost/res1 in
<iq from='localhost' to='alice_invite_to_room_1480@localhost/res1' id='941a42c69ba834f9e52d5a6f1af78700' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-29 09:27:58.043 ***🔗
alice_invite_to_room_1480@localhost/res1 out
<presence/>



*** User 2024-03-29 09:27:58.044 ***🔗
alice_invite_to_room_1480@localhost/res1 in
<presence from='alice_invite_to_room_1480@localhost/res1' to='alice_invite_to_room_1480@localhost/res1'/>



*** User 2024-03-29 09:27:58.045 ***🔗
bOb_invite_to_room_1480@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-29 09:27:58.045 ***🔗
bOb_invite_to_room_1480@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7c1c3ee90e50aa19' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-29 09:27:58.045 ***🔗
bOb_invite_to_room_1480@localhost/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-29 09:27:58.045 ***🔗
bOb_invite_to_room_1480@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZpdGVfdG9fcm9vbV8xNDgwAG1ha3JvbGlrYQ==</auth>



*** User 2024-03-29 09:27:58.046 ***🔗
bOb_invite_to_room_1480@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-29 09:27:58.046 ***🔗
bOb_invite_to_room_1480@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-29 09:27:58.046 ***🔗
bOb_invite_to_room_1480@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='adb6a625ff003575' from='localhost' version='1.0' xml:lang='en' to='bob_invite_to_room_1480@localhost'>

*** User 2024-03-29 09:27:58.046 ***🔗
bOb_invite_to_room_1480@localhost/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-29 09:27:58.047 ***🔗
bOb_invite_to_room_1480@localhost/res1 out
<iq type='set' id='ec6958cf636faab7b6efa986716cb6c1'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-29 09:27:58.047 ***🔗
bOb_invite_to_room_1480@localhost/res1 in
<iq id='ec6958cf636faab7b6efa986716cb6c1' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_invite_to_room_1480@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-29 09:27:58.048 ***🔗
bob_invite_to_room_1480@localhost/res1 out
<iq type='set' id='11400bba8780d0210eb7b6205a7044ad'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-29 09:27:58.048 ***🔗
bob_invite_to_room_1480@localhost/res1 in
<iq from='localhost' to='bob_invite_to_room_1480@localhost/res1' id='11400bba8780d0210eb7b6205a7044ad' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-29 09:27:58.048 ***🔗
bob_invite_to_room_1480@localhost/res1 out
<presence/>



*** User 2024-03-29 09:27:58.049 ***🔗
bob_invite_to_room_1480@localhost/res1 in
<presence from='bob_invite_to_room_1480@localhost/res1' to='bob_invite_to_room_1480@localhost/res1'/>



*** User 2024-03-29 09:27:58.050 ***🔗
kate_invite_to_room_1480@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-29 09:27:58.050 ***🔗
kate_invite_to_room_1480@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f3819c68044788cd' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-29 09:27:58.051 ***🔗
kate_invite_to_room_1480@localhost/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-29 09:27:58.051 ***🔗
kate_invite_to_room_1480@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfaW52aXRlX3RvX3Jvb21fMTQ4MABtYWtyb3dlO3A=</auth>



*** User 2024-03-29 09:27:58.051 ***🔗
kate_invite_to_room_1480@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-29 09:27:58.052 ***🔗
kate_invite_to_room_1480@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-29 09:27:58.052 ***🔗
kate_invite_to_room_1480@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c62fc56162393790' from='localhost' version='1.0' xml:lang='en' to='kate_invite_to_room_1480@localhost'>

*** User 2024-03-29 09:27:58.052 ***🔗
kate_invite_to_room_1480@localhost/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-29 09:27:58.052 ***🔗
kate_invite_to_room_1480@localhost/res1 out
<iq type='set' id='43869fa9433730a96e26a5f1b1fecd7b'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-29 09:27:58.052 ***🔗
kate_invite_to_room_1480@localhost/res1 in
<iq id='43869fa9433730a96e26a5f1b1fecd7b' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_invite_to_room_1480@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-29 09:27:58.052 ***🔗
kate_invite_to_room_1480@localhost/res1 out
<iq type='set' id='a6d15b80936fd21fe0e4834fd79475d5'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-29 09:27:58.053 ***🔗
kate_invite_to_room_1480@localhost/res1 in
<iq from='localhost' to='kate_invite_to_room_1480@localhost/res1' id='a6d15b80936fd21fe0e4834fd79475d5' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-29 09:27:58.053 ***🔗
kate_invite_to_room_1480@localhost/res1 out
<presence/>



*** User 2024-03-29 09:27:58.054 ***🔗
kate_invite_to_room_1480@localhost/res1 in
<presence from='kate_invite_to_room_1480@localhost/res1' to='kate_invite_to_room_1480@localhost/res1'/>



*** User 2024-03-29 09:27:58.054 ***🔗
alice_invite_to_room_1480@localhost/res1 out
<iq type='set' id='706e954f1cf296b97a04fddf9fd6ad26' 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_1480@localhost</user>
		</occupants>
	</query>
</iq>



*** User 2024-03-29 09:27:58.055 ***🔗
alice_invite_to_room_1480@localhost/res1 in
<message from='invite_to_room@muclight.localhost' to='alice_invite_to_room_1480@localhost' id='706e954f1cf296b97a04fddf9fd6ad26' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1711-704478-54435</version>
		<user affiliation='owner'>alice_invite_to_room_1480@localhost</user>
	</x>
	<body/>
</message>



*** User 2024-03-29 09:27:58.055 ***🔗
alice_invite_to_room_1480@localhost/res1 in
<iq from='invite_to_room@muclight.localhost' to='alice_invite_to_room_1480@localhost/res1' id='706e954f1cf296b97a04fddf9fd6ad26' type='result'/>



*** User 2024-03-29 09:27:58.057 ***🔗
REST request:
Code: 204
Req: {<0.43678.0>,
      <<"/api/muc-lights/muclight.localhost/invite_to_room/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"54656c8bc0504130">>}],
      <<"{\"recipient\":\"bob_invite_to_room_1480@localhost\",\"sender\":\"alice_invite_to_room_1480@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},[],<<>>,27,1143}
Params: #{path =>
              <<"/api/muc-lights/muclight.localhost/invite_to_room/participants">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body =>
              <<"{\"recipient\":\"bob_invite_to_room_1480@localhost\",\"sender\":\"alice_invite_to_room_1480@localhost\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-03-29 09:27:58.058 ***🔗
bob_invite_to_room_1480@localhost/res1 in
<message from='invite_to_room@muclight.localhost' to='bob_invite_to_room_1480@localhost' id='02468ce5-57a2-4911-bd86-8b76e36545a0' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1711-704478-57400</version>
		<user affiliation='member'>bob_invite_to_room_1480@localhost</user>
	</x>
	<body/>
</message>



*** User 2024-03-29 09:27:58.058 ***🔗
alice_invite_to_room_1480@localhost/res1 in
<message from='invite_to_room@muclight.localhost' to='alice_invite_to_room_1480@localhost' id='02468ce5-57a2-4911-bd86-8b76e36545a0' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1711-704478-54435</prev-version>
		<version>1711-704478-57400</version>
		<user affiliation='member'>bob_invite_to_room_1480@localhost</user>
	</x>
	<body/>
</message>



*** User 2024-03-29 09:27:58.058 ***🔗
kate_invite_to_room_1480@localhost/res1 out
</stream:stream>

*** User 2024-03-29 09:27:58.058 ***🔗
kate_invite_to_room_1480@localhost/res1 in
</stream:stream>

*** User 2024-03-29 09:27:58.058 ***🔗
bob_invite_to_room_1480@localhost/res1 out
</stream:stream>

*** User 2024-03-29 09:27:58.058 ***🔗
bob_invite_to_room_1480@localhost/res1 in
</stream:stream>

*** User 2024-03-29 09:27:58.059 ***🔗
alice_invite_to_room_1480@localhost/res1 out
</stream:stream>

*** User 2024-03-29 09:27:58.059 ***🔗
alice_invite_to_room_1480@localhost/res1 in
</stream:stream>
*** CT 2024-03-29 09:27:58.063 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4356.html



=== Ended at 2024-03-29 09:27:58
=== successfully completed test case
=== === Returned value: ok