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

=== Config value:

    [{watchdog,<0.87065.0>},
     {muc_light_host,<<"muclight.localhost">>},
     {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@d2b9c060e4a6.2024-03-12_11.08.00/big_tests.tests.rest_client_SUITE.logs/run.2024-03-12_11.25.55/rest_client_suite.msg_is_sent_and_delivered_in_room.66437.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@d2b9c060e4a6.2024-03-12_11.08.00/big_tests.tests.rest_client_SUITE.logs/run.2024-03-12_11.25.55/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{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@d2b9c060e4a6.2024-03-12_11.08.00"

=== Started at 2024-03-12 11:25:55


*** CT 2024-03-12 11:25:55.776 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4767.html

*** User 2024-03-12 11:25:55.817 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3258@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-12 11:25:55.817 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3258@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3de7edac7f8ef23b' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-12 11:25:55.817 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3258@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-12 11:25:55.818 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3258@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfaW5fcm9vbV8zMjU4AG1hdHlncnlzYQ==</auth>



*** User 2024-03-12 11:25:55.818 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3258@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-12 11:25:55.818 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3258@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-12 11:25:55.819 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3258@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f63ed52eef4726f0' from='localhost' version='1.0' xml:lang='en' to='alice_msg_is_sent_and_delivered_in_room_3258@localhost'>

*** User 2024-03-12 11:25:55.819 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3258@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-12 11:25:55.819 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3258@localhost/res1 out
<iq type='set' id='48467210da7bd1be45291d4d91ff096b'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-12 11:25:55.820 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3258@localhost/res1 in
<iq id='48467210da7bd1be45291d4d91ff096b' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_msg_is_sent_and_delivered_in_room_3258@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-12 11:25:55.821 ***🔗
alice_msg_is_sent_and_delivered_in_room_3258@localhost/res1 out
<iq type='set' id='c01be65ef9f72a12c1ec19622b091fec'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-12 11:25:55.821 ***🔗
alice_msg_is_sent_and_delivered_in_room_3258@localhost/res1 in
<iq from='localhost' to='alice_msg_is_sent_and_delivered_in_room_3258@localhost/res1' id='c01be65ef9f72a12c1ec19622b091fec' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-12 11:25:55.822 ***🔗
alice_msg_is_sent_and_delivered_in_room_3258@localhost/res1 out
<presence/>



*** User 2024-03-12 11:25:55.825 ***🔗
alice_msg_is_sent_and_delivered_in_room_3258@localhost/res1 in
<presence from='alice_msg_is_sent_and_delivered_in_room_3258@localhost/res1' to='alice_msg_is_sent_and_delivered_in_room_3258@localhost/res1'/>



*** User 2024-03-12 11:25:55.827 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3258@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-12 11:25:55.828 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3258@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3bd33ca9a3033f01' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-12 11:25:55.828 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3258@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-12 11:25:55.828 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3258@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tc2dfaXNfc2VudF9hbmRfZGVsaXZlcmVkX2luX3Jvb21fMzI1OABtYWtyb2xpa2E=</auth>



*** User 2024-03-12 11:25:55.830 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3258@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-12 11:25:55.830 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3258@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-12 11:25:55.831 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3258@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='461043db876b28be' from='localhost' version='1.0' xml:lang='en' to='bob_msg_is_sent_and_delivered_in_room_3258@localhost'>

*** User 2024-03-12 11:25:55.831 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3258@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-12 11:25:55.831 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3258@localhost/res1 out
<iq type='set' id='6f5caf7af8341f33f43c4f57555de86c'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-12 11:25:55.831 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3258@localhost/res1 in
<iq id='6f5caf7af8341f33f43c4f57555de86c' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_msg_is_sent_and_delivered_in_room_3258@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-12 11:25:55.832 ***🔗
bob_msg_is_sent_and_delivered_in_room_3258@localhost/res1 out
<iq type='set' id='e00640df7d6599375ac00a6e4ede8f75'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-12 11:25:55.833 ***🔗
bob_msg_is_sent_and_delivered_in_room_3258@localhost/res1 in
<iq from='localhost' to='bob_msg_is_sent_and_delivered_in_room_3258@localhost/res1' id='e00640df7d6599375ac00a6e4ede8f75' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-12 11:25:55.833 ***🔗
bob_msg_is_sent_and_delivered_in_room_3258@localhost/res1 out
<presence/>



*** User 2024-03-12 11:25:55.841 ***🔗
bob_msg_is_sent_and_delivered_in_room_3258@localhost/res1 in
<presence from='bob_msg_is_sent_and_delivered_in_room_3258@localhost/res1' to='bob_msg_is_sent_and_delivered_in_room_3258@localhost/res1'/>



*** User 2024-03-12 11:25:55.925 ***🔗
REST request:
Code: 201
Req: {<0.87436.0>,<<"/api/rooms">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"05b949da43d058f9">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzMyNThAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 12 Mar 2024 11:25:55 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"27">>}],
         <<"{\"id\":\"1710-242755-914701\"}">>,156,15877}
Params: #{path => <<"/api/rooms">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          creds =>
              {<<"alice_msg_is_sent_and_delivered_in_room_3258@localhost">>,
               <<"matygrysa">>},
          body =>
              <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
          role => client,return_headers => true}


*** User 2024-03-12 11:25:56.039 ***🔗
REST request:
Code: 204
Req: {<0.87597.0>,<<"/api/rooms/1710-242755-914701/users">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0a01510d1996f04f">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzMyNThAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<"{\"user\":\"bob_msg_is_sent_and_delivered_in_room_3258@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 12 Mar 2024 11:25:55 GMT">>}],
         <<>>,80,107633}
