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

=== Config value:

    [{watchdog,<0.71710.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@d3b7dd7159a8.2023-12-07_07.46.41/big_tests.tests.rest_client_SUITE.logs/run.2023-12-07_07.57.59/rest_client_suite.msg_is_sent_and_delivered_in_room.55557.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@d3b7dd7159a8.2023-12-07_07.46.41/big_tests.tests.rest_client_SUITE.logs/run.2023-12-07_07.57.59/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,backend => rdbms,iqdisc => parallel},
        mod_roster =>
            #{backend => rdbms,iqdisc => one_queue,versioning => false,
              store_current_id => false},
        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_sic => #{iqdisc => one_queue},
        mod_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_presence => #{},
        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_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@d3b7dd7159a8.2023-12-07_07.46.41"

=== Started at 2023-12-07 07:57:59


*** CT 2023-12-07 07:57:59.778 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2414.html

*** User 2023-12-07 07:57:59.854 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2567@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 2023-12-07 07:57:59.855 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a8bafe16dbeb9835' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2023-12-07 07:57:59.856 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2567@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 2023-12-07 07:57:59.856 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfaW5fcm9vbV8yNTY3AG1hdHlncnlzYQ==</auth>



*** User 2023-12-07 07:57:59.858 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-12-07 07:57:59.859 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2567@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 2023-12-07 07:57:59.859 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='384a37a4286c13d5' from='domain.example.com' version='1.0' xml:lang='en' to='alice_msg_is_sent_and_delivered_in_room_2567@domain.example.com'>

*** User 2023-12-07 07:57:59.860 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2567@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 2023-12-07 07:57:59.860 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1 out
<iq type='set' id='df7f26e15e9edeaec86b346063a9042d'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-12-07 07:57:59.861 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1 in
<iq id='df7f26e15e9edeaec86b346063a9042d' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2023-12-07 07:57:59.861 ***🔗
alice_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1 out
<iq type='set' id='8de6e57ea5205d55d2e7beef84eb3dcc'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-12-07 07:57:59.862 ***🔗
alice_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1' id='8de6e57ea5205d55d2e7beef84eb3dcc' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-12-07 07:57:59.862 ***🔗
alice_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1 out
<presence/>



*** User 2023-12-07 07:57:59.926 ***🔗
alice_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1 in
<presence from='alice_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1' to='alice_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1'/>



*** User 2023-12-07 07:57:59.928 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2567@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 2023-12-07 07:57:59.929 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9eb4991ecac075ed' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2023-12-07 07:57:59.929 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2567@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 2023-12-07 07:57:59.929 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tc2dfaXNfc2VudF9hbmRfZGVsaXZlcmVkX2luX3Jvb21fMjU2NwBtYWtyb2xpa2E=</auth>



*** User 2023-12-07 07:57:59.936 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-12-07 07:57:59.936 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2567@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 2023-12-07 07:57:59.936 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9a2fe117daa36012' from='domain.example.com' version='1.0' xml:lang='en' to='bob_msg_is_sent_and_delivered_in_room_2567@domain.example.com'>

*** User 2023-12-07 07:57:59.936 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2567@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 2023-12-07 07:57:59.936 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1 out
<iq type='set' id='b5c03c826aa0fab28a750a43219144a5'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-12-07 07:57:59.937 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1 in
<iq id='b5c03c826aa0fab28a750a43219144a5' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2023-12-07 07:57:59.937 ***🔗
bob_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1 out
<iq type='set' id='61aa4d4ec19f64cb93f734920f16970b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-12-07 07:57:59.939 ***🔗
bob_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1' id='61aa4d4ec19f64cb93f734920f16970b' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-12-07 07:57:59.939 ***🔗
bob_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1 out
<presence/>



*** User 2023-12-07 07:57:59.952 ***🔗
bob_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1 in
<presence from='bob_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1' to='bob_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1'/>



*** User 2023-12-07 07:58:00.032 ***🔗
REST request:
Code: 201
Req: {<0.72223.0>,<<"/api/rooms">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b8fec3e56e1bb163">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzI1NjdAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
      <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:57:59 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"26">>}],
         <<"{\"id\":\"1701-935880-25055\"}">>,155,73166}
Params: #{path => <<"/api/rooms">>,
          server => #{node => mongooseim@localhost},
          role => client,method => <<"POST">>,
          creds =>
              {<<"alice_msg_is_sent_and_delivered_in_room_2567@domain.example.com">>,
               <<"matygrysa">>},
          body =>
              <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
          return_headers => true}


*** User 2023-12-07 07:58:00.130 ***🔗
REST request:
Code: 204
Req: {<0.72343.0>,<<"/api/rooms/1701-935880-25055/users">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c1c85f9197ae1393">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzI1NjdAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
      <<"{\"user\":\"bob_msg_is_sent_and_delivered_in_room_2567@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:57:59 GMT">>}],
         <<>>,80,91528}
Params: #{path => <<"/api/rooms/1701-935880-25055/users">>,
          server => #{node => mongooseim@localhost},
          role => client,method => <<"POST">>,
          creds =>
              {<<"alice_msg_is_sent_and_delivered_in_room_2567@domain.example.com">>,
               <<"matygrysa">>},
          body =>
              <<"{\"user\":\"bob_msg_is_sent_and_delivered_in_room_2567@domain.example.com\"}">>,
          return_headers => true}


