=== Test case: rest_client_SUITE:user_is_invited_to_a_room/1 (click for source code)

=== Config value:

    [{watchdog,<0.84048.0>},
     {muc_light_host,<<"muclight.localhost">>},
     {mam_backend,rdbms},
     {preset,"pgsql_cets"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@1c2ae12cdb1a.2023-11-17_15.10.15/big_tests.tests.rest_client_SUITE.logs/run.2023-11-17_15.24.28/rest_client_suite.user_is_invited_to_a_room.221698.html"},
     {tc_group_properties,[{name,muc},parallel]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/rest_client_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@1c2ae12cdb1a.2023-11-17_15.10.15/big_tests.tests.rest_client_SUITE.logs/run.2023-11-17_15.24.28/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,backend => rdbms,iqdisc => parallel},
        mod_roster =>
            #{backend => rdbms,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_stream_management =>
            #{buffer => true,ack => true,backend => cets,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              buffer_max => 100,ack_freq => 1,resume_timeout => 600},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_bosh =>
            #{backend => cets,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}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@1c2ae12cdb1a.2023-11-17_15.10.15"

=== Started at 2023-11-17 15:24:29


*** CT 2023-11-17 15:24:29.199 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4719.html

*** User 2023-11-17 15:24:29.241 ***🔗
alicE_user_is_invited_to_a_room_2940@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-17 15:24:29.242 ***🔗
alicE_user_is_invited_to_a_room_2940@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1b61cdf77118d77b' from='localhost' version='1.0' xml:lang='en'>

*** User 2023-11-17 15:24:29.242 ***🔗
alicE_user_is_invited_to_a_room_2940@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 2023-11-17 15:24:29.242 ***🔗
alicE_user_is_invited_to_a_room_2940@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VzZXJfaXNfaW52aXRlZF90b19hX3Jvb21fMjk0MABtYXR5Z3J5c2E=</auth>



*** User 2023-11-17 15:24:29.244 ***🔗
alicE_user_is_invited_to_a_room_2940@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-17 15:24:29.244 ***🔗
alicE_user_is_invited_to_a_room_2940@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-17 15:24:29.245 ***🔗
alicE_user_is_invited_to_a_room_2940@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6d8782a4ac6c73b7' from='localhost' version='1.0' xml:lang='en' to='alice_user_is_invited_to_a_room_2940@localhost'>

*** User 2023-11-17 15:24:29.246 ***🔗
alicE_user_is_invited_to_a_room_2940@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 2023-11-17 15:24:29.246 ***🔗
alicE_user_is_invited_to_a_room_2940@localhost/res1 out
<iq type='set' id='6ca37d22e9c076aa246f32d23beef298'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-11-17 15:24:29.247 ***🔗
alicE_user_is_invited_to_a_room_2940@localhost/res1 in
<iq id='6ca37d22e9c076aa246f32d23beef298' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_user_is_invited_to_a_room_2940@localhost/res1</jid>
	</bind>
</iq>



*** User 2023-11-17 15:24:29.248 ***🔗
alice_user_is_invited_to_a_room_2940@localhost/res1 out
<iq type='set' id='67ad48aed957da27a5fd116aaa0d9d60'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-17 15:24:29.248 ***🔗
alice_user_is_invited_to_a_room_2940@localhost/res1 in
<iq from='localhost' to='alice_user_is_invited_to_a_room_2940@localhost/res1' id='67ad48aed957da27a5fd116aaa0d9d60' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-17 15:24:29.249 ***🔗
alice_user_is_invited_to_a_room_2940@localhost/res1 out
<presence/>



*** User 2023-11-17 15:24:29.252 ***🔗
alice_user_is_invited_to_a_room_2940@localhost/res1 in
<presence from='alice_user_is_invited_to_a_room_2940@localhost/res1' to='alice_user_is_invited_to_a_room_2940@localhost/res1'/>



*** User 2023-11-17 15:24:29.253 ***🔗
bOb_user_is_invited_to_a_room_2940@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-17 15:24:29.255 ***🔗
bOb_user_is_invited_to_a_room_2940@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7780fcdce8440535' from='localhost' version='1.0' xml:lang='en'>

*** User 2023-11-17 15:24:29.255 ***🔗
bOb_user_is_invited_to_a_room_2940@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 2023-11-17 15:24:29.255 ***🔗
bOb_user_is_invited_to_a_room_2940@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl91c2VyX2lzX2ludml0ZWRfdG9fYV9yb29tXzI5NDAAbWFrcm9saWth</auth>



*** User 2023-11-17 15:24:29.297 ***🔗
bOb_user_is_invited_to_a_room_2940@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-17 15:24:29.297 ***🔗
bOb_user_is_invited_to_a_room_2940@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-17 15:24:29.297 ***🔗
bOb_user_is_invited_to_a_room_2940@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6aa7308ee2ae55f6' from='localhost' version='1.0' xml:lang='en' to='bob_user_is_invited_to_a_room_2940@localhost'>

*** User 2023-11-17 15:24:29.298 ***🔗
bOb_user_is_invited_to_a_room_2940@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 2023-11-17 15:24:29.298 ***🔗
bOb_user_is_invited_to_a_room_2940@localhost/res1 out
<iq type='set' id='474501173619c06e6b78f8e4b4d4a775'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-11-17 15:24:29.299 ***🔗
bOb_user_is_invited_to_a_room_2940@localhost/res1 in
<iq id='474501173619c06e6b78f8e4b4d4a775' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_user_is_invited_to_a_room_2940@localhost/res1</jid>
	</bind>
</iq>



*** User 2023-11-17 15:24:29.299 ***🔗
bob_user_is_invited_to_a_room_2940@localhost/res1 out
<iq type='set' id='adcef0ff46b8e1c7b605b8695943e593'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-17 15:24:29.300 ***🔗
bob_user_is_invited_to_a_room_2940@localhost/res1 in
<iq from='localhost' to='bob_user_is_invited_to_a_room_2940@localhost/res1' id='adcef0ff46b8e1c7b605b8695943e593' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-17 15:24:29.300 ***🔗
bob_user_is_invited_to_a_room_2940@localhost/res1 out
<presence/>



*** User 2023-11-17 15:24:29.303 ***🔗
bob_user_is_invited_to_a_room_2940@localhost/res1 in
<presence from='bob_user_is_invited_to_a_room_2940@localhost/res1' to='bob_user_is_invited_to_a_room_2940@localhost/res1'/>



*** User 2023-11-17 15:24:29.322 ***🔗
REST request:
Code: 201
Req: {<0.84387.0>,<<"/api/rooms">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a8f43c9f1fd6a807">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfdXNlcl9pc19pbnZpdGVkX3RvX2Ffcm9vbV8yOTQwQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
      <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 17 Nov 2023 15:24:29 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"27">>}],
         <<"{\"id\":\"1700-234669-312185\"}">>,156,13122}
