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

=== Config value:

    [{watchdog,<0.9445.2>},
     {muc_light_host,<<"muclight.localhost">>},
     {mam_backend,rdbms},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
     {preset,"odbc_mssql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.rest_client_SUITE.logs/run.2022-01-27_15.37.00/rest_client_suite.msg_is_sent_and_delivered_in_room.html"},
     {tc_group_properties,[{name,muc},{repeat_until_all_ok,3},pararell]},
     {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@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.rest_client_SUITE.logs/run.2022-01-27_15.37.00/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_adhoc => [],mod_amp => [],mod_bosh => [],
        mod_cache_users => [{number_of_segments,5},{time_to_live,2}],
        mod_carboncopy => [],mod_commands => [],
        mod_disco => [{users_can_see_hidden_services,false}],
        mod_muc_commands => [],mod_muc_light_commands => [],
        mod_register =>
            [{access,register},
             {ip_access,[{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
             {welcome_message,{[],[]}}],
        mod_roster => [{backend,rdbms}],
        mod_sic => [],mod_stream_management => [],
        mod_vcard => [{backend,rdbms},{host,{prefix,<<"vjud.">>}}]}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@43a5deef6262.2022-01-27_15.25.11"

=== Started at 2022-01-27 15:37:01


*** CT 2022-01-27 15:37:01.710 *** View log from node mongooseim@localhost when started mongooseim@localhost_5807.html
*** CT 2022-01-27 15:37:01.710 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2385.html

*** User 2022-01-27 15:37:01.716 ***
alicE_msg_is_sent_and_delivered_in_room_2165@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-01-27 15:37:01.717 ***
alicE_msg_is_sent_and_delivered_in_room_2165@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='95994896f7108195' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:37:01.717 ***
alicE_msg_is_sent_and_delivered_in_room_2165@localhost/res1 in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-01-27 15:37:01.717 ***
alicE_msg_is_sent_and_delivered_in_room_2165@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfaW5fcm9vbV8yMTY1AG1hdHlncnlzYQ==</auth>



*** User 2022-01-27 15:37:01.718 ***
alicE_msg_is_sent_and_delivered_in_room_2165@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 15:37:01.718 ***
alicE_msg_is_sent_and_delivered_in_room_2165@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-01-27 15:37:01.719 ***
alicE_msg_is_sent_and_delivered_in_room_2165@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f36bec44e8e9c9b9' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:37:01.719 ***
alicE_msg_is_sent_and_delivered_in_room_2165@localhost/res1 in
<stream:features>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-01-27 15:37:01.719 ***
alicE_msg_is_sent_and_delivered_in_room_2165@localhost/res1 out
<iq type='set' id='8f8fe36d2e5089b4b1ada9d20ce3029f'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:37:01.719 ***
alicE_msg_is_sent_and_delivered_in_room_2165@localhost/res1 in
<iq id='8f8fe36d2e5089b4b1ada9d20ce3029f' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_msg_is_sent_and_delivered_in_room_2165@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:37:01.719 ***
alicE_msg_is_sent_and_delivered_in_room_2165@localhost/res1 out
<iq type='set' id='1bc7854a02377591e906960758136d17'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:37:01.719 ***
alicE_msg_is_sent_and_delivered_in_room_2165@localhost/res1 in
<iq type='result' id='1bc7854a02377591e906960758136d17'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:37:01.720 ***
alicE_msg_is_sent_and_delivered_in_room_2165@localhost/res1 out
<presence/>



*** User 2022-01-27 15:37:01.722 ***
alicE_msg_is_sent_and_delivered_in_room_2165@localhost/res1 in
<presence from='alicE_msg_is_sent_and_delivered_in_room_2165@localhost/res1' to='alice_msg_is_sent_and_delivered_in_room_2165@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:37:01.722 ***
bOb_msg_is_sent_and_delivered_in_room_2165@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-01-27 15:37:01.723 ***
bOb_msg_is_sent_and_delivered_in_room_2165@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b4c2891fee060d2f' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:37:01.723 ***
bOb_msg_is_sent_and_delivered_in_room_2165@localhost/res1 in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-01-27 15:37:01.723 ***
bOb_msg_is_sent_and_delivered_in_room_2165@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tc2dfaXNfc2VudF9hbmRfZGVsaXZlcmVkX2luX3Jvb21fMjE2NQBtYWtyb2xpa2E=</auth>



*** User 2022-01-27 15:37:01.724 ***
bOb_msg_is_sent_and_delivered_in_room_2165@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 15:37:01.724 ***
bOb_msg_is_sent_and_delivered_in_room_2165@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-01-27 15:37:01.724 ***
bOb_msg_is_sent_and_delivered_in_room_2165@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='afb2cafd97baf4bc' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:37:01.724 ***
bOb_msg_is_sent_and_delivered_in_room_2165@localhost/res1 in
<stream:features>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-01-27 15:37:01.724 ***
bOb_msg_is_sent_and_delivered_in_room_2165@localhost/res1 out
<iq type='set' id='eb7df406d5866f17940d76f5d81d2afa'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:37:01.725 ***
bOb_msg_is_sent_and_delivered_in_room_2165@localhost/res1 in
<iq id='eb7df406d5866f17940d76f5d81d2afa' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_msg_is_sent_and_delivered_in_room_2165@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:37:01.725 ***
bOb_msg_is_sent_and_delivered_in_room_2165@localhost/res1 out
<iq type='set' id='0ff45dc5586e86873658bf5c32f619bf'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:37:01.725 ***
bOb_msg_is_sent_and_delivered_in_room_2165@localhost/res1 in
<iq type='result' id='0ff45dc5586e86873658bf5c32f619bf'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:37:01.725 ***
bOb_msg_is_sent_and_delivered_in_room_2165@localhost/res1 out
<presence/>



*** User 2022-01-27 15:37:01.727 ***
bOb_msg_is_sent_and_delivered_in_room_2165@localhost/res1 in
<presence from='bOb_msg_is_sent_and_delivered_in_room_2165@localhost/res1' to='bob_msg_is_sent_and_delivered_in_room_2165@localhost/res1' xml:lang='en'/>



*** System report during rest_client_SUITE:msg_is_sent_and_delivered_in_room/1 in muc 2022-01-27 15:37:01.728 ***
=WARNING REPORT==== 27-Jan-2022::15:37:01.728793 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-01-27 15:37:01.736 ***
REST request:
Code: 200
Req: {<0.9706.2>,<<"/api/rooms">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"dd4f9b900d204807">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzIxNjVAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:37:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"27">>}],
         <<"{\"id\":\"1643-297821-736495\"}">>,151,1646}
Params: #{body =>
              <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
          creds =>
              {<<"alice_msg_is_sent_and_delivered_in_room_2165@localhost">>,
               <<"matygrysa">>},
          method => <<"POST">>,path => <<"/api/rooms">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** System report during rest_client_SUITE:msg_is_sent_and_delivered_in_room/1 in muc 2022-01-27 15:37:01.738 ***
=WARNING REPORT==== 27-Jan-2022::15:37:01.738085 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-01-27 15:37:01.749 ***
REST request:
Code: 204
Req: {<0.9711.2>,<<"/api/rooms/1643-297821-736495/users">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"52db5c0053b735d7">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzIxNjVAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<"{\"user\":\"bob_msg_is_sent_and_delivered_in_room_2165@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:37:01 GMT">>}],
         <<>>,80,5752}
