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

=== Config value:

    [{watchdog,<0.81469.0>},
     {muc_light_host,<<"muclight.localhost">>},
     {mam_backend,rdbms},
     {preset,"pgsql_cets"},
     {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@df27fc96a068.2024-04-23_10.53.32/big_tests.tests.rest_client_SUITE.logs/run.2024-04-23_11.07.36/rest_client_suite.msg_is_sent_and_delivered_in_room.107012.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@df27fc96a068.2024-04-23_10.53.32/big_tests.tests.rest_client_SUITE.logs/run.2024-04-23_11.07.36/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_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_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => cets,
              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 => cets,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@df27fc96a068.2024-04-23_10.53.32"

=== Started at 2024-04-23 11:07:37


*** CT 2024-04-23 11:07:37.473 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4587.html

*** User 2024-04-23 11:07:37.574 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2956@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-04-23 11:07:37.576 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2956@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='04c60f9deb1df7f5' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-23 11:07:37.577 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2956@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-04-23 11:07:37.578 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2956@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfaW5fcm9vbV8yOTU2AG1hdHlncnlzYQ==</auth>



*** User 2024-04-23 11:07:37.580 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2956@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 11:07:37.581 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2956@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-04-23 11:07:37.582 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2956@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c7402bb041695cc2' from='localhost' version='1.0' xml:lang='en' to='alice_msg_is_sent_and_delivered_in_room_2956@localhost'>

*** User 2024-04-23 11:07:37.582 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2956@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-04-23 11:07:37.582 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2956@localhost/res1 out
<iq type='set' id='d8ffbdf5d8b0a059ee29b5a21e70915c'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 11:07:37.584 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2956@localhost/res1 in
<iq id='d8ffbdf5d8b0a059ee29b5a21e70915c' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_msg_is_sent_and_delivered_in_room_2956@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 11:07:37.584 ***🔗
alice_msg_is_sent_and_delivered_in_room_2956@localhost/res1 out
<iq type='set' id='ce6d2cd251794893077b2077d42dc6ba'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:07:37.585 ***🔗
alice_msg_is_sent_and_delivered_in_room_2956@localhost/res1 in
<iq from='localhost' to='alice_msg_is_sent_and_delivered_in_room_2956@localhost/res1' id='ce6d2cd251794893077b2077d42dc6ba' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:07:37.586 ***🔗
alice_msg_is_sent_and_delivered_in_room_2956@localhost/res1 out
<presence/>



*** User 2024-04-23 11:07:37.598 ***🔗
alice_msg_is_sent_and_delivered_in_room_2956@localhost/res1 in
<presence from='alice_msg_is_sent_and_delivered_in_room_2956@localhost/res1' to='alice_msg_is_sent_and_delivered_in_room_2956@localhost/res1'/>



*** User 2024-04-23 11:07:37.600 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2956@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-04-23 11:07:37.601 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2956@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='af95bdaa86e29aa0' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-23 11:07:37.601 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2956@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-04-23 11:07:37.602 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2956@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tc2dfaXNfc2VudF9hbmRfZGVsaXZlcmVkX2luX3Jvb21fMjk1NgBtYWtyb2xpa2E=</auth>



*** User 2024-04-23 11:07:37.605 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2956@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 11:07:37.606 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2956@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-04-23 11:07:37.606 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2956@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='85bd7544775c1917' from='localhost' version='1.0' xml:lang='en' to='bob_msg_is_sent_and_delivered_in_room_2956@localhost'>

*** User 2024-04-23 11:07:37.606 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2956@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-04-23 11:07:37.607 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2956@localhost/res1 out
<iq type='set' id='25e0e2c52e0b269bcf50425e88bfc7d6'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 11:07:37.607 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2956@localhost/res1 in
<iq id='25e0e2c52e0b269bcf50425e88bfc7d6' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_msg_is_sent_and_delivered_in_room_2956@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 11:07:37.608 ***🔗
bob_msg_is_sent_and_delivered_in_room_2956@localhost/res1 out
<iq type='set' id='438c273258bf9c2806dc3d2d6572d619'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:07:37.610 ***🔗
bob_msg_is_sent_and_delivered_in_room_2956@localhost/res1 in
<iq from='localhost' to='bob_msg_is_sent_and_delivered_in_room_2956@localhost/res1' id='438c273258bf9c2806dc3d2d6572d619' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:07:37.611 ***🔗
bob_msg_is_sent_and_delivered_in_room_2956@localhost/res1 out
<presence/>



*** User 2024-04-23 11:07:37.679 ***🔗
bob_msg_is_sent_and_delivered_in_room_2956@localhost/res1 in
<presence from='bob_msg_is_sent_and_delivered_in_room_2956@localhost/res1' to='bob_msg_is_sent_and_delivered_in_room_2956@localhost/res1'/>



*** User 2024-04-23 11:07:37.716 ***🔗
REST request:
Code: 201
Req: {<0.81909.0>,<<"/api/rooms">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ffa43fffa0f2e767">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzI5NTZAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:07:37 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"27">>}],
         <<"{\"id\":\"1713-870457-700027\"}">>,156,28786}
Params: #{path => <<"/api/rooms">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          creds =>
              {<<"alice_msg_is_sent_and_delivered_in_room_2956@localhost">>,
               <<"matygrysa">>},
          body =>
              <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
          role => client,return_headers => true}


*** User 2024-04-23 11:07:37.818 ***🔗
REST request:
Code: 204
Req: {<0.82035.0>,<<"/api/rooms/1713-870457-700027/users">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"32efc1806144fc11">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzI5NTZAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<"{\"user\":\"bob_msg_is_sent_and_delivered_in_room_2956@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:07:37 GMT">>}],
         <<>>,80,39466}
