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

=== Config value:

    [{watchdog,<0.76501.0>},
     {muc_light_host,<<"muclight.domain.example.com">>},
     {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@67e41d7bee15.2024-02-20_10.51.44/big_tests.tests.rest_client_SUITE.logs/run.2024-02-20_11.05.12/rest_client_suite.msg_with_props_can_be_parsed.102916.html"},
     {tc_group_properties,[{name,messages_with_props},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@67e41d7bee15.2024-02-20_10.51.44/big_tests.tests.rest_client_SUITE.logs/run.2024-02-20_11.05.12/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,iqdisc => parallel,backend => rdbms},
        mod_roster =>
            #{iqdisc => one_queue,versioning => false,
              store_current_id => false,backend => rdbms},
        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_sic => #{iqdisc => one_queue},
        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,buffer_max => 100,
              ack_freq => 1,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              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@67e41d7bee15.2024-02-20_10.51.44"

=== Started at 2024-02-20 11:05:14


*** CT 2024-02-20 11:05:14.565 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2617.html

*** User 2024-02-20 11:05:14.574 ***🔗
alicE_msg_with_props_can_be_parsed_3024@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 2024-02-20 11:05:14.575 ***🔗
alicE_msg_with_props_can_be_parsed_3024@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='37f9e97a977acace' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-02-20 11:05:14.575 ***🔗
alicE_msg_with_props_can_be_parsed_3024@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 2024-02-20 11:05:14.575 ***🔗
alicE_msg_with_props_can_be_parsed_3024@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21zZ193aXRoX3Byb3BzX2Nhbl9iZV9wYXJzZWRfMzAyNABtYXR5Z3J5c2E=</auth>



*** User 2024-02-20 11:05:14.576 ***🔗
alicE_msg_with_props_can_be_parsed_3024@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-20 11:05:14.576 ***🔗
alicE_msg_with_props_can_be_parsed_3024@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 2024-02-20 11:05:14.576 ***🔗
alicE_msg_with_props_can_be_parsed_3024@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ac9fe139fb526808' from='domain.example.com' version='1.0' xml:lang='en' to='alice_msg_with_props_can_be_parsed_3024@domain.example.com'>

*** User 2024-02-20 11:05:14.576 ***🔗
alicE_msg_with_props_can_be_parsed_3024@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 2024-02-20 11:05:14.576 ***🔗
alicE_msg_with_props_can_be_parsed_3024@domain.example.com/res1 out
<iq type='set' id='4ae7a24bc18ce7fab59b2dd281821a0c'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-20 11:05:14.577 ***🔗
alicE_msg_with_props_can_be_parsed_3024@domain.example.com/res1 in
<iq id='4ae7a24bc18ce7fab59b2dd281821a0c' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_msg_with_props_can_be_parsed_3024@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-02-20 11:05:14.577 ***🔗
alice_msg_with_props_can_be_parsed_3024@domain.example.com/res1 out
<iq type='set' id='e2c64918d8eec741552137772a2e3fb7'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-20 11:05:14.577 ***🔗
alice_msg_with_props_can_be_parsed_3024@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_msg_with_props_can_be_parsed_3024@domain.example.com/res1' id='e2c64918d8eec741552137772a2e3fb7' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-20 11:05:14.577 ***🔗
alice_msg_with_props_can_be_parsed_3024@domain.example.com/res1 out
<presence/>



*** User 2024-02-20 11:05:14.579 ***🔗
alice_msg_with_props_can_be_parsed_3024@domain.example.com/res1 in
<presence from='alice_msg_with_props_can_be_parsed_3024@domain.example.com/res1' to='alice_msg_with_props_can_be_parsed_3024@domain.example.com/res1'/>



*** User 2024-02-20 11:05:14.579 ***🔗
bOb_msg_with_props_can_be_parsed_3024@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 2024-02-20 11:05:14.579 ***🔗
bOb_msg_with_props_can_be_parsed_3024@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d2287a9846511d49' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-02-20 11:05:14.579 ***🔗
bOb_msg_with_props_can_be_parsed_3024@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 2024-02-20 11:05:14.579 ***🔗
bOb_msg_with_props_can_be_parsed_3024@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tc2dfd2l0aF9wcm9wc19jYW5fYmVfcGFyc2VkXzMwMjQAbWFrcm9saWth</auth>



*** User 2024-02-20 11:05:14.580 ***🔗
bOb_msg_with_props_can_be_parsed_3024@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-20 11:05:14.580 ***🔗
bOb_msg_with_props_can_be_parsed_3024@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 2024-02-20 11:05:14.581 ***🔗
bOb_msg_with_props_can_be_parsed_3024@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='259477d3fb5da351' from='domain.example.com' version='1.0' xml:lang='en' to='bob_msg_with_props_can_be_parsed_3024@domain.example.com'>

*** User 2024-02-20 11:05:14.581 ***🔗
bOb_msg_with_props_can_be_parsed_3024@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 2024-02-20 11:05:14.581 ***🔗
bOb_msg_with_props_can_be_parsed_3024@domain.example.com/res1 out
<iq type='set' id='f0d5b9e7e3481817826edbfe443f557f'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-20 11:05:14.581 ***🔗
bOb_msg_with_props_can_be_parsed_3024@domain.example.com/res1 in
<iq id='f0d5b9e7e3481817826edbfe443f557f' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_msg_with_props_can_be_parsed_3024@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-02-20 11:05:14.581 ***🔗
bob_msg_with_props_can_be_parsed_3024@domain.example.com/res1 out
<iq type='set' id='51af4d21910cc7f71b8adbdfdfa0ec49'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-20 11:05:14.582 ***🔗
bob_msg_with_props_can_be_parsed_3024@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_msg_with_props_can_be_parsed_3024@domain.example.com/res1' id='51af4d21910cc7f71b8adbdfdfa0ec49' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-20 11:05:14.582 ***🔗
bob_msg_with_props_can_be_parsed_3024@domain.example.com/res1 out
<presence/>



*** User 2024-02-20 11:05:14.583 ***🔗
bob_msg_with_props_can_be_parsed_3024@domain.example.com/res1 in
<presence from='bob_msg_with_props_can_be_parsed_3024@domain.example.com/res1' to='bob_msg_with_props_can_be_parsed_3024@domain.example.com/res1'/>



*** User 2024-02-20 11:05:14.583 ***🔗
alice_msg_with_props_can_be_parsed_3024@domain.example.com/res1 out
<message xml:lang='en' to='bob_msg_with_props_can_be_parsed_3024@domain.example.com' id='2a9a025add' type='chat'>
	<body xml:lang='en_US'>Test message with properties</body>
	<properties xmlns='http://www.jivesoftware.com/xmlns/xmpp/properties'>
		<property>
			<name>some_string</name>
			<value type='string'>abcdefghijklmnopqrstuvwxyz</value>
		</property>
		<property>
			<name>some_number</name>
			<value type='long'>1234567890</value>
		</property>
	</properties>
</message>



*** User 2024-02-20 11:05:14.587 ***🔗
bob_msg_with_props_can_be_parsed_3024@domain.example.com/res1 in
<message from='alice_msg_with_props_can_be_parsed_3024@domain.example.com/res1' to='bob_msg_with_props_can_be_parsed_3024@domain.example.com' xml:lang='en' id='2a9a025add' type='chat'>
	<body xml:lang='en_US'>Test message with properties</body>
	<properties xmlns='http://www.jivesoftware.com/xmlns/xmpp/properties'>
		<property>
			<name>some_string</name>
			<value type='string'>abcdefghijklmnopqrstuvwxyz</value>
		</property>
		<property>
			<name>some_number</name>
			<value type='long'>1234567890</value>
		</property>
	</properties>
	<stanza-id by='bob_msg_with_props_can_be_parsed_3024@domain.example.com' id='C4EE5T51K901' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-02-20 11:05:14.589 ***🔗
waiting for archive_size is done in 0 miliseconds

*** User 2024-02-20 11:05:14.590 ***🔗
waiting for archive_size is done in 0 miliseconds

*** User 2024-02-20 11:05:14.598 ***🔗
REST request:
Code: 200
Req: {<0.76550.0>,
      <<"/api/messages/bob_msg_with_props_can_be_parsed_3024@domain.example.com?limit=1">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6fc36f638f3a730c">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbXNnX3dpdGhfcHJvcHNfY2FuX2JlX3BhcnNlZF8zMDI0QGRvbWFpbi5leGFtcGxlLmNvbTptYXR5Z3J5c2E=">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 20 Feb 2024 11:05:14 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"253">>}],
         <<"[{\"to\":\"bob_msg_with_props_can_be_parsed_3024@domain.example.com\",\"timestamp\":1708427114583,\"properties\":{\"some_string\":\"abcdefghijklmnopqrstuvwxyz\",\"some_number\":\"1234567890\"},\"id\":\"2a9a025add\",\"from\":\"undefined\",\"body\":\"Test message with properties\"}]">>,
         378,1689}
Params: #{path =>
              <<"/api/messages/bob_msg_with_props_can_be_parsed_3024@domain.example.com?limit=1">>,
          server => #{node => mongooseim@localhost},
          role => client,
          creds =>
              {<<"alice_msg_with_props_can_be_parsed_3024@domain.example.com">>,
               <<"matygrysa">>},
          body => <<>>,method => <<"GET">>,return_headers => true}


*** User 2024-02-20 11:05:14.598 ***🔗
bob_msg_with_props_can_be_parsed_3024@domain.example.com/res1 out
</stream:stream>

*** User 2024-02-20 11:05:14.598 ***🔗
bob_msg_with_props_can_be_parsed_3024@domain.example.com/res1 in
</stream:stream>

*** User 2024-02-20 11:05:14.598 ***🔗
alice_msg_with_props_can_be_parsed_3024@domain.example.com/res1 out
</stream:stream>

*** User 2024-02-20 11:05:14.599 ***🔗
alice_msg_with_props_can_be_parsed_3024@domain.example.com/res1 in
</stream:stream>
*** CT 2024-02-20 11:05:14.602 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2617.html



=== Ended at 2024-02-20 11:05:14
=== successfully completed test case
=== === Returned value: ok