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

=== Config value:

    [{watchdog,<0.88113.0>},
     {muc_light_host,<<"muclight.localhost">>},
     {mam_backend,rdbms},
     {preset,"pgsql_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@dd8d1b86a48e.2024-03-27_08.13.41/big_tests.tests.rest_client_SUITE.logs/run.2024-03-27_08.30.01/rest_client_suite.msg_is_sent_and_delivered_in_room.110852.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@dd8d1b86a48e.2024-03-27_08.13.41/big_tests.tests.rest_client_SUITE.logs/run.2024-03-27_08.30.01/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,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        mod_stream_management =>
            #{buffer => true,ack => true,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              backend => mnesia,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@dd8d1b86a48e.2024-03-27_08.13.41"

=== Started at 2024-03-27 08:30:02


*** CT 2024-03-27 08:30:02.441 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4849.html

*** User 2024-03-27 08:30:02.507 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3381@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-27 08:30:02.509 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3381@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3f3bdad032225f9c' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-27 08:30:02.509 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3381@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-27 08:30:02.510 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3381@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfaW5fcm9vbV8zMzgxAG1hdHlncnlzYQ==</auth>



*** User 2024-03-27 08:30:02.511 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3381@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-27 08:30:02.511 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3381@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-27 08:30:02.513 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3381@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='021c5f79c1172071' from='localhost' version='1.0' xml:lang='en' to='alice_msg_is_sent_and_delivered_in_room_3381@localhost'>

*** User 2024-03-27 08:30:02.513 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3381@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-27 08:30:02.513 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3381@localhost/res1 out
<iq type='set' id='aa734acbdbad51ed6facf5a9d1efd956'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-27 08:30:02.515 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3381@localhost/res1 in
<iq id='aa734acbdbad51ed6facf5a9d1efd956' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_msg_is_sent_and_delivered_in_room_3381@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-27 08:30:02.515 ***🔗
alice_msg_is_sent_and_delivered_in_room_3381@localhost/res1 out
<iq type='set' id='fbd40819fb3c25782291292e3de24e97'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-27 08:30:02.516 ***🔗
alice_msg_is_sent_and_delivered_in_room_3381@localhost/res1 in
<iq from='localhost' to='alice_msg_is_sent_and_delivered_in_room_3381@localhost/res1' id='fbd40819fb3c25782291292e3de24e97' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-27 08:30:02.517 ***🔗
alice_msg_is_sent_and_delivered_in_room_3381@localhost/res1 out
<presence/>



*** User 2024-03-27 08:30:02.582 ***🔗
alice_msg_is_sent_and_delivered_in_room_3381@localhost/res1 in
<presence from='alice_msg_is_sent_and_delivered_in_room_3381@localhost/res1' to='alice_msg_is_sent_and_delivered_in_room_3381@localhost/res1'/>



*** User 2024-03-27 08:30:02.584 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3381@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-27 08:30:02.585 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3381@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='937bd24fc80b2c0e' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-27 08:30:02.585 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3381@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-27 08:30:02.585 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3381@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tc2dfaXNfc2VudF9hbmRfZGVsaXZlcmVkX2luX3Jvb21fMzM4MQBtYWtyb2xpa2E=</auth>



*** User 2024-03-27 08:30:02.586 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3381@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-27 08:30:02.587 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3381@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-27 08:30:02.588 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3381@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='acf94a4c08c4969c' from='localhost' version='1.0' xml:lang='en' to='bob_msg_is_sent_and_delivered_in_room_3381@localhost'>

*** User 2024-03-27 08:30:02.588 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3381@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-27 08:30:02.588 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3381@localhost/res1 out
<iq type='set' id='62447fe139b89b242188f4001da5ec31'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-27 08:30:02.593 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3381@localhost/res1 in
<iq id='62447fe139b89b242188f4001da5ec31' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_msg_is_sent_and_delivered_in_room_3381@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-27 08:30:02.593 ***🔗
bob_msg_is_sent_and_delivered_in_room_3381@localhost/res1 out
<iq type='set' id='ef1b85f2674f501a20656874a81a4e03'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-27 08:30:02.594 ***🔗
bob_msg_is_sent_and_delivered_in_room_3381@localhost/res1 in
<iq from='localhost' to='bob_msg_is_sent_and_delivered_in_room_3381@localhost/res1' id='ef1b85f2674f501a20656874a81a4e03' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-27 08:30:02.594 ***🔗
bob_msg_is_sent_and_delivered_in_room_3381@localhost/res1 out
<presence/>



*** User 2024-03-27 08:30:02.600 ***🔗
bob_msg_is_sent_and_delivered_in_room_3381@localhost/res1 in
<presence from='bob_msg_is_sent_and_delivered_in_room_3381@localhost/res1' to='bob_msg_is_sent_and_delivered_in_room_3381@localhost/res1'/>



*** User 2024-03-27 08:30:02.692 ***🔗
REST request:
Code: 201
Req: {<0.88539.0>,<<"/api/rooms">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"aad09bc0aa88a399">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzMzODFAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 27 Mar 2024 08:30:02 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"27">>}],
         <<"{\"id\":\"1711-528202-682531\"}">>,156,82404}