Params: #{body =>
              <<"{\"user\":\"bob_msg_is_sent_and_delivered_in_room_2165@localhost\"}">>,
          creds =>
              {<<"alice_msg_is_sent_and_delivered_in_room_2165@localhost">>,
               <<"matygrysa">>},
          method => <<"POST">>,
          path => <<"/api/rooms/1643-297821-736495/users">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:37:01.750 ***
bOb_msg_is_sent_and_delivered_in_room_2165@localhost/res1 in
<message from='1643-297821-736495@muclight.localhost' to='bob_msg_is_sent_and_delivered_in_room_2165@localhost' id='84a2499b-305a-4086-b15c-9216364bcc25' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1643-297821-746235</version>
		<user affiliation='member'>bob_msg_is_sent_and_delivered_in_room_2165@localhost</user>
	</x>
	<body/>
</message>



*** User 2022-01-27 15:37:01.750 ***
alicE_msg_is_sent_and_delivered_in_room_2165@localhost/res1 in
<message from='1643-297821-736495@muclight.localhost' to='alice_msg_is_sent_and_delivered_in_room_2165@localhost' id='84a2499b-305a-4086-b15c-9216364bcc25' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1643-297821-736455</prev-version>
		<version>1643-297821-746235</version>
		<user affiliation='member'>bob_msg_is_sent_and_delivered_in_room_2165@localhost</user>
	</x>
	<body/>
	<stanza-id by='1643-297821-736495@muclight.localhost' id='BLKI2RME3HO1' xmlns='urn:xmpp:sid:0'/>
</message>



