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

=== Config value:

    [{watchdog,<0.72371.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@eebaa68b7995.2024-01-14_19.39.51/big_tests.tests.rest_client_SUITE.logs/run.2024-01-14_19.50.50/rest_client_suite.msg_is_sent_and_delivered_in_room.114564.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@eebaa68b7995.2024-01-14_19.39.51/big_tests.tests.rest_client_SUITE.logs/run.2024-01-14_19.50.50/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_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        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_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},
        mod_carboncopy => #{iqdisc => no_queue}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@eebaa68b7995.2024-01-14_19.39.51"

=== Started at 2024-01-14 19:50:50


*** CT 2024-01-14 19:50:50.698 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2419.html

*** User 2024-01-14 19:50:50.763 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2613@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-01-14 19:50:50.764 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='09662b1964212004' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-01-14 19:50:50.765 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2613@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-01-14 19:50:50.765 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfaW5fcm9vbV8yNjEzAG1hdHlncnlzYQ==</auth>



*** User 2024-01-14 19:50:50.766 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-01-14 19:50:50.766 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2613@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-01-14 19:50:50.767 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bcc8c73a8d9be99d' from='domain.example.com' version='1.0' xml:lang='en' to='alice_msg_is_sent_and_delivered_in_room_2613@domain.example.com'>

*** User 2024-01-14 19:50:50.767 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2613@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-01-14 19:50:50.768 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1 out
<iq type='set' id='f2680489064f69c134f92aac1266c6cc'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-01-14 19:50:50.768 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1 in
<iq id='f2680489064f69c134f92aac1266c6cc' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-01-14 19:50:50.768 ***🔗
alice_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1 out
<iq type='set' id='8aa424c8202f974f29c5cc41b5a4022d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-01-14 19:50:50.772 ***🔗
alice_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1' id='8aa424c8202f974f29c5cc41b5a4022d' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-01-14 19:50:50.772 ***🔗
alice_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1 out
<presence/>



*** User 2024-01-14 19:50:50.779 ***🔗
alice_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1 in
<presence from='alice_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1' to='alice_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1'/>



*** User 2024-01-14 19:50:50.779 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2613@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-01-14 19:50:50.780 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='68b524cf02aa7ce4' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-01-14 19:50:50.780 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2613@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-01-14 19:50:50.780 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tc2dfaXNfc2VudF9hbmRfZGVsaXZlcmVkX2luX3Jvb21fMjYxMwBtYWtyb2xpa2E=</auth>



*** User 2024-01-14 19:50:50.787 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-01-14 19:50:50.787 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2613@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-01-14 19:50:50.787 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='00cab92bbbd00cd3' from='domain.example.com' version='1.0' xml:lang='en' to='bob_msg_is_sent_and_delivered_in_room_2613@domain.example.com'>

*** User 2024-01-14 19:50:50.787 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2613@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-01-14 19:50:50.787 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1 out
<iq type='set' id='d3a63b837a7b977f491047f2a78d9501'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-01-14 19:50:50.788 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1 in
<iq id='d3a63b837a7b977f491047f2a78d9501' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-01-14 19:50:50.788 ***🔗
bob_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1 out
<iq type='set' id='f355041994e7fb1175232421c500a855'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-01-14 19:50:50.789 ***🔗
bob_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1' id='f355041994e7fb1175232421c500a855' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-01-14 19:50:50.789 ***🔗
bob_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1 out
<presence/>



*** User 2024-01-14 19:50:50.861 ***🔗
bob_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1 in
<presence from='bob_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1' to='bob_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1'/>



*** User 2024-01-14 19:50:50.882 ***🔗
REST request:
Code: 201
Req: {<0.72847.0>,<<"/api/rooms">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"93f1d4b4463516d0">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzI2MTNAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
      <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Sun, 14 Jan 2024 19:50:50 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"27">>}],
         <<"{\"id\":\"1705-261850-874382\"}">>,156,14000}
Params: #{path => <<"/api/rooms">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
          method => <<"POST">>,
          creds =>
              {<<"alice_msg_is_sent_and_delivered_in_room_2613@domain.example.com">>,
               <<"matygrysa">>},
          role => client,return_headers => true}


*** User 2024-01-14 19:50:50.978 ***🔗
REST request:
Code: 204
Req: {<0.72976.0>,<<"/api/rooms/1705-261850-874382/users">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"534ebe4ac74283c2">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzI2MTNAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
      <<"{\"user\":\"bob_msg_is_sent_and_delivered_in_room_2613@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Sun, 14 Jan 2024 19:50:50 GMT">>}],
         <<>>,80,89287}
Params: #{path => <<"/api/rooms/1705-261850-874382/users">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"user\":\"bob_msg_is_sent_and_delivered_in_room_2613@domain.example.com\"}">>,
          method => <<"POST">>,
          creds =>
              {<<"alice_msg_is_sent_and_delivered_in_room_2613@domain.example.com">>,
               <<"matygrysa">>},
          role => client,return_headers => true}