Params: #{path => <<"/api/rooms/1713-870457-700027/users">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          creds =>
              {<<"alice_msg_is_sent_and_delivered_in_room_2956@localhost">>,
               <<"matygrysa">>},
          body =>
              <<"{\"user\":\"bob_msg_is_sent_and_delivered_in_room_2956@localhost\"}">>,
          role => client,return_headers => true}


*** User 2024-04-23 11:07:37.818 ***🔗
bob_msg_is_sent_and_delivered_in_room_2956@localhost/res1 in
<message from='1713-870457-700027@muclight.localhost' to='bob_msg_is_sent_and_delivered_in_room_2956@localhost' id='1dae2790-b8af-45c1-a08d-b069e282b477' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1713-870457-804739</version>
		<user affiliation='member'>bob_msg_is_sent_and_delivered_in_room_2956@localhost</user>
	</x>
	<body/>
</message>



*** User 2024-04-23 11:07:37.818 ***🔗
alice_msg_is_sent_and_delivered_in_room_2956@localhost/res1 in
<message from='1713-870457-700027@muclight.localhost' to='alice_msg_is_sent_and_delivered_in_room_2956@localhost' id='1dae2790-b8af-45c1-a08d-b069e282b477' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1713-870457-700015</prev-version>
		<version>1713-870457-804739</version>
		<user affiliation='member'>bob_msg_is_sent_and_delivered_in_room_2956@localhost</user>
	</x>
	<body/>
	<stanza-id by='1713-870457-700027@muclight.localhost' id='C5M1HV9TL9G1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-04-23 11:07:37.899 ***🔗
REST request:
Code: 200
Req: {<0.82185.0>,<<"/api/rooms/1713-870457-700027/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2b0852f46b697978">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzI5NTZAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:07:37 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"45">>}],
         <<"{\"id\":\"fc3fd30f-6082-434b-a8ec-761aebbda645\"}">>,169,12944}