*** System report during rest_client_SUITE:msg_is_sent_and_delivered_in_room/1 in muc 2022-01-27 15:37:01.751 ***
=WARNING REPORT==== 27-Jan-2022::15:37:01.751344 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-01-27 15:37:01.764 ***
REST request:
Code: 200
Req: {<0.9716.2>,<<"/api/rooms/1643-297821-736495/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bacdab7f5d528b53">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzIxNjVAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:37:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"45">>}],
         <<"{\"id\":\"a1a74160-41da-465f-9975-37783fa9e541\"}">>,169,7202}
Params: #{body => <<"{\"body\":\"Hi all!\"}">>,
          creds =>
              {<<"alice_msg_is_sent_and_delivered_in_room_2165@localhost">>,
               <<"matygrysa">>},
          method => <<"POST">>,
          path => <<"/api/rooms/1643-297821-736495/messages">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** System report during rest_client_SUITE:msg_is_sent_and_delivered_in_room/1 in muc 2022-01-27 15:37:01.765 ***
=WARNING REPORT==== 27-Jan-2022::15:37:01.765708 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-01-27 15:37:01.779 ***
REST request:
Code: 200
Req: {<0.9721.2>,<<"/api/rooms/1643-297821-736495/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"98758704a61a8f60">>},
       {<<"authorization">>,
        <<"Basic Ym9iX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfaW5fcm9vbV8yMTY1QGxvY2FsaG9zdDptYWtyb2xpa2E=">>}],
      <<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:37:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"45">>}],
         <<"{\"id\":\"c56169c6-030a-4563-a30a-199027465c14\"}">>,169,7402}
Params: #{body => <<"{\"body\":\"Hi all!\"}">>,
          creds =>
              {<<"bob_msg_is_sent_and_delivered_in_room_2165@localhost">>,
               <<"makrolika">>},
          method => <<"POST">>,
          path => <<"/api/rooms/1643-297821-736495/messages">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:37:01.779 ***
alicE_msg_is_sent_and_delivered_in_room_2165@localhost/res1 in
<message from='1643-297821-736495@muclight.localhost/alice_msg_is_sent_and_delivered_in_room_2165@localhost' to='alice_msg_is_sent_and_delivered_in_room_2165@localhost' id='a1a74160-41da-465f-9975-37783fa9e541' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1643-297821-736495@muclight.localhost' id='BLKI2RMH7TO1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2022-01-27 15:37:01.779 ***
bOb_msg_is_sent_and_delivered_in_room_2165@localhost/res1 in
<message from='1643-297821-736495@muclight.localhost/alice_msg_is_sent_and_delivered_in_room_2165@localhost' to='bob_msg_is_sent_and_delivered_in_room_2165@localhost' id='a1a74160-41da-465f-9975-37783fa9e541' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1643-297821-736495@muclight.localhost' id='BLKI2RMH7TO1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2022-01-27 15:37:01.779 ***
alicE_msg_is_sent_and_delivered_in_room_2165@localhost/res1 in
<message from='1643-297821-736495@muclight.localhost/bob_msg_is_sent_and_delivered_in_room_2165@localhost' to='alice_msg_is_sent_and_delivered_in_room_2165@localhost' id='c56169c6-030a-4563-a30a-199027465c14' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1643-297821-736495@muclight.localhost' id='BLKI2RMKR101' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2022-01-27 15:37:01.779 ***
bOb_msg_is_sent_and_delivered_in_room_2165@localhost/res1 in
<message from='1643-297821-736495@muclight.localhost/bob_msg_is_sent_and_delivered_in_room_2165@localhost' to='bob_msg_is_sent_and_delivered_in_room_2165@localhost' id='c56169c6-030a-4563-a30a-199027465c14' type='groupchat'>
	<body>Hi all!</body>
	<stanza-id by='1643-297821-736495@muclight.localhost' id='BLKI2RMKR101' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2022-01-27 15:37:01.779 ***
bOb_msg_is_sent_and_delivered_in_room_2165@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:37:01.780 ***
bOb_msg_is_sent_and_delivered_in_room_2165@localhost/res1 in
</stream:stream>

*** User 2022-01-27 15:37:01.780 ***
alicE_msg_is_sent_and_delivered_in_room_2165@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:37:01.780 ***
alicE_msg_is_sent_and_delivered_in_room_2165@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:37:01.782 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2385.html
*** CT 2022-01-27 15:37:01.783 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5808.html



=== Ended at 2022-01-27 15:37:01
=== successfully completed test case
=== === Returned value: ok


Test run history | Top level test index | Latest test result