Params: #{path => <<"/api/rooms">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"alice_user_is_invited_to_a_room_2940@localhost">>,
               <<"matygrysa">>},
          method => <<"POST">>,
          body =>
              <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
          role => client,return_headers => true}


*** User 2023-11-17 15:24:29.424 ***🔗
REST request:
Code: 204
Req: {<0.84486.0>,<<"/api/rooms/1700-234669-312185/users">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"94f2c943e8524018">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfdXNlcl9pc19pbnZpdGVkX3RvX2Ffcm9vbV8yOTQwQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
      <<"{\"user\":\"bob_user_is_invited_to_a_room_2940@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 17 Nov 2023 15:24:29 GMT">>}],
         <<>>,80,94291}
Params: #{path => <<"/api/rooms/1700-234669-312185/users">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"alice_user_is_invited_to_a_room_2940@localhost">>,
               <<"matygrysa">>},
          method => <<"POST">>,
          body =>
              <<"{\"user\":\"bob_user_is_invited_to_a_room_2940@localhost\"}">>,
          role => client,return_headers => true}


*** User 2023-11-17 15:24:29.424 ***🔗
bob_user_is_invited_to_a_room_2940@localhost/res1 in
<message from='1700-234669-312185@muclight.localhost' to='bob_user_is_invited_to_a_room_2940@localhost' id='d2e3d8f0-6ff8-4374-ad44-068decde5a9d' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1700-234669-409580</version>
		<user affiliation='member'>bob_user_is_invited_to_a_room_2940@localhost</user>
	</x>
	<body/>
