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

=== Config value:

    [{watchdog,<0.87415.0>},
     {muc_light_host,<<"muclight.localhost">>},
     {mam_backend,rdbms},
     {preset,"pgsql_mnesia"},
     {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@549f635c4ac9.2024-03-11_11.28.53/big_tests.tests.rest_client_SUITE.logs/run.2024-03-11_11.44.52/rest_client_suite.msg_is_sent_and_delivered_in_room.241538.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@549f635c4ac9.2024-03-11_11.28.53/big_tests.tests.rest_client_SUITE.logs/run.2024-03-11_11.44.52/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_sic => #{iqdisc => one_queue},
        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_amp => #{},
        mod_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_presence => #{},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,
              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 => 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}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@549f635c4ac9.2024-03-11_11.28.53"

=== Started at 2024-03-11 11:44:53


*** CT 2024-03-11 11:44:53.259 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4929.html

*** User 2024-03-11 11:44:53.307 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3270@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-11 11:44:53.308 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3270@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3c3715670d5bcb82' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-11 11:44:53.308 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3270@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-11 11:44:53.308 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3270@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfaW5fcm9vbV8zMjcwAG1hdHlncnlzYQ==</auth>



*** User 2024-03-11 11:44:53.309 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3270@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-11 11:44:53.309 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3270@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-11 11:44:53.310 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3270@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6219bb9f2e35d263' from='localhost' version='1.0' xml:lang='en' to='alice_msg_is_sent_and_delivered_in_room_3270@localhost'>

*** User 2024-03-11 11:44:53.310 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3270@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-11 11:44:53.311 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3270@localhost/res1 out
<iq type='set' id='acd055f95da1540d5c9a35c41e29cc27'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-11 11:44:53.312 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3270@localhost/res1 in
<iq id='acd055f95da1540d5c9a35c41e29cc27' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_msg_is_sent_and_delivered_in_room_3270@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-11 11:44:53.313 ***🔗
alice_msg_is_sent_and_delivered_in_room_3270@localhost/res1 out
<iq type='set' id='62e632fe43ff1724626281cf9fc70dda'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:44:53.314 ***🔗
alice_msg_is_sent_and_delivered_in_room_3270@localhost/res1 in
<iq from='localhost' to='alice_msg_is_sent_and_delivered_in_room_3270@localhost/res1' id='62e632fe43ff1724626281cf9fc70dda' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:44:53.316 ***🔗
alice_msg_is_sent_and_delivered_in_room_3270@localhost/res1 out
<presence/>



*** User 2024-03-11 11:44:53.320 ***🔗
alice_msg_is_sent_and_delivered_in_room_3270@localhost/res1 in
<presence from='alice_msg_is_sent_and_delivered_in_room_3270@localhost/res1' to='alice_msg_is_sent_and_delivered_in_room_3270@localhost/res1'/>



*** User 2024-03-11 11:44:53.374 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3270@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-11 11:44:53.375 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3270@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d042d81363b7d383' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-11 11:44:53.375 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3270@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-11 11:44:53.375 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3270@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tc2dfaXNfc2VudF9hbmRfZGVsaXZlcmVkX2luX3Jvb21fMzI3MABtYWtyb2xpa2E=</auth>



*** User 2024-03-11 11:44:53.379 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3270@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-11 11:44:53.379 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3270@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-11 11:44:53.380 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3270@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='26a92f579e75b172' from='localhost' version='1.0' xml:lang='en' to='bob_msg_is_sent_and_delivered_in_room_3270@localhost'>

*** User 2024-03-11 11:44:53.380 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3270@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-11 11:44:53.380 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3270@localhost/res1 out
<iq type='set' id='bc48220480b07f5bfc49f66e0d59e05d'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-11 11:44:53.380 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3270@localhost/res1 in
<iq id='bc48220480b07f5bfc49f66e0d59e05d' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_msg_is_sent_and_delivered_in_room_3270@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-11 11:44:53.380 ***🔗
bob_msg_is_sent_and_delivered_in_room_3270@localhost/res1 out
<iq type='set' id='332bb172459d7324eaf8dbccc7a38484'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:44:53.381 ***🔗
bob_msg_is_sent_and_delivered_in_room_3270@localhost/res1 in
<iq from='localhost' to='bob_msg_is_sent_and_delivered_in_room_3270@localhost/res1' id='332bb172459d7324eaf8dbccc7a38484' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:44:53.381 ***🔗
bob_msg_is_sent_and_delivered_in_room_3270@localhost/res1 out
<presence/>



*** User 2024-03-11 11:44:53.400 ***🔗
bob_msg_is_sent_and_delivered_in_room_3270@localhost/res1 in
<presence from='bob_msg_is_sent_and_delivered_in_room_3270@localhost/res1' to='bob_msg_is_sent_and_delivered_in_room_3270@localhost/res1'/>



*** User 2024-03-11 11:44:53.476 ***🔗
REST request:
Code: 201
Req: {<0.87895.0>,<<"/api/rooms">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"04fcc73d77f54ba0">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzMyNzBAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:44:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"27">>}],
         <<"{\"id\":\"1710-157493-409103\"}">>,156,69746}
