=== Test case: rest_client_SUITE:msg_with_props_can_be_parsed/1 (click for source code)
=== Config value:
[{watchdog,<0.12749.2>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
{preset,"mysql_redis"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@fac56f14d8cf.2022-03-07_15.57.55/big_tests.tests.rest_client_SUITE.logs/run.2022-03-07_16.09.36/rest_client_suite.msg_with_props_can_be_parsed.77188.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@fac56f14d8cf.2022-03-07_15.57.55/big_tests.tests.rest_client_SUITE.logs/run.2022-03-07_16.09.36/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_amp => [],
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users => [{number_of_segments,5},{time_to_live,2}],
mod_carboncopy => [],mod_commands => [],
mod_disco =>
#{extra_domains => [],iqdisc => one_queue,server_info => [],
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,iqdisc => one_queue,store_current_id => false,
versioning => false},
mod_sic => #{iqdisc => one_queue},
mod_stream_management => [],
mod_vcard =>
#{backend => rdbms,
host => {prefix,<<"vjud.">>},
iqdisc => parallel,ldap_binary_search_fields => [],
ldap_pool_tag => default,
ldap_search_fields =>
[{<<"User">>,<<"%u">>},
{<<"Full Name">>,<<"displayName">>},
{<<"Given Name">>,<<"givenName">>},
{<<"Middle Name">>,<<"initials">>},
{<<"Family Name">>,<<"sn">>},
{<<"Nickname">>,<<"%u">>},
{<<"Birthday">>,<<"birthDay">>},
{<<"Country">>,<<"c">>},
{<<"City">>,<<"l">>},
{<<"Email">>,<<"mail">>},
{<<"Organization Name">>,<<"o">>},
{<<"Organization Unit">>,<<"ou">>}],
ldap_search_operator => 'and',
ldap_search_reported =>
[{<<"Full Name">>,<<"FN">>},
{<<"Given Name">>,<<"FIRST">>},
{<<"Middle Name">>,<<"MIDDLE">>},
{<<"Family Name">>,<<"LAST">>},
{<<"Nickname">>,<<"NICK">>},
{<<"Birthday">>,<<"BDAY">>},
{<<"Country">>,<<"CTRY">>},
{<<"City">>,<<"LOCALITY">>},
{<<"Email">>,<<"EMAIL">>},
{<<"Organization Name">>,<<"ORGNAME">>},
{<<"Organization Unit">>,<<"ORGUNIT">>}],
ldap_uids => [{<<"uid">>,<<"%u">>}],
ldap_vcard_map =>
[{<<"NICKNAME">>,<<"%u">>,[]},
{<<"FN">>,<<"%s">>,[<<"displayName">>]},
{<<"FAMILY">>,<<"%s">>,[<<"sn">>]},
{<<"GIVEN">>,<<"%s">>,[<<"givenName">>]},
{<<"MIDDLE">>,<<"%s">>,[<<"initials">>]},
{<<"ORGNAME">>,<<"%s">>,[<<"o">>]},
{<<"ORGUNIT">>,<<"%s">>,[<<"ou">>]},
{<<"CTRY">>,<<"%s">>,[<<"c">>]},
{<<"LOCALITY">>,<<"%s">>,[<<"l">>]},
{<<"STREET">>,<<"%s">>,[<<"street">>]},
{<<"REGION">>,<<"%s">>,[<<"st">>]},
{<<"PCODE">>,<<"%s">>,[<<"postalCode">>]},
{<<"TITLE">>,<<"%s">>,[<<"title">>]},
{<<"URL">>,<<"%s">>,[<<"labeleduri">>]},
{<<"DESC">>,<<"%s">>,[<<"description">>]},
{<<"TEL">>,<<"%s">>,[<<"telephoneNumber">>]},
{<<"EMAIL">>,<<"%s">>,[<<"mail">>]},
{<<"BDAY">>,<<"%s">>,[<<"birthDay">>]},
{<<"ROLE">>,<<"%s">>,[<<"employeeType">>]},
{<<"PHOTO">>,<<"%s">>,[<<"jpegPhoto">>]}],
matches => 30,search => true}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@fac56f14d8cf.2022-03-07_15.57.55"
=== Started at 2022-03-07 16:09:39
*** User 2022-03-07 16:09:39.492 ***
alicE_msg_with_props_can_be_parsed_2260@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-03-07 16:09:39.493 ***
alicE_msg_with_props_can_be_parsed_2260@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='86e22ed2af3c063e' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-07 16:09:39.493 ***
alicE_msg_with_props_can_be_parsed_2260@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-03-07 16:09:39.493 ***
alicE_msg_with_props_can_be_parsed_2260@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21zZ193aXRoX3Byb3BzX2Nhbl9iZV9wYXJzZWRfMjI2MABtYXR5Z3J5c2E=</auth>
*** User 2022-03-07 16:09:39.494 ***
alicE_msg_with_props_can_be_parsed_2260@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-07 16:09:39.494 ***
alicE_msg_with_props_can_be_parsed_2260@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-03-07 16:09:39.494 ***
alicE_msg_with_props_can_be_parsed_2260@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='80e58f2e1f2cf508' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-07 16:09:39.494 ***
alicE_msg_with_props_can_be_parsed_2260@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-03-07 16:09:39.494 ***
alicE_msg_with_props_can_be_parsed_2260@localhost/res1 out
<iq type='set' id='52c49e7b88a2dca583f8ed4f3e22d438'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-07 16:09:39.495 ***
alicE_msg_with_props_can_be_parsed_2260@localhost/res1 in
<iq id='52c49e7b88a2dca583f8ed4f3e22d438' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_msg_with_props_can_be_parsed_2260@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-07 16:09:39.495 ***
alicE_msg_with_props_can_be_parsed_2260@localhost/res1 out
<iq type='set' id='c9a82e97c0cc59050599c9b808e669c7'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-07 16:09:39.495 ***
alicE_msg_with_props_can_be_parsed_2260@localhost/res1 in
<iq type='result' id='c9a82e97c0cc59050599c9b808e669c7'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-07 16:09:39.495 ***
alicE_msg_with_props_can_be_parsed_2260@localhost/res1 out
<presence/>
*** User 2022-03-07 16:09:39.499 ***
alicE_msg_with_props_can_be_parsed_2260@localhost/res1 in
<presence from='alicE_msg_with_props_can_be_parsed_2260@localhost/res1' to='alice_msg_with_props_can_be_parsed_2260@localhost/res1' xml:lang='en'/>
*** User 2022-03-07 16:09:39.500 ***
bOb_msg_with_props_can_be_parsed_2260@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-03-07 16:09:39.500 ***
bOb_msg_with_props_can_be_parsed_2260@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5cc090bdaa6f59f6' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-07 16:09:39.500 ***
bOb_msg_with_props_can_be_parsed_2260@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-03-07 16:09:39.500 ***
bOb_msg_with_props_can_be_parsed_2260@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tc2dfd2l0aF9wcm9wc19jYW5fYmVfcGFyc2VkXzIyNjAAbWFrcm9saWth</auth>
*** User 2022-03-07 16:09:39.501 ***
bOb_msg_with_props_can_be_parsed_2260@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-07 16:09:39.501 ***
bOb_msg_with_props_can_be_parsed_2260@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-03-07 16:09:39.502 ***
bOb_msg_with_props_can_be_parsed_2260@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3cf2ab1f70fb7cb8' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-07 16:09:39.502 ***
bOb_msg_with_props_can_be_parsed_2260@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-03-07 16:09:39.502 ***
bOb_msg_with_props_can_be_parsed_2260@localhost/res1 out
<iq type='set' id='03c378647f5238ae5eba607b6cd9b030'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-07 16:09:39.502 ***
bOb_msg_with_props_can_be_parsed_2260@localhost/res1 in
<iq id='03c378647f5238ae5eba607b6cd9b030' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_msg_with_props_can_be_parsed_2260@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-07 16:09:39.502 ***
bOb_msg_with_props_can_be_parsed_2260@localhost/res1 out
<iq type='set' id='218fbf3ad294bc93ac5ebc534d9a2226'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-07 16:09:39.502 ***
bOb_msg_with_props_can_be_parsed_2260@localhost/res1 in
<iq type='result' id='218fbf3ad294bc93ac5ebc534d9a2226'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-07 16:09:39.503 ***
bOb_msg_with_props_can_be_parsed_2260@localhost/res1 out
<presence/>
*** User 2022-03-07 16:09:39.507 ***
bOb_msg_with_props_can_be_parsed_2260@localhost/res1 in
<presence from='bOb_msg_with_props_can_be_parsed_2260@localhost/res1' to='bob_msg_with_props_can_be_parsed_2260@localhost/res1' xml:lang='en'/>
*** User 2022-03-07 16:09:39.507 ***
alicE_msg_with_props_can_be_parsed_2260@localhost/res1 out
<message xml:lang='en' to='bob_msg_with_props_can_be_parsed_2260@localhost' id='fde22f2f63' 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 2022-03-07 16:09:39.513 ***
bOb_msg_with_props_can_be_parsed_2260@localhost/res1 in
<message from='alicE_msg_with_props_can_be_parsed_2260@localhost/res1' to='bob_msg_with_props_can_be_parsed_2260@localhost' xml:lang='en' id='fde22f2f63' 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_2260@localhost' id='BMD32TMPA0O1' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2022-03-07 16:09:39.526 ***
REST request:
Code: 200
Req: {<0.12809.2>,
<<"/api/messages/bob_msg_with_props_can_be_parsed_2260@localhost?limit=1">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"eef29e6e1304e988">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbXNnX3dpdGhfcHJvcHNfY2FuX2JlX3BhcnNlZF8yMjYwQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 07 Mar 2022 16:09:39 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"244">>}],
<<"[{\"to\":\"bob_msg_with_props_can_be_parsed_2260@localhost\",\"timestamp\":1646669379507,\"properties\":{\"some_string\":\"abcdefghijklmnopqrstuvwxyz\",\"some_number\":\"1234567890\"},\"id\":\"fde22f2f63\",\"from\":\"undefined\",\"body\":\"Test message with properties\"}]">>,
369,2074}
Params: #{body => <<>>,
creds =>
{<<"alice_msg_with_props_can_be_parsed_2260@localhost">>,
<<"matygrysa">>},
method => <<"GET">>,
path =>
<<"/api/messages/bob_msg_with_props_can_be_parsed_2260@localhost?limit=1">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-07 16:09:39.526 ***
bOb_msg_with_props_can_be_parsed_2260@localhost/res1 out
</stream:stream>
*** User 2022-03-07 16:09:39.526 ***
bOb_msg_with_props_can_be_parsed_2260@localhost/res1 in
</stream:stream>
*** User 2022-03-07 16:09:39.526 ***
alicE_msg_with_props_can_be_parsed_2260@localhost/res1 out
</stream:stream>
*** User 2022-03-07 16:09:39.526 ***
alicE_msg_with_props_can_be_parsed_2260@localhost/res1 in
</stream:stream>
=== Ended at 2022-03-07 16:09:39
=== successfully completed test case
=== === Returned value: ok