=== Test case: rest_SUITE:stanzas_are_sent_and_received/1 (click for source code)
=== Config value:
[{watchdog,<0.12333.2>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,rdbms},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
{preset,"odbc_mssql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@cb94372a8ea7.2022-04-04_15.02.36/big_tests.tests.rest_SUITE.logs/run.2022-04-04_15.15.00/rest_suite.stanzas_are_sent_and_received.177922.html"},
{tc_group_properties,[{name,admin},parallel]},
{tc_group_path,[]},
{data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/rest_SUITE_data/"},
{priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@cb94372a8ea7.2022-04-04_15.02.36/big_tests.tests.rest_SUITE.logs/run.2022-04-04_15.15.00/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,strategy => fifo,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 =>
#{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
buffer_max => 100,resume_timeout => 600,
stale_h =>
#{enabled => false,geriatric => 3600,repeat_after => 1800}},
mod_vcard =>
#{backend => rdbms,
host => {prefix,<<"vjud.">>},
iqdisc => parallel,matches => 30,search => true}}},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"localhost">>},
{password,<<"makrolika">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@cb94372a8ea7.2022-04-04_15.02.36"
=== Started at 2022-04-04 15:15:00
*** User 2022-04-04 15:15:00.447 ***
alicE_stanzas_are_sent_and_received_2328@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-04-04 15:15:00.448 ***
alicE_stanzas_are_sent_and_received_2328@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6e6cc7c84f7c0d65' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-04 15:15:00.448 ***
alicE_stanzas_are_sent_and_received_2328@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-04-04 15:15:00.449 ***
alicE_stanzas_are_sent_and_received_2328@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N0YW56YXNfYXJlX3NlbnRfYW5kX3JlY2VpdmVkXzIzMjgAbWF0eWdyeXNh</auth>
*** User 2022-04-04 15:15:00.450 ***
alicE_stanzas_are_sent_and_received_2328@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-04-04 15:15:00.451 ***
alicE_stanzas_are_sent_and_received_2328@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-04-04 15:15:00.451 ***
alicE_stanzas_are_sent_and_received_2328@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='29b512eab8be4179' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-04 15:15:00.451 ***
alicE_stanzas_are_sent_and_received_2328@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-04-04 15:15:00.451 ***
alicE_stanzas_are_sent_and_received_2328@localhost/res1 out
<iq type='set' id='647711046fad972537cfaf4e363921d8'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-04-04 15:15:00.456 ***
alicE_stanzas_are_sent_and_received_2328@localhost/res1 in
<iq id='647711046fad972537cfaf4e363921d8' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_stanzas_are_sent_and_received_2328@localhost/res1</jid>
</bind>
</iq>
*** User 2022-04-04 15:15:00.456 ***
alicE_stanzas_are_sent_and_received_2328@localhost/res1 out
<iq type='set' id='86e71c1de2681f39108c12d70661f466'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-04 15:15:00.457 ***
alicE_stanzas_are_sent_and_received_2328@localhost/res1 in
<iq type='result' id='86e71c1de2681f39108c12d70661f466'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-04 15:15:00.457 ***
alicE_stanzas_are_sent_and_received_2328@localhost/res1 out
<presence/>
*** User 2022-04-04 15:15:00.461 ***
alicE_stanzas_are_sent_and_received_2328@localhost/res1 in
<presence from='alicE_stanzas_are_sent_and_received_2328@localhost/res1' to='alice_stanzas_are_sent_and_received_2328@localhost/res1' xml:lang='en'/>
*** User 2022-04-04 15:15:00.462 ***
bOb_stanzas_are_sent_and_received_2328@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-04-04 15:15:00.462 ***
bOb_stanzas_are_sent_and_received_2328@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4afbfcf02a2dd4fa' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-04 15:15:00.463 ***
bOb_stanzas_are_sent_and_received_2328@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-04-04 15:15:00.463 ***
bOb_stanzas_are_sent_and_received_2328@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdGFuemFzX2FyZV9zZW50X2FuZF9yZWNlaXZlZF8yMzI4AG1ha3JvbGlrYQ==</auth>
*** User 2022-04-04 15:15:00.468 ***
bOb_stanzas_are_sent_and_received_2328@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-04-04 15:15:00.468 ***
bOb_stanzas_are_sent_and_received_2328@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-04-04 15:15:00.469 ***
bOb_stanzas_are_sent_and_received_2328@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7936f26ead3efd37' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-04 15:15:00.469 ***
bOb_stanzas_are_sent_and_received_2328@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-04-04 15:15:00.469 ***
bOb_stanzas_are_sent_and_received_2328@localhost/res1 out
<iq type='set' id='5647d09fed9de581e52a22543598d50e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-04-04 15:15:00.471 ***
bOb_stanzas_are_sent_and_received_2328@localhost/res1 in
<iq id='5647d09fed9de581e52a22543598d50e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_stanzas_are_sent_and_received_2328@localhost/res1</jid>
</bind>
</iq>
*** User 2022-04-04 15:15:00.471 ***
bOb_stanzas_are_sent_and_received_2328@localhost/res1 out
<iq type='set' id='7c61c1f6f51a3e3942483ee10cb2fad9'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-04 15:15:00.473 ***
bOb_stanzas_are_sent_and_received_2328@localhost/res1 in
<iq type='result' id='7c61c1f6f51a3e3942483ee10cb2fad9'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-04 15:15:00.473 ***
bOb_stanzas_are_sent_and_received_2328@localhost/res1 out
<presence/>
*** User 2022-04-04 15:15:00.547 ***
bOb_stanzas_are_sent_and_received_2328@localhost/res1 in
<presence from='bOb_stanzas_are_sent_and_received_2328@localhost/res1' to='bob_stanzas_are_sent_and_received_2328@localhost/res1' xml:lang='en'/>
*** User 2022-04-04 15:15:00.567 ***
REST request:
Code: 204
Req: {<0.12592.2>,<<"/api/stanzas">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ba5beb0f4194642f">>}],
<<"{\"stanza\":\"the bodyinside the sibling\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Apr 2022 15:15:00 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,18899}
Params: #{body =>
<<"{\"stanza\":\"the bodyinside the sibling\"}">>,
method => <<"POST">>,path => <<"/api/stanzas">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-04-04 15:15:00.567 ***
bOb_stanzas_are_sent_and_received_2328@localhost/res1 in
<message from='alicE_stanzas_are_sent_and_received_2328@localhost/res1' to='bOb_stanzas_are_sent_and_received_2328@localhost/res1' extra='attribute'>
<body>the body</body>
<sibling>inside the sibling</sibling>
<stanza-id by='bOb_stanzas_are_sent_and_received_2328@localhost' id='BMULIU5MDG01' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2022-04-04 15:15:00.567 ***
M: {xmlel,<<"message">>,
[{<<"from">>,
<<"alicE_stanzas_are_sent_and_received_2328@localhost/res1">>},
{<<"extra">>,<<"attribute">>}],
[{xmlel,<<"body">>,[],[{xmlcdata,<<"the body">>}]},
{xmlel,<<"sibling">>,[],[{xmlcdata,<<"inside the sibling">>}]}]}
*** User 2022-04-04 15:15:00.570 ***
REST request fails:
Code: 400
Req: {<0.12610.2>,<<"/api/stanzas">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7009dc4fdcb7d466">>}],
<<"{\"stanza\":\"the bodyinside the sibling\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Apr 2022 15:15:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"29">>}],
<<"both from and to are required">>,162,819}
Params: #{body =>
<<"{\"stanza\":\"the bodyinside the sibling\"}">>,
method => <<"POST">>,path => <<"/api/stanzas">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-04-04 15:15:00.572 ***
REST request fails:
Code: 400
Req: {<0.12612.2>,<<"/api/stanzas">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fd371b00028c5313">>}],
<<"{\"stanza\":\"the body>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Apr 2022 15:15:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"30">>}],
<<"Malformed stanza: \"expected >\"">>,163,956}
Params: #{body =>
<<"{\"stanza\":\"the body>,
method => <<"POST">>,path => <<"/api/stanzas">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-04-04 15:15:00.572 ***
bOb_stanzas_are_sent_and_received_2328@localhost/res1 out
</stream:stream>
*** User 2022-04-04 15:15:00.572 ***
bOb_stanzas_are_sent_and_received_2328@localhost/res1 in
</stream:stream>
*** User 2022-04-04 15:15:00.572 ***
alicE_stanzas_are_sent_and_received_2328@localhost/res1 out
</stream:stream>
*** User 2022-04-04 15:15:00.573 ***
alicE_stanzas_are_sent_and_received_2328@localhost/res1 in
</stream:stream>
=== Ended at 2022-04-04 15:15:00
=== successfully completed test case
=== === Returned value: ok