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

=== Config value:

    [{watchdog,<0.75687.0>},
     {muc_light_host,<<"muclight.domain.example.com">>},
     {mam_backend,rdbms},
     {preset,"odbc_mssql_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@e69c7ef90d22.2024-04-12_09.30.33/big_tests.tests.rest_client_SUITE.logs/run.2024-04-12_09.44.42/rest_client_suite.msg_is_sent_and_delivered_in_room.95108.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@e69c7ef90d22.2024-04-12_09.30.33/big_tests.tests.rest_client_SUITE.logs/run.2024-04-12_09.44.42/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,iqdisc => parallel,backend => rdbms},
        mod_roster =>
            #{iqdisc => one_queue,backend => rdbms,versioning => false,
              store_current_id => false},
        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_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_carboncopy => #{iqdisc => no_queue},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@e69c7ef90d22.2024-04-12_09.30.33"

=== Started at 2024-04-12 09:44:42


*** CT 2024-04-12 09:44:42.983 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2661.html

*** User 2024-04-12 09:44:43.064 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2983@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 2024-04-12 09:44:43.065 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0ecbcaf65b35a29c' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-12 09:44:43.066 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2983@domain.example.com/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-04-12 09:44:43.066 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfaW5fcm9vbV8yOTgzAG1hdHlncnlzYQ==</auth>



*** User 2024-04-12 09:44:43.067 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-12 09:44:43.067 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2983@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 2024-04-12 09:44:43.068 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b9a2f1b64ff0bf7e' from='domain.example.com' version='1.0' xml:lang='en' to='alice_msg_is_sent_and_delivered_in_room_2983@domain.example.com'>

*** User 2024-04-12 09:44:43.068 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2983@domain.example.com/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-04-12 09:44:43.069 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1 out
<iq type='set' id='773559bfc3058d7a2246c06a637dd513'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-12 09:44:43.071 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1 in
<iq id='773559bfc3058d7a2246c06a637dd513' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-12 09:44:43.071 ***🔗
alice_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1 out
<iq type='set' id='f21c22db6433b57b607279bd19568c1b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-12 09:44:43.073 ***🔗
alice_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1' id='f21c22db6433b57b607279bd19568c1b' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-12 09:44:43.073 ***🔗
alice_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1 out
<presence/>



*** User 2024-04-12 09:44:43.076 ***🔗
alice_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1 in
<presence from='alice_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1' to='alice_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1'/>



*** User 2024-04-12 09:44:43.078 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2983@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 2024-04-12 09:44:43.078 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e43f04f668e1e804' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-12 09:44:43.079 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2983@domain.example.com/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-04-12 09:44:43.079 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tc2dfaXNfc2VudF9hbmRfZGVsaXZlcmVkX2luX3Jvb21fMjk4MwBtYWtyb2xpa2E=</auth>



*** User 2024-04-12 09:44:43.082 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-12 09:44:43.082 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2983@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 2024-04-12 09:44:43.083 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3165dc42d087c13b' from='domain.example.com' version='1.0' xml:lang='en' to='bob_msg_is_sent_and_delivered_in_room_2983@domain.example.com'>

*** User 2024-04-12 09:44:43.083 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2983@domain.example.com/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-04-12 09:44:43.083 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1 out
<iq type='set' id='49aeca7c76f5a3141f87b8b8bbb02c80'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-12 09:44:43.083 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1 in
<iq id='49aeca7c76f5a3141f87b8b8bbb02c80' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-12 09:44:43.084 ***🔗
bob_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1 out
<iq type='set' id='8d5f6917d28cc7c82c04629e4e8b2d5f'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-12 09:44:43.085 ***🔗
bob_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1' id='8d5f6917d28cc7c82c04629e4e8b2d5f' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-12 09:44:43.085 ***🔗
bob_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1 out
<presence/>



*** User 2024-04-12 09:44:43.161 ***🔗
bob_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1 in
<presence from='bob_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1' to='bob_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1'/>



*** User 2024-04-12 09:44:43.181 ***🔗
REST request:
Code: 201
Req: {<0.76098.0>,<<"/api/rooms">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"19eebe3073418755">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzI5ODNAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
      <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 12 Apr 2024 09:44:42 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"27">>}],
         <<"{\"id\":\"1712-915083-175179\"}">>,156,13179}
Params: #{path => <<"/api/rooms">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"alice_msg_is_sent_and_delivered_in_room_2983@domain.example.com">>,
               <<"matygrysa">>},
          method => <<"POST">>,role => client,
          body =>
              <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
          return_headers => true}


*** User 2024-04-12 09:44:43.365 ***🔗
REST request:
Code: 204
Req: {<0.76207.0>,<<"/api/rooms/1712-915083-175179/users">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d2acf2e4a1e341ce">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzI5ODNAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
      <<"{\"user\":\"bob_msg_is_sent_and_delivered_in_room_2983@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 12 Apr 2024 09:44:43 GMT">>}],
         <<>>,80,176193}
Params: #{path => <<"/api/rooms/1712-915083-175179/users">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"alice_msg_is_sent_and_delivered_in_room_2983@domain.example.com">>,
               <<"matygrysa">>},
          method => <<"POST">>,role => client,
          body =>
              <<"{\"user\":\"bob_msg_is_sent_and_delivered_in_room_2983@domain.example.com\"}">>,
          return_headers => true}