</message>



*** User 2023-11-17 15:24:29.424 ***🔗
alice_user_is_invited_to_a_room_2940@localhost/res1 in
<message from='1700-234669-312185@muclight.localhost' to='alice_user_is_invited_to_a_room_2940@localhost' id='d2e3d8f0-6ff8-4374-ad44-068decde5a9d' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1700-234669-312175</prev-version>
		<version>1700-234669-409580</version>
		<user affiliation='member'>bob_user_is_invited_to_a_room_2940@localhost</user>
	</x>
	<body/>
	<stanza-id by='1700-234669-312185@muclight.localhost' id='C2IQNE0JLJ80' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2023-11-17 15:24:29.436 ***🔗
REST request:
Code: 200
Req: {<0.84727.0>,<<"/api/rooms/1700-234669-312185">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0601e5317afb20b2">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfdXNlcl9pc19pbnZpdGVkX3RvX2Ffcm9vbV8yOTQwQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 17 Nov 2023 15:24:29 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"216">>}],
         <<"{\"participants\":[{\"role\":\"owner\",\"user\":\"alice_user_is_invited_to_a_room_2940@localhost\"},{\"role\":\"member\",\"user\":\"bob_user_is_invited_to_a_room_2940@localhost\"}],\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
         341,6028}
Params: #{path => <<"/api/rooms/1700-234669-312185">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"alice_user_is_invited_to_a_room_2940@localhost">>,
               <<"matygrysa">>},
          method => <<"GET">>,body => <<>>,role => client,
          return_headers => true}


*** User 2023-11-17 15:24:29.436 ***🔗
alice_user_is_invited_to_a_room_2940@localhost/res1 out
<iq type='get' id='7bc5be9ecfe1e27bdc57fb0f0c06f115' to='1700-234669-312185@muclight.localhost'>
	<query xmlns='urn:xmpp:muclight:0#affiliations'/>
</iq>



*** User 2023-11-17 15:24:29.498 ***🔗
alice_user_is_invited_to_a_room_2940@localhost/res1 in
<iq from='1700-234669-312185@muclight.localhost' to='alice_user_is_invited_to_a_room_2940@localhost/res1' id='7bc5be9ecfe1e27bdc57fb0f0c06f115' type='result'>
	<query xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1700-234669-409580</version>
		<user affiliation='owner'>alice_user_is_invited_to_a_room_2940@localhost</user>
		<user affiliation='member'>bob_user_is_invited_to_a_room_2940@localhost</user>
	</query>
</iq>



*** User 2023-11-17 15:24:29.499 ***🔗
bob_user_is_invited_to_a_room_2940@localhost/res1 out
</stream:stream>

*** User 2023-11-17 15:24:29.500 ***🔗
bob_user_is_invited_to_a_room_2940@localhost/res1 in
</stream:stream>

*** User 2023-11-17 15:24:29.500 ***🔗
alice_user_is_invited_to_a_room_2940@localhost/res1 out
</stream:stream>

*** User 2023-11-17 15:24:29.500 ***🔗
alice_user_is_invited_to_a_room_2940@localhost/res1 in
</stream:stream>
*** CT 2023-11-17 15:24:29.505 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4719.html



=== Ended at 2023-11-17 15:24:29
=== successfully completed test case
=== === Returned value: ok