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

=== Config value:

    [{watchdog,<0.93045.0>},
     {muc_light_host,<<"muclight.domain.example.com">>},
     {mam_backend,rdbms},
     {preset,"mysql_redis"},
     {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@31a14a49844f.2024-04-16_10.12.33/big_tests.tests.rest_client_SUITE.logs/run.2024-04-16_10.26.13/rest_client_suite.msg_is_sent_and_delivered_in_room.287746.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@31a14a49844f.2024-04-16_10.12.33/big_tests.tests.rest_client_SUITE.logs/run.2024-04-16_10.26.13/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_sic => #{iqdisc => one_queue},
        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_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => 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_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@31a14a49844f.2024-04-16_10.12.33"

=== Started at 2024-04-16 10:26:13


*** CT 2024-04-16 10:26:13.640 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2371.html

*** User 2024-04-16 10:26:13.695 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3490@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-16 10:26:13.696 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='931edf243719bf80' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-16 10:26:13.696 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3490@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-16 10:26:13.696 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfaW5fcm9vbV8zNDkwAG1hdHlncnlzYQ==</auth>



*** User 2024-04-16 10:26:13.697 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-16 10:26:13.698 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3490@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-16 10:26:13.698 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5626f5ea8e9c447f' from='domain.example.com' version='1.0' xml:lang='en' to='alice_msg_is_sent_and_delivered_in_room_3490@domain.example.com'>

*** User 2024-04-16 10:26:13.698 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3490@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-16 10:26:13.699 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1 out
<iq type='set' id='6243718343ca6e427ca1ea39f92f7dd7'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-16 10:26:13.700 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1 in
<iq id='6243718343ca6e427ca1ea39f92f7dd7' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-16 10:26:13.700 ***🔗
alice_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1 out
<iq type='set' id='47b03d0fd1ff2153da2d317e0ec70ba2'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 10:26:13.701 ***🔗
alice_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1' id='47b03d0fd1ff2153da2d317e0ec70ba2' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 10:26:13.701 ***🔗
alice_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1 out
<presence/>



*** User 2024-04-16 10:26:13.705 ***🔗
alice_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1 in
<presence from='alice_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1' to='alice_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1'/>



*** User 2024-04-16 10:26:13.706 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3490@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-16 10:26:13.707 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0e2876011383cf75' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-16 10:26:13.707 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3490@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-16 10:26:13.707 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tc2dfaXNfc2VudF9hbmRfZGVsaXZlcmVkX2luX3Jvb21fMzQ5MABtYWtyb2xpa2E=</auth>



*** User 2024-04-16 10:26:13.710 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-16 10:26:13.710 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3490@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-16 10:26:13.711 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='589de0ea5bf9fea3' from='domain.example.com' version='1.0' xml:lang='en' to='bob_msg_is_sent_and_delivered_in_room_3490@domain.example.com'>

*** User 2024-04-16 10:26:13.711 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3490@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-16 10:26:13.711 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1 out
<iq type='set' id='944b26be032aff670f23dba2a8256ed6'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-16 10:26:13.712 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1 in
<iq id='944b26be032aff670f23dba2a8256ed6' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-16 10:26:13.712 ***🔗
bob_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1 out
<iq type='set' id='bce880e0997fef53c8bff3ac634fdb47'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 10:26:13.713 ***🔗
bob_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1' id='bce880e0997fef53c8bff3ac634fdb47' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 10:26:13.713 ***🔗
bob_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1 out
<presence/>



*** User 2024-04-16 10:26:13.788 ***🔗
bob_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1 in
<presence from='bob_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1' to='bob_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1'/>



*** User 2024-04-16 10:26:13.812 ***🔗
REST request:
Code: 201
Req: {<0.93424.0>,<<"/api/rooms">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c3ab3317b246a9e4">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzM0OTBAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
      <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:26:13 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"27">>}],
         <<"{\"id\":\"1713-263173-803145\"}">>,156,14291}
Params: #{path => <<"/api/rooms">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"alice_msg_is_sent_and_delivered_in_room_3490@domain.example.com">>,
               <<"matygrysa">>},
          method => <<"POST">>,
          body =>
              <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
          role => client,return_headers => true}


*** User 2024-04-16 10:26:13.916 ***🔗
REST request:
Code: 204
Req: {<0.93567.0>,<<"/api/rooms/1713-263173-803145/users">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"82ec9c4be082028c">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzM0OTBAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
      <<"{\"user\":\"bob_msg_is_sent_and_delivered_in_room_3490@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:26:13 GMT">>}],
         <<>>,80,96941}
Params: #{path => <<"/api/rooms/1713-263173-803145/users">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"alice_msg_is_sent_and_delivered_in_room_3490@domain.example.com">>,
               <<"matygrysa">>},
          method => <<"POST">>,
          body =>
              <<"{\"user\":\"bob_msg_is_sent_and_delivered_in_room_3490@domain.example.com\"}">>,
          role => client,return_headers => true}