Params: #{path => <<"/api/rooms">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"alice_msg_is_sent_and_delivered_in_room_3381@localhost">>,
               <<"matygrysa">>},
          method => <<"POST">>,
          body =>
              <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
          role => client,return_headers => true}


*** User 2024-03-27 08:30:02.797 ***🔗
REST request:
Code: 204
Req: {<0.88660.0>,<<"/api/rooms/1711-528202-682531/users">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ab39c9c42fed892e">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzMzODFAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<"{\"user\":\"bob_msg_is_sent_and_delivered_in_room_3381@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 27 Mar 2024 08:30:02 GMT">>}],
         <<>>,80,92195}
Params: #{path => <<"/api/rooms/1711-528202-682531/users">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"alice_msg_is_sent_and_delivered_in_room_3381@localhost">>,
               <<"matygrysa">>},
          method => <<"POST">>,
          body =>
              <<"{\"user\":\"bob_msg_is_sent_and_delivered_in_room_3381@localhost\"}">>,
          role => client,return_headers => true}


*** User 2024-03-27 08:30:02.797 ***🔗
bob_msg_is_sent_and_delivered_in_room_3381@localhost/res1 in
<message from='1711-528202-682531@muclight.localhost' to='bob_msg_is_sent_and_delivered_in_room_3381@localhost' id='3511b340-9a94-482e-b5d7-d1fb062877f8' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1711-528202-778463</version>
		<user affiliation='member'>bob_msg_is_sent_and_delivered_in_room_3381@localhost</user>
	</x>
	<body/>
</message>



*** User 2024-03-27 08:30:02.797 ***🔗
alice_msg_is_sent_and_delivered_in_room_3381@localhost/res1 in
<message from='1711-528202-682531@muclight.localhost' to='alice_msg_is_sent_and_delivered_in_room_3381@localhost' id='3511b340-9a94-482e-b5d7-d1fb062877f8' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1711-528202-682517</prev-version>
		<version>1711-528202-778463</version>
		<user affiliation='member'>bob_msg_is_sent_and_delivered_in_room_3381@localhost</user>
	</x>
	<body/>
	<stanza-id by='1711-528202-682531@muclight.localhost' id='C5506Q5RVR01' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-03-27 08:30:02.883 ***🔗
REST request:
Code: 200
Req: {<0.88830.0>,<<"/api/rooms/1711-528202-682531/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"50073e69a4f37b7b">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzMzODFAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 27 Mar 2024 08:30:02 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"45">>}],
         <<"{\"id\":\"2e945adf-f8b8-4da6-a87e-383b3d86ad6b\"}">>,169,76678}