*** User 2024-01-14 19:50:50.979 ***🔗
bob_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1 in
<message from='1705-261850-874382@muclight.domain.example.com' to='bob_msg_is_sent_and_delivered_in_room_2613@domain.example.com' id='f13a794f-7c80-40e0-9dc0-6cd8dd4df78c' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1705-261850-965758</version>
		<user affiliation='member'>bob_msg_is_sent_and_delivered_in_room_2613@domain.example.com</user>
	</x>
	<body/>
</message>



*** User 2024-01-14 19:50:50.979 ***🔗
alice_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1 in
<message from='1705-261850-874382@muclight.domain.example.com' to='alice_msg_is_sent_and_delivered_in_room_2613@domain.example.com' id='f13a794f-7c80-40e0-9dc0-6cd8dd4df78c' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1705-261850-874374</prev-version>
		<version>1705-261850-965758</version>
		<user affiliation='member'>bob_msg_is_sent_and_delivered_in_room_2613@domain.example.com</user>
	</x>
	<body/>
	<stanza-id by='1705-261850-874382@muclight.domain.example.com' id='C3ND6RG1R281' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-01-14 19:50:51.056 ***🔗
REST request:
Code: 200
Req: {<0.73140.0>,<<"/api/rooms/1705-261850-874382/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"36f8263423ae42f7">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzI2MTNAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
      <<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Sun, 14 Jan 2024 19:50:50 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"45">>}],
         <<"{\"id\":\"8c39477f-7ff7-4ef3-b4a7-d11dae90a299\"}">>,169,71947}
Params: #{path => <<"/api/rooms/1705-261850-874382/messages">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"body\":\"Hi all!\"}">>,method => <<"POST">>,
          creds =>
              {<<"alice_msg_is_sent_and_delivered_in_room_2613@domain.example.com">>,
               <<"matygrysa">>},
          role => client,return_headers => true}


*** User 2024-01-14 19:50:51.068 ***🔗
REST request:
Code: 200
Req: {<0.73220.0>,<<"/api/rooms/1705-261850-874382/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1cfeeb0ee5a0e712">>},
       {<<"authorization">>,
        <<"Basic Ym9iX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfaW5fcm9vbV8yNjEzQGRvbWFpbi5leGFtcGxlLmNvbTptYWtyb2xpa2E=">>}],
      <<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Sun, 14 Jan 2024 19:50:50 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"45">>}],
         <<"{\"id\":\"2b1d8282-fa64-4df5-ab28-e2a07dd7c6e3\"}">>,169,5720}
Params: #{path => <<"/api/rooms/1705-261850-874382/messages">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"body\":\"Hi all!\"}">>,method => <<"POST">>,
          creds =>
              {<<"bob_msg_is_sent_and_delivered_in_room_2613@domain.example.com">>,
               <<"makrolika">>},
          role => client,return_headers => true}


*** User 2024-01-14 19:50:51.068 ***🔗
alice_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1 in
<message from='1705-261850-874382@muclight.domain.example.com/alice_msg_is_sent_and_delivered_in_room_2613@domain.example.com' to='alice_msg_is_sent_and_delivered_in_room_2613@domain.example.com' id='8c39477f-7ff7-4ef3-b4a7-d11dae90a299' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1705-261850-874382@muclight.domain.example.com' id='C3ND6RG8U0G1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-01-14 19:50:51.069 ***🔗
bob_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1 in
<message from='1705-261850-874382@muclight.domain.example.com/alice_msg_is_sent_and_delivered_in_room_2613@domain.example.com' to='bob_msg_is_sent_and_delivered_in_room_2613@domain.example.com' id='8c39477f-7ff7-4ef3-b4a7-d11dae90a299' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1705-261850-874382@muclight.domain.example.com' id='C3ND6RG8U0G1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-01-14 19:50:51.069 ***🔗
alice_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1 in
<message from='1705-261850-874382@muclight.domain.example.com/bob_msg_is_sent_and_delivered_in_room_2613@domain.example.com' to='alice_msg_is_sent_and_delivered_in_room_2613@domain.example.com' id='2b1d8282-fa64-4df5-ab28-e2a07dd7c6e3' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1705-261850-874382@muclight.domain.example.com' id='C3ND6RGRGPG1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-01-14 19:50:51.069 ***🔗
bob_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1 in
<message from='1705-261850-874382@muclight.domain.example.com/bob_msg_is_sent_and_delivered_in_room_2613@domain.example.com' to='bob_msg_is_sent_and_delivered_in_room_2613@domain.example.com' id='2b1d8282-fa64-4df5-ab28-e2a07dd7c6e3' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1705-261850-874382@muclight.domain.example.com' id='C3ND6RGRGPG1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-01-14 19:50:51.069 ***🔗
bob_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1 out
</stream:stream>

*** User 2024-01-14 19:50:51.069 ***🔗
bob_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1 in
</stream:stream>

*** User 2024-01-14 19:50:51.069 ***🔗
alice_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1 out
</stream:stream>

*** User 2024-01-14 19:50:51.069 ***🔗
alice_msg_is_sent_and_delivered_in_room_2613@domain.example.com/res1 in
</stream:stream>
*** CT 2024-01-14 19:50:51.079 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2420.html



=== Ended at 2024-01-14 19:50:51
=== successfully completed test case
=== === Returned value: ok