*** User 2024-04-12 09:44:43.366 ***🔗
bob_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1 in
<message from='1712-915083-175179@muclight.domain.example.com' to='bob_msg_is_sent_and_delivered_in_room_2983@domain.example.com' id='fe19082e-3c70-4f27-a77e-d7644aade744' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1712-915083-274935</version>
		<user affiliation='member'>bob_msg_is_sent_and_delivered_in_room_2983@domain.example.com</user>
	</x>
	<body/>
</message>



*** User 2024-04-12 09:44:43.366 ***🔗
alice_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1 in
<message from='1712-915083-175179@muclight.domain.example.com' to='alice_msg_is_sent_and_delivered_in_room_2983@domain.example.com' id='fe19082e-3c70-4f27-a77e-d7644aade744' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1712-915083-175168</prev-version>
		<version>1712-915083-274935</version>
		<user affiliation='member'>bob_msg_is_sent_and_delivered_in_room_2983@domain.example.com</user>
	</x>
	<body/>
	<stanza-id by='1712-915083-175179@muclight.domain.example.com' id='C5F33S8RIO01' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-04-12 09:44:43.454 ***🔗
REST request:
Code: 200
Req: {<0.76404.0>,<<"/api/rooms/1712-915083-175179/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"fddf4c8f7446f03e">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzI5ODNAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
      <<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 12 Apr 2024 09:44:43 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"45">>}],
         <<"{\"id\":\"7947107a-7227-4200-8d73-2402bc4218d1\"}">>,169,80471}
Params: #{path => <<"/api/rooms/1712-915083-175179/messages">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"alice_msg_is_sent_and_delivered_in_room_2983@domain.example.com">>,
               <<"matygrysa">>},
          method => <<"POST">>,role => client,
          body => <<"{\"body\":\"Hi all!\"}">>,return_headers => true}


*** User 2024-04-12 09:44:43.481 ***🔗
REST request:
Code: 200
Req: {<0.76491.0>,<<"/api/rooms/1712-915083-175179/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ca5f9a180f92170d">>},
       {<<"authorization">>,
        <<"Basic Ym9iX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfaW5fcm9vbV8yOTgzQGRvbWFpbi5leGFtcGxlLmNvbTptYWtyb2xpa2E=">>}],
      <<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 12 Apr 2024 09:44:43 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"45">>}],
         <<"{\"id\":\"0427b102-79b6-4f79-8c5d-23884cf9b549\"}">>,169,19246}
Params: #{path => <<"/api/rooms/1712-915083-175179/messages">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_msg_is_sent_and_delivered_in_room_2983@domain.example.com">>,
               <<"makrolika">>},
          method => <<"POST">>,role => client,
          body => <<"{\"body\":\"Hi all!\"}">>,return_headers => true}


*** User 2024-04-12 09:44:43.481 ***🔗
alice_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1 in
<message from='1712-915083-175179@muclight.domain.example.com/alice_msg_is_sent_and_delivered_in_room_2983@domain.example.com' to='alice_msg_is_sent_and_delivered_in_room_2983@domain.example.com' id='7947107a-7227-4200-8d73-2402bc4218d1' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1712-915083-175179@muclight.domain.example.com' id='C5F33S9K9OG1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-04-12 09:44:43.481 ***🔗
bob_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1 in
<message from='1712-915083-175179@muclight.domain.example.com/alice_msg_is_sent_and_delivered_in_room_2983@domain.example.com' to='bob_msg_is_sent_and_delivered_in_room_2983@domain.example.com' id='7947107a-7227-4200-8d73-2402bc4218d1' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1712-915083-175179@muclight.domain.example.com' id='C5F33S9K9OG1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-04-12 09:44:43.481 ***🔗
alice_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1 in
<message from='1712-915083-175179@muclight.domain.example.com/bob_msg_is_sent_and_delivered_in_room_2983@domain.example.com' to='alice_msg_is_sent_and_delivered_in_room_2983@domain.example.com' id='0427b102-79b6-4f79-8c5d-23884cf9b549' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1712-915083-175179@muclight.domain.example.com' id='C5F33SA8RMO1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-04-12 09:44:43.482 ***🔗
bob_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1 in
<message from='1712-915083-175179@muclight.domain.example.com/bob_msg_is_sent_and_delivered_in_room_2983@domain.example.com' to='bob_msg_is_sent_and_delivered_in_room_2983@domain.example.com' id='0427b102-79b6-4f79-8c5d-23884cf9b549' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1712-915083-175179@muclight.domain.example.com' id='C5F33SA8RMO1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-04-12 09:44:43.482 ***🔗
bob_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-12 09:44:43.482 ***🔗
bob_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1 in
</stream:stream>

*** User 2024-04-12 09:44:43.482 ***🔗
alice_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-12 09:44:43.482 ***🔗
alice_msg_is_sent_and_delivered_in_room_2983@domain.example.com/res1 in
</stream:stream>
*** CT 2024-04-12 09:44:43.485 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2662.html



=== Ended at 2024-04-12 09:44:43
=== successfully completed test case
=== === Returned value: ok