*** User 2023-12-07 07:58:00.130 ***🔗
bob_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1 in
<message from='1701-935880-25055@muclight.domain.example.com' to='bob_msg_is_sent_and_delivered_in_room_2567@domain.example.com' id='c3955461-da43-4ea1-95e8-7542ac6c092f' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1701-935880-54223</version>
		<user affiliation='member'>bob_msg_is_sent_and_delivered_in_room_2567@domain.example.com</user>
	</x>
	<body/>
</message>



*** User 2023-12-07 07:58:00.131 ***🔗
alice_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1 in
<message from='1701-935880-25055@muclight.domain.example.com' to='alice_msg_is_sent_and_delivered_in_room_2567@domain.example.com' id='c3955461-da43-4ea1-95e8-7542ac6c092f' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1701-935880-25045</prev-version>
		<version>1701-935880-54223</version>
		<user affiliation='member'>bob_msg_is_sent_and_delivered_in_room_2567@domain.example.com</user>
	</x>
	<body/>
	<stanza-id by='1701-935880-25055@muclight.domain.example.com' id='C2V6QE7PGEO1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2023-12-07 07:58:00.148 ***🔗
REST request:
Code: 200
Req: {<0.72499.0>,<<"/api/rooms/1701-935880-25055/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a19adbefdf2e7a66">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzI1NjdAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
      <<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:57:59 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"45">>}],
         <<"{\"id\":\"a0d43f39-cc46-4ead-967a-ef5c4f921692\"}">>,169,10063}
Params: #{path => <<"/api/rooms/1701-935880-25055/messages">>,
          server => #{node => mongooseim@localhost},
          role => client,method => <<"POST">>,
          creds =>
              {<<"alice_msg_is_sent_and_delivered_in_room_2567@domain.example.com">>,
               <<"matygrysa">>},
          body => <<"{\"body\":\"Hi all!\"}">>,return_headers => true}


*** User 2023-12-07 07:58:00.159 ***🔗
REST request:
Code: 200
Req: {<0.72558.0>,<<"/api/rooms/1701-935880-25055/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"16a85c82117191c5">>},
       {<<"authorization">>,
        <<"Basic Ym9iX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfaW5fcm9vbV8yNTY3QGRvbWFpbi5leGFtcGxlLmNvbTptYWtyb2xpa2E=">>}],
      <<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:57:59 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"45">>}],
         <<"{\"id\":\"ae1b0918-f495-42f7-98b3-13f5adf2bbe5\"}">>,169,5391}
Params: #{path => <<"/api/rooms/1701-935880-25055/messages">>,
          server => #{node => mongooseim@localhost},
          role => client,method => <<"POST">>,
          creds =>
              {<<"bob_msg_is_sent_and_delivered_in_room_2567@domain.example.com">>,
               <<"makrolika">>},
          body => <<"{\"body\":\"Hi all!\"}">>,return_headers => true}


*** User 2023-12-07 07:58:00.159 ***🔗
alice_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1 in
<message from='1701-935880-25055@muclight.domain.example.com/alice_msg_is_sent_and_delivered_in_room_2567@domain.example.com' to='alice_msg_is_sent_and_delivered_in_room_2567@domain.example.com' id='a0d43f39-cc46-4ead-967a-ef5c4f921692' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1701-935880-25055@muclight.domain.example.com' id='C2V6QE8FNJO1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2023-12-07 07:58:00.160 ***🔗
bob_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1 in
<message from='1701-935880-25055@muclight.domain.example.com/alice_msg_is_sent_and_delivered_in_room_2567@domain.example.com' to='bob_msg_is_sent_and_delivered_in_room_2567@domain.example.com' id='a0d43f39-cc46-4ead-967a-ef5c4f921692' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1701-935880-25055@muclight.domain.example.com' id='C2V6QE8FNJO1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2023-12-07 07:58:00.160 ***🔗
alice_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1 in
<message from='1701-935880-25055@muclight.domain.example.com/bob_msg_is_sent_and_delivered_in_room_2567@domain.example.com' to='alice_msg_is_sent_and_delivered_in_room_2567@domain.example.com' id='ae1b0918-f495-42f7-98b3-13f5adf2bbe5' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1701-935880-25055@muclight.domain.example.com' id='C2V6QE8J5UG1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2023-12-07 07:58:00.160 ***🔗
bob_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1 in
<message from='1701-935880-25055@muclight.domain.example.com/bob_msg_is_sent_and_delivered_in_room_2567@domain.example.com' to='bob_msg_is_sent_and_delivered_in_room_2567@domain.example.com' id='ae1b0918-f495-42f7-98b3-13f5adf2bbe5' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1701-935880-25055@muclight.domain.example.com' id='C2V6QE8J5UG1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2023-12-07 07:58:00.160 ***🔗
bob_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1 out
</stream:stream>

*** User 2023-12-07 07:58:00.160 ***🔗
bob_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1 in
</stream:stream>

*** User 2023-12-07 07:58:00.160 ***🔗
alice_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1 out
</stream:stream>

*** User 2023-12-07 07:58:00.161 ***🔗
alice_msg_is_sent_and_delivered_in_room_2567@domain.example.com/res1 in
</stream:stream>
*** CT 2023-12-07 07:58:00.231 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2415.html



=== Ended at 2023-12-07 07:58:00
=== successfully completed test case
=== === Returned value: ok