Params: #{path => <<"/api/rooms/1710-242755-914701/users">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          creds =>
              {<<"alice_msg_is_sent_and_delivered_in_room_3258@localhost">>,
               <<"matygrysa">>},
          body =>
              <<"{\"user\":\"bob_msg_is_sent_and_delivered_in_room_3258@localhost\"}">>,
          role => client,return_headers => true}


*** User 2024-03-12 11:25:56.039 ***🔗
bob_msg_is_sent_and_delivered_in_room_3258@localhost/res1 in
<message from='1710-242755-914701@muclight.localhost' to='bob_msg_is_sent_and_delivered_in_room_3258@localhost' id='b1b84267-860c-46a9-ae4a-60f46cdfa299' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1710-242756-10757</version>
		<user affiliation='member'>bob_msg_is_sent_and_delivered_in_room_3258@localhost</user>
	</x>
	<body/>
</message>



*** User 2024-03-12 11:25:56.039 ***🔗
alice_msg_is_sent_and_delivered_in_room_3258@localhost/res1 in
<message from='1710-242755-914701@muclight.localhost' to='alice_msg_is_sent_and_delivered_in_room_3258@localhost' id='b1b84267-860c-46a9-ae4a-60f46cdfa299' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1710-242755-914690</prev-version>
		<version>1710-242756-10757</version>
		<user affiliation='member'>bob_msg_is_sent_and_delivered_in_room_3258@localhost</user>
	</x>
	<body/>
	<stanza-id by='1710-242755-914701@muclight.localhost' id='C4RKTFPORG81' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-03-12 11:25:56.116 ***🔗
REST request:
Code: 200
Req: {<0.87785.0>,<<"/api/rooms/1710-242755-914701/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e0b15e0816f380ac">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzMyNThAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 12 Mar 2024 11:25:55 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"45">>}],
         <<"{\"id\":\"cafc10f1-884c-4772-a996-07664e004872\"}">>,169,71656}
Params: #{path => <<"/api/rooms/1710-242755-914701/messages">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          creds =>
              {<<"alice_msg_is_sent_and_delivered_in_room_3258@localhost">>,
               <<"matygrysa">>},
          body => <<"{\"body\":\"Hi all!\"}">>,role => client,
          return_headers => true}


*** User 2024-03-12 11:25:56.132 ***🔗
REST request:
Code: 200
Req: {<0.87885.0>,<<"/api/rooms/1710-242755-914701/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"aeab14c1b11927cb">>},
       {<<"authorization">>,
        <<"Basic Ym9iX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfaW5fcm9vbV8zMjU4QGxvY2FsaG9zdDptYWtyb2xpa2E=">>}],
      <<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 12 Mar 2024 11:25:55 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"45">>}],
         <<"{\"id\":\"e014a897-3b8c-4873-9dff-b806efdf8c18\"}">>,169,10960}
Params: #{path => <<"/api/rooms/1710-242755-914701/messages">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          creds =>
              {<<"bob_msg_is_sent_and_delivered_in_room_3258@localhost">>,
               <<"makrolika">>},
          body => <<"{\"body\":\"Hi all!\"}">>,role => client,
          return_headers => true}


*** User 2024-03-12 11:25:56.132 ***🔗
alice_msg_is_sent_and_delivered_in_room_3258@localhost/res1 in
<message from='1710-242755-914701@muclight.localhost/alice_msg_is_sent_and_delivered_in_room_3258@localhost' to='alice_msg_is_sent_and_delivered_in_room_3258@localhost' id='cafc10f1-884c-4772-a996-07664e004872' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1710-242755-914701@muclight.localhost' id='C4RKTFQH3HG1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-03-12 11:25:56.132 ***🔗
bob_msg_is_sent_and_delivered_in_room_3258@localhost/res1 in
<message from='1710-242755-914701@muclight.localhost/alice_msg_is_sent_and_delivered_in_room_3258@localhost' to='bob_msg_is_sent_and_delivered_in_room_3258@localhost' id='cafc10f1-884c-4772-a996-07664e004872' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1710-242755-914701@muclight.localhost' id='C4RKTFQH3HG1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-03-12 11:25:56.132 ***🔗
alice_msg_is_sent_and_delivered_in_room_3258@localhost/res1 in
<message from='1710-242755-914701@muclight.localhost/bob_msg_is_sent_and_delivered_in_room_3258@localhost' to='alice_msg_is_sent_and_delivered_in_room_3258@localhost' id='e014a897-3b8c-4873-9dff-b806efdf8c18' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1710-242755-914701@muclight.localhost' id='C4RKTFQLSU81' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-03-12 11:25:56.132 ***🔗
bob_msg_is_sent_and_delivered_in_room_3258@localhost/res1 in
<message from='1710-242755-914701@muclight.localhost/bob_msg_is_sent_and_delivered_in_room_3258@localhost' to='bob_msg_is_sent_and_delivered_in_room_3258@localhost' id='e014a897-3b8c-4873-9dff-b806efdf8c18' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1710-242755-914701@muclight.localhost' id='C4RKTFQLSU81' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-03-12 11:25:56.201 ***🔗
bob_msg_is_sent_and_delivered_in_room_3258@localhost/res1 out
</stream:stream>

*** User 2024-03-12 11:25:56.202 ***🔗
bob_msg_is_sent_and_delivered_in_room_3258@localhost/res1 in
</stream:stream>

*** User 2024-03-12 11:25:56.203 ***🔗
alice_msg_is_sent_and_delivered_in_room_3258@localhost/res1 out
</stream:stream>

*** User 2024-03-12 11:25:56.203 ***🔗
alice_msg_is_sent_and_delivered_in_room_3258@localhost/res1 in
</stream:stream>
*** CT 2024-03-12 11:25:56.213 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4767.html



=== Ended at 2024-03-12 11:25:56
=== successfully completed test case
=== === Returned value: ok