*** User 2024-04-16 10:26:13.916 ***🔗
bob_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1 in
<message from='1713-263173-803145@muclight.domain.example.com' to='bob_msg_is_sent_and_delivered_in_room_3490@domain.example.com' id='6cd54fa8-51ea-470c-adba-c1c83a7a86f5' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1713-263173-892832</version>
		<user affiliation='member'>bob_msg_is_sent_and_delivered_in_room_3490@domain.example.com</user>
	</x>
	<body/>
</message>



*** User 2024-04-16 10:26:13.917 ***🔗
alice_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1 in
<message from='1713-263173-803145@muclight.domain.example.com' to='alice_msg_is_sent_and_delivered_in_room_3490@domain.example.com' id='6cd54fa8-51ea-470c-adba-c1c83a7a86f5' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1713-263173-803135</prev-version>
		<version>1713-263173-892832</version>
		<user affiliation='member'>bob_msg_is_sent_and_delivered_in_room_3490@domain.example.com</user>
	</x>
	<body/>
	<stanza-id by='1713-263173-803145@muclight.domain.example.com' id='C5HK5BGVF281' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-04-16 10:26:14.002 ***🔗
REST request:
Code: 200
Req: {<0.93759.0>,<<"/api/rooms/1713-263173-803145/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8b021295c397dbd4">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzM0OTBAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
      <<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:26:13 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"45">>}],
         <<"{\"id\":\"4f93d39b-4d50-4ea6-aa64-5c5f05c353a7\"}">>,169,13860}
Params: #{path => <<"/api/rooms/1713-263173-803145/messages">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"alice_msg_is_sent_and_delivered_in_room_3490@domain.example.com">>,
               <<"matygrysa">>},
          method => <<"POST">>,body => <<"{\"body\":\"Hi all!\"}">>,
          role => client,return_headers => true}


*** User 2024-04-16 10:26:14.016 ***🔗
REST request:
Code: 200
Req: {<0.93856.0>,<<"/api/rooms/1713-263173-803145/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"fb76f03230e42c66">>},
       {<<"authorization">>,
        <<"Basic Ym9iX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfaW5fcm9vbV8zNDkwQGRvbWFpbi5leGFtcGxlLmNvbTptYWtyb2xpa2E=">>}],
      <<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:26:13 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"45">>}],
         <<"{\"id\":\"c3b1cc37-ff48-402c-a8b8-356756a6f0ff\"}">>,169,7185}
Params: #{path => <<"/api/rooms/1713-263173-803145/messages">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_msg_is_sent_and_delivered_in_room_3490@domain.example.com">>,
               <<"makrolika">>},
          method => <<"POST">>,body => <<"{\"body\":\"Hi all!\"}">>,
          role => client,return_headers => true}


*** User 2024-04-16 10:26:14.017 ***🔗
alice_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1 in
<message from='1713-263173-803145@muclight.domain.example.com/alice_msg_is_sent_and_delivered_in_room_3490@domain.example.com' to='alice_msg_is_sent_and_delivered_in_room_3490@domain.example.com' id='4f93d39b-4d50-4ea6-aa64-5c5f05c353a7' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1713-263173-803145@muclight.domain.example.com' id='C5HK5BI86I01' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-04-16 10:26:14.017 ***🔗
bob_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1 in
<message from='1713-263173-803145@muclight.domain.example.com/alice_msg_is_sent_and_delivered_in_room_3490@domain.example.com' to='bob_msg_is_sent_and_delivered_in_room_3490@domain.example.com' id='4f93d39b-4d50-4ea6-aa64-5c5f05c353a7' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1713-263173-803145@muclight.domain.example.com' id='C5HK5BI86I01' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-04-16 10:26:14.017 ***🔗
alice_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1 in
<message from='1713-263173-803145@muclight.domain.example.com/bob_msg_is_sent_and_delivered_in_room_3490@domain.example.com' to='alice_msg_is_sent_and_delivered_in_room_3490@domain.example.com' id='c3b1cc37-ff48-402c-a8b8-356756a6f0ff' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1713-263173-803145@muclight.domain.example.com' id='C5HK5BICE7O1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-04-16 10:26:14.018 ***🔗
bob_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1 in
<message from='1713-263173-803145@muclight.domain.example.com/bob_msg_is_sent_and_delivered_in_room_3490@domain.example.com' to='bob_msg_is_sent_and_delivered_in_room_3490@domain.example.com' id='c3b1cc37-ff48-402c-a8b8-356756a6f0ff' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1713-263173-803145@muclight.domain.example.com' id='C5HK5BICE7O1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-04-16 10:26:14.018 ***🔗
bob_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-16 10:26:14.018 ***🔗
bob_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1 in
</stream:stream>

*** User 2024-04-16 10:26:14.019 ***🔗
alice_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-16 10:26:14.019 ***🔗
alice_msg_is_sent_and_delivered_in_room_3490@domain.example.com/res1 in
</stream:stream>
*** CT 2024-04-16 10:26:14.092 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2372.html



=== Ended at 2024-04-16 10:26:14
=== successfully completed test case
=== === Returned value: ok