Params: #{path => <<"/api/rooms">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => client,
          creds =>
              {<<"alice_msg_is_sent_and_delivered_in_room_3270@localhost">>,
               <<"matygrysa">>},
          body =>
              <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
          return_headers => true}


*** User 2024-03-11 11:44:53.502 ***🔗
REST request:
Code: 204
Req: {<0.87997.0>,<<"/api/rooms/1710-157493-409103/users">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"24e7e3af27ddf5ba">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzMyNzBAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<"{\"user\":\"bob_msg_is_sent_and_delivered_in_room_3270@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:44:52 GMT">>}],
         <<>>,80,20109}
Params: #{path => <<"/api/rooms/1710-157493-409103/users">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => client,
          creds =>
              {<<"alice_msg_is_sent_and_delivered_in_room_3270@localhost">>,
               <<"matygrysa">>},
          body =>
              <<"{\"user\":\"bob_msg_is_sent_and_delivered_in_room_3270@localhost\"}">>,
          return_headers => true}


*** User 2024-03-11 11:44:53.503 ***🔗
bob_msg_is_sent_and_delivered_in_room_3270@localhost/res1 in
<message from='1710-157493-409103@muclight.localhost' to='bob_msg_is_sent_and_delivered_in_room_3270@localhost' id='c2e4726a-c21b-43ec-836b-83a8d8c455f8' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1710-157493-493453</version>
		<user affiliation='member'>bob_msg_is_sent_and_delivered_in_room_3270@localhost</user>
	</x>
	<body/>
</message>



*** User 2024-03-11 11:44:53.503 ***🔗
alice_msg_is_sent_and_delivered_in_room_3270@localhost/res1 in
<message from='1710-157493-409103@muclight.localhost' to='alice_msg_is_sent_and_delivered_in_room_3270@localhost' id='c2e4726a-c21b-43ec-836b-83a8d8c455f8' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1710-157493-409094</prev-version>
		<version>1710-157493-493453</version>
		<user affiliation='member'>bob_msg_is_sent_and_delivered_in_room_3270@localhost</user>
	</x>
	<body/>
	<stanza-id by='1710-157493-409103@muclight.localhost' id='C4R127KCQC81' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-03-11 11:44:53.581 ***🔗
REST request:
Code: 200
Req: {<0.88143.0>,<<"/api/rooms/1710-157493-409103/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f78a4df447679744">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzMyNzBAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:44:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"45">>}],
         <<"{\"id\":\"3063fc57-c68c-4f8f-b722-e1b17a0a953f\"}">>,169,70923}