Params: #{path => <<"/api/rooms/1711-528202-682531/messages">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"alice_msg_is_sent_and_delivered_in_room_3381@localhost">>,
               <<"matygrysa">>},
          method => <<"POST">>,body => <<"{\"body\":\"Hi all!\"}">>,
          role => client,return_headers => true}


*** User 2024-03-27 08:30:02.904 ***🔗
REST request:
Code: 200
Req: {<0.88925.0>,<<"/api/rooms/1711-528202-682531/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b1f7e1f5c62c2be9">>},
       {<<"authorization">>,
        <<"Basic Ym9iX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfaW5fcm9vbV8zMzgxQGxvY2FsaG9zdDptYWtyb2xpa2E=">>}],
      <<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 27 Mar 2024 08:30:02 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"45">>}],
         <<"{\"id\":\"186e60b7-8475-44ab-9e74-91411d08b3b3\"}">>,169,11439}
Params: #{path => <<"/api/rooms/1711-528202-682531/messages">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_msg_is_sent_and_delivered_in_room_3381@localhost">>,
               <<"makrolika">>},
          method => <<"POST">>,body => <<"{\"body\":\"Hi all!\"}">>,
          role => client,return_headers => true}


*** User 2024-03-27 08:30:02.905 ***🔗
alice_msg_is_sent_and_delivered_in_room_3381@localhost/res1 in
<message from='1711-528202-682531@muclight.localhost/alice_msg_is_sent_and_delivered_in_room_3381@localhost' to='alice_msg_is_sent_and_delivered_in_room_3381@localhost' id='2e945adf-f8b8-4da6-a87e-383b3d86ad6b' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1711-528202-682531@muclight.localhost' id='C5506Q6K3LG1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-03-27 08:30:02.905 ***🔗
bob_msg_is_sent_and_delivered_in_room_3381@localhost/res1 in
<message from='1711-528202-682531@muclight.localhost/alice_msg_is_sent_and_delivered_in_room_3381@localhost' to='bob_msg_is_sent_and_delivered_in_room_3381@localhost' id='2e945adf-f8b8-4da6-a87e-383b3d86ad6b' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1711-528202-682531@muclight.localhost' id='C5506Q6K3LG1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-03-27 08:30:02.905 ***🔗
alice_msg_is_sent_and_delivered_in_room_3381@localhost/res1 in
<message from='1711-528202-682531@muclight.localhost/bob_msg_is_sent_and_delivered_in_room_3381@localhost' to='alice_msg_is_sent_and_delivered_in_room_3381@localhost' id='186e60b7-8475-44ab-9e74-91411d08b3b3' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1711-528202-682531@muclight.localhost' id='C5506Q784R81' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-03-27 08:30:02.905 ***🔗
bob_msg_is_sent_and_delivered_in_room_3381@localhost/res1 in
<message from='1711-528202-682531@muclight.localhost/bob_msg_is_sent_and_delivered_in_room_3381@localhost' to='bob_msg_is_sent_and_delivered_in_room_3381@localhost' id='186e60b7-8475-44ab-9e74-91411d08b3b3' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1711-528202-682531@muclight.localhost' id='C5506Q784R81' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-03-27 08:30:02.905 ***🔗
bob_msg_is_sent_and_delivered_in_room_3381@localhost/res1 out
</stream:stream>

*** User 2024-03-27 08:30:02.906 ***🔗
bob_msg_is_sent_and_delivered_in_room_3381@localhost/res1 in
</stream:stream>

*** User 2024-03-27 08:30:02.906 ***🔗
alice_msg_is_sent_and_delivered_in_room_3381@localhost/res1 out
</stream:stream>

*** User 2024-03-27 08:30:02.906 ***🔗
alice_msg_is_sent_and_delivered_in_room_3381@localhost/res1 in
</stream:stream>
*** CT 2024-03-27 08:30:02.914 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4852.html



=== Ended at 2024-03-27 08:30:02
=== successfully completed test case
=== === Returned value: ok