=== Test case: rest_client_SUITE:add_contact_and_be_invited/1 (click for source code)
=== Config value:
[{watchdog,<0.88296.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{preset,"odbc_mssql_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@38467046e2a2.2024-03-11_11.25.28/big_tests.tests.rest_client_SUITE.logs/run.2024-03-11_11.44.03/rest_client_suite.add_contact_and_be_invited.156931.html"},
{tc_group_properties,[{name,roster},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@38467046e2a2.2024-03-11_11.25.28/big_tests.tests.rest_client_SUITE.logs/run.2024-03-11_11.44.03/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,iqdisc => parallel,backend => rdbms},
mod_roster =>
#{iqdisc => one_queue,backend => rdbms,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,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_presence => #{},
mod_stream_management =>
#{buffer => true,ack => true,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
backend => mnesia,buffer_max => 100,ack_freq => 1,
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_carboncopy => #{iqdisc => no_queue},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@38467046e2a2.2024-03-11_11.25.28"
=== Started at 2024-03-11 11:44:05
*** User 2024-03-11 11:44:05.423 ***🔗
alicE_add_contact_and_be_invited_3320@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-11 11:44:05.423 ***🔗
alicE_add_contact_and_be_invited_3320@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='97373089c3bf0628' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-11 11:44:05.423 ***🔗
alicE_add_contact_and_be_invited_3320@localhost/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-03-11 11:44:05.423 ***🔗
alicE_add_contact_and_be_invited_3320@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMzMjAAbWF0eWdyeXNh</auth>
*** User 2024-03-11 11:44:05.424 ***🔗
alicE_add_contact_and_be_invited_3320@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 11:44:05.424 ***🔗
alicE_add_contact_and_be_invited_3320@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-11 11:44:05.425 ***🔗
alicE_add_contact_and_be_invited_3320@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='567cdf3df719aa7e' from='localhost' version='1.0' xml:lang='en' to='alice_add_contact_and_be_invited_3320@localhost'>
*** User 2024-03-11 11:44:05.425 ***🔗
alicE_add_contact_and_be_invited_3320@localhost/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-03-11 11:44:05.425 ***🔗
alicE_add_contact_and_be_invited_3320@localhost/res1 out
<iq type='set' id='e6af22bf65783947b40e6a38917ff55e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-11 11:44:05.425 ***🔗
alicE_add_contact_and_be_invited_3320@localhost/res1 in
<iq id='e6af22bf65783947b40e6a38917ff55e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_contact_and_be_invited_3320@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-11 11:44:05.425 ***🔗
alice_add_contact_and_be_invited_3320@localhost/res1 out
<iq type='set' id='e18c3f1705786eb31e2ef8b4bf3fe6e8'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 11:44:05.425 ***🔗
alice_add_contact_and_be_invited_3320@localhost/res1 in
<iq from='localhost' to='alice_add_contact_and_be_invited_3320@localhost/res1' id='e18c3f1705786eb31e2ef8b4bf3fe6e8' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 11:44:05.426 ***🔗
alice_add_contact_and_be_invited_3320@localhost/res1 out
<presence/>
*** User 2024-03-11 11:44:05.427 ***🔗
alice_add_contact_and_be_invited_3320@localhost/res1 in
<presence from='alice_add_contact_and_be_invited_3320@localhost/res1' to='alice_add_contact_and_be_invited_3320@localhost/res1'/>
*** User 2024-03-11 11:44:05.427 ***🔗
bOb_add_contact_and_be_invited_3320@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-11 11:44:05.428 ***🔗
bOb_add_contact_and_be_invited_3320@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7e8811c42be74b51' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-11 11:44:05.428 ***🔗
bOb_add_contact_and_be_invited_3320@localhost/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-03-11 11:44:05.428 ***🔗
bOb_add_contact_and_be_invited_3320@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfYmVfaW52aXRlZF8zMzIwAG1ha3JvbGlrYQ==</auth>
*** User 2024-03-11 11:44:05.430 ***🔗
bOb_add_contact_and_be_invited_3320@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 11:44:05.430 ***🔗
bOb_add_contact_and_be_invited_3320@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-11 11:44:05.431 ***🔗
bOb_add_contact_and_be_invited_3320@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='532b9dbc06be85c7' from='localhost' version='1.0' xml:lang='en' to='bob_add_contact_and_be_invited_3320@localhost'>
*** User 2024-03-11 11:44:05.431 ***🔗
bOb_add_contact_and_be_invited_3320@localhost/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-03-11 11:44:05.431 ***🔗
bOb_add_contact_and_be_invited_3320@localhost/res1 out
<iq type='set' id='57ea5438fab042570e04def9e5d3548c'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-11 11:44:05.431 ***🔗
bOb_add_contact_and_be_invited_3320@localhost/res1 in
<iq id='57ea5438fab042570e04def9e5d3548c' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_contact_and_be_invited_3320@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-11 11:44:05.432 ***🔗
bob_add_contact_and_be_invited_3320@localhost/res1 out
<iq type='set' id='1037ee9e9528e0d33d04dc7fb916df8e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 11:44:05.443 ***🔗
bob_add_contact_and_be_invited_3320@localhost/res1 in
<iq from='localhost' to='bob_add_contact_and_be_invited_3320@localhost/res1' id='1037ee9e9528e0d33d04dc7fb916df8e' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 11:44:05.443 ***🔗
bob_add_contact_and_be_invited_3320@localhost/res1 out
<presence/>
*** User 2024-03-11 11:44:05.446 ***🔗
bob_add_contact_and_be_invited_3320@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_3320@localhost/res1' to='bob_add_contact_and_be_invited_3320@localhost/res1'/>
*** User 2024-03-11 11:44:05.454 ***🔗
REST request:
Code: 200
Req: {<0.88363.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9f9e8ef8c63efe1b">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMzMjBAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:44:05 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2503}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,
creds =>
{<<"bob_add_contact_and_be_invited_3320@localhost">>,
<<"makrolika">>},
role => client,method => <<"GET">>,return_headers => true}
*** User 2024-03-11 11:44:05.463 ***🔗
REST request:
Code: 204
Req: {<0.88389.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6f4f87546ec5d9d9">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMzMjBAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_add_contact_and_be_invited_3320@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:44:05 GMT">>}],
<<>>,80,4920}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"alice_add_contact_and_be_invited_3320@localhost\"}">>,
creds =>
{<<"bob_add_contact_and_be_invited_3320@localhost">>,
<<"makrolika">>},
role => client,method => <<"POST">>,return_headers => true}
*** User 2024-03-11 11:44:05.463 ***🔗
bob_add_contact_and_be_invited_3320@localhost/res1 in
<iq from='bob_add_contact_and_be_invited_3320@localhost' to='bob_add_contact_and_be_invited_3320@localhost/res1' id='push7d0e7ac38f4a579e' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_contact_and_be_invited_3320@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-11 11:44:05.473 ***🔗
REST request:
Code: 200
Req: {<0.88427.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"77b4ed543e054bf7">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMzMjBAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:44:05 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_3320@localhost\"}]">>,
218,4939}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,
creds =>
{<<"bob_add_contact_and_be_invited_3320@localhost">>,
<<"makrolika">>},
role => client,method => <<"GET">>,return_headers => true}
*** User 2024-03-11 11:44:05.473 ***🔗
alice_add_contact_and_be_invited_3320@localhost/res1 out
<iq type='set' id='6ebdae355553fb4deef754e6e2f02b3b'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_add_contact_and_be_invited_3320@localhost' name='Bobek'/>
</query>
</iq>
*** User 2024-03-11 11:44:05.477 ***🔗
alice_add_contact_and_be_invited_3320@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3320@localhost' to='alice_add_contact_and_be_invited_3320@localhost/res1' id='push62929e6d763dab39' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobek' jid='bob_add_contact_and_be_invited_3320@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-11 11:44:05.477 ***🔗
alice_add_contact_and_be_invited_3320@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3320@localhost' to='alice_add_contact_and_be_invited_3320@localhost/res1' id='6ebdae355553fb4deef754e6e2f02b3b' type='result'/>
*** User 2024-03-11 11:44:05.477 ***🔗
alice_add_contact_and_be_invited_3320@localhost/res1 out
<presence type='subscribe' to='bob_add_contact_and_be_invited_3320@localhost'/>
*** User 2024-03-11 11:44:05.483 ***🔗
alice_add_contact_and_be_invited_3320@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3320@localhost' to='alice_add_contact_and_be_invited_3320@localhost/res1' id='push796c97a5ba8cc18d' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobek' ask='subscribe' jid='bob_add_contact_and_be_invited_3320@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-11 11:44:05.483 ***🔗
bob_add_contact_and_be_invited_3320@localhost/res1 in
<presence from='alice_add_contact_and_be_invited_3320@localhost' to='bob_add_contact_and_be_invited_3320@localhost/res1' type='subscribe'/>
*** User 2024-03-11 11:44:05.541 ***🔗
REST request:
Code: 200
Req: {<0.88495.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7bb98eddae91163f">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMzMjBAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:44:05 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"92">>}],
<<"[{\"ask\":\"in\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_3320@localhost\"}]">>,
216,53524}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,
creds =>
{<<"bob_add_contact_and_be_invited_3320@localhost">>,
<<"makrolika">>},
role => client,method => <<"GET">>,return_headers => true}
*** User 2024-03-11 11:44:05.553 ***🔗
REST request:
Code: 204
Req: {<0.88528.0>,
<<"/api/contacts/alice_add_contact_and_be_invited_3320@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a2e01ad27a29a5eb">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMzMjBAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"action\":\"accept\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:44:05 GMT">>}],
<<>>,80,7062}
Params: #{path =>
<<"/api/contacts/alice_add_contact_and_be_invited_3320@localhost">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"accept\"}">>,
creds =>
{<<"bob_add_contact_and_be_invited_3320@localhost">>,
<<"makrolika">>},
role => client,method => <<"PUT">>,return_headers => true}
*** User 2024-03-11 11:44:05.553 ***🔗
bob_add_contact_and_be_invited_3320@localhost/res1 in
<iq from='bob_add_contact_and_be_invited_3320@localhost' to='bob_add_contact_and_be_invited_3320@localhost/res1' id='pushee83037e561a6c41' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_contact_and_be_invited_3320@localhost' subscription='from'/>
</query>
</iq>
*** User 2024-03-11 11:44:05.553 ***🔗
alice_add_contact_and_be_invited_3320@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_3320@localhost/res1' to='alice_add_contact_and_be_invited_3320@localhost/res1'/>
*** User 2024-03-11 11:44:05.554 ***🔗
alice_add_contact_and_be_invited_3320@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3320@localhost' to='alice_add_contact_and_be_invited_3320@localhost/res1' id='push91dcdc86fc038357' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobek' jid='bob_add_contact_and_be_invited_3320@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-03-11 11:44:05.554 ***🔗
alice_add_contact_and_be_invited_3320@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_3320@localhost' to='alice_add_contact_and_be_invited_3320@localhost/res1' type='subscribed'/>
*** User 2024-03-11 11:44:05.554 ***🔗
bob_add_contact_and_be_invited_3320@localhost/res1 out
</stream:stream>
*** User 2024-03-11 11:44:05.554 ***🔗
bob_add_contact_and_be_invited_3320@localhost/res1 in
</stream:stream>
*** User 2024-03-11 11:44:05.554 ***🔗
alice_add_contact_and_be_invited_3320@localhost/res1 out
</stream:stream>
*** User 2024-03-11 11:44:05.555 ***🔗
alice_add_contact_and_be_invited_3320@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-11 11:44:05
=== successfully completed test case
=== === Returned value: ok