Params: #{path => <<"/api/rooms/1710-157493-409103/messages">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => client,
          creds =>
              {<<"alice_msg_is_sent_and_delivered_in_room_3270@localhost">>,
               <<"matygrysa">>},
          body => <<"{\"body\":\"Hi all!\"}">>,return_headers => true}


*** User 2024-03-11 11:44:53.595 ***🔗
REST request:
Code: 200
Req: {<0.88205.0>,<<"/api/rooms/1710-157493-409103/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"92f6d67c6405bf1e">>},
       {<<"authorization">>,
        <<"Basic Ym9iX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfaW5fcm9vbV8zMjcwQGxvY2FsaG9zdDptYWtyb2xpa2E=">>}],
      <<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:44:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"45">>}],
         <<"{\"id\":\"99e37825-6870-4f19-a5b1-55e0394356c7\"}">>,169,8202}
Params: #{path => <<"/api/rooms/1710-157493-409103/messages">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => client,
          creds =>
              {<<"bob_msg_is_sent_and_delivered_in_room_3270@localhost">>,
               <<"makrolika">>},
          body => <<"{\"body\":\"Hi all!\"}">>,return_headers => true}


*** User 2024-03-11 11:44:53.596 ***🔗
alice_msg_is_sent_and_delivered_in_room_3270@localhost/res1 in
<message from='1710-157493-409103@muclight.localhost/alice_msg_is_sent_and_delivered_in_room_3270@localhost' to='alice_msg_is_sent_and_delivered_in_room_3270@localhost' id='3063fc57-c68c-4f8f-b722-e1b17a0a953f' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1710-157493-409103@muclight.localhost' id='C4R127KIHN01' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-03-11 11:44:53.596 ***🔗
bob_msg_is_sent_and_delivered_in_room_3270@localhost/res1 in
<message from='1710-157493-409103@muclight.localhost/alice_msg_is_sent_and_delivered_in_room_3270@localhost' to='bob_msg_is_sent_and_delivered_in_room_3270@localhost' id='3063fc57-c68c-4f8f-b722-e1b17a0a953f' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1710-157493-409103@muclight.localhost' id='C4R127KIHN01' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-03-11 11:44:53.596 ***🔗
alice_msg_is_sent_and_delivered_in_room_3270@localhost/res1 in
<message from='1710-157493-409103@muclight.localhost/bob_msg_is_sent_and_delivered_in_room_3270@localhost' to='alice_msg_is_sent_and_delivered_in_room_3270@localhost' id='99e37825-6870-4f19-a5b1-55e0394356c7' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1710-157493-409103@muclight.localhost' id='C4R127L5UC81' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-03-11 11:44:53.596 ***🔗
bob_msg_is_sent_and_delivered_in_room_3270@localhost/res1 in
<message from='1710-157493-409103@muclight.localhost/bob_msg_is_sent_and_delivered_in_room_3270@localhost' to='bob_msg_is_sent_and_delivered_in_room_3270@localhost' id='99e37825-6870-4f19-a5b1-55e0394356c7' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1710-157493-409103@muclight.localhost' id='C4R127L5UC81' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-03-11 11:44:53.596 ***🔗
bob_msg_is_sent_and_delivered_in_room_3270@localhost/res1 out
</stream:stream>

*** User 2024-03-11 11:44:53.597 ***🔗
bob_msg_is_sent_and_delivered_in_room_3270@localhost/res1 in
</stream:stream>

*** User 2024-03-11 11:44:53.597 ***🔗
alice_msg_is_sent_and_delivered_in_room_3270@localhost/res1 out
</stream:stream>

*** User 2024-03-11 11:44:53.597 ***🔗
alice_msg_is_sent_and_delivered_in_room_3270@localhost/res1 in
</stream:stream>
*** CT 2024-03-11 11:44:53.605 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4929.html



=== Ended at 2024-03-11 11:44:53
=== successfully completed test case
=== === Returned value: ok