Params: #{path => <<"/api/rooms/1713-870457-700027/messages">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          creds =>
              {<<"alice_msg_is_sent_and_delivered_in_room_2956@localhost">>,
               <<"matygrysa">>},
          body => <<"{\"body\":\"Hi all!\"}">>,role => client,
          return_headers => true}


*** User 2024-04-23 11:07:37.920 ***🔗
REST request:
Code: 200
Req: {<0.82259.0>,<<"/api/rooms/1713-870457-700027/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2c3174c21514ff79">>},
       {<<"authorization">>,
        <<"Basic Ym9iX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfaW5fcm9vbV8yOTU2QGxvY2FsaG9zdDptYWtyb2xpa2E=">>}],
      <<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:07:37 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"45">>}],
         <<"{\"id\":\"1d6842bc-d513-44ee-a8bc-205b7e369181\"}">>,169,12881}
Params: #{path => <<"/api/rooms/1713-870457-700027/messages">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          creds =>
              {<<"bob_msg_is_sent_and_delivered_in_room_2956@localhost">>,
               <<"makrolika">>},
          body => <<"{\"body\":\"Hi all!\"}">>,role => client,
          return_headers => true}


*** User 2024-04-23 11:07:37.921 ***🔗
alice_msg_is_sent_and_delivered_in_room_2956@localhost/res1 in
<message from='1713-870457-700027@muclight.localhost/alice_msg_is_sent_and_delivered_in_room_2956@localhost' to='alice_msg_is_sent_and_delivered_in_room_2956@localhost' id='fc3fd30f-6082-434b-a8ec-761aebbda645' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1713-870457-700027@muclight.localhost' id='C5M1HVAMI481' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-04-23 11:07:37.921 ***🔗
bob_msg_is_sent_and_delivered_in_room_2956@localhost/res1 in
<message from='1713-870457-700027@muclight.localhost/alice_msg_is_sent_and_delivered_in_room_2956@localhost' to='bob_msg_is_sent_and_delivered_in_room_2956@localhost' id='fc3fd30f-6082-434b-a8ec-761aebbda645' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1713-870457-700027@muclight.localhost' id='C5M1HVAMI481' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-04-23 11:07:37.923 ***🔗
alice_msg_is_sent_and_delivered_in_room_2956@localhost/res1 in
<message from='1713-870457-700027@muclight.localhost/bob_msg_is_sent_and_delivered_in_room_2956@localhost' to='alice_msg_is_sent_and_delivered_in_room_2956@localhost' id='1d6842bc-d513-44ee-a8bc-205b7e369181' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1713-870457-700027@muclight.localhost' id='C5M1HVARI3G1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-04-23 11:07:37.923 ***🔗
bob_msg_is_sent_and_delivered_in_room_2956@localhost/res1 in
<message from='1713-870457-700027@muclight.localhost/bob_msg_is_sent_and_delivered_in_room_2956@localhost' to='bob_msg_is_sent_and_delivered_in_room_2956@localhost' id='1d6842bc-d513-44ee-a8bc-205b7e369181' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1713-870457-700027@muclight.localhost' id='C5M1HVARI3G1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-04-23 11:07:37.923 ***🔗
bob_msg_is_sent_and_delivered_in_room_2956@localhost/res1 out
</stream:stream>

*** User 2024-04-23 11:07:37.973 ***🔗
bob_msg_is_sent_and_delivered_in_room_2956@localhost/res1 in
</stream:stream>

*** User 2024-04-23 11:07:37.973 ***🔗
alice_msg_is_sent_and_delivered_in_room_2956@localhost/res1 out
</stream:stream>

*** User 2024-04-23 11:07:37.974 ***🔗
alice_msg_is_sent_and_delivered_in_room_2956@localhost/res1 in
</stream:stream>
*** CT 2024-04-23 11:07:37.988 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4588.html



=== Ended at 2024-04-23 11:07:38
=== successfully completed test case
=== === Returned value: ok