=== Test case: rest_client_SUITE:add_contact_and_be_invited/1 (click for source code)
=== Config value:
[{watchdog,<0.80295.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{preset,"pgsql_cets"},
{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@76d8bb481028.2024-03-11_08.55.19/big_tests.tests.rest_client_SUITE.logs/run.2024-03-11_09.09.51/rest_client_suite.add_contact_and_be_invited.151683.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@76d8bb481028.2024-03-11_08.55.19/big_tests.tests.rest_client_SUITE.logs/run.2024-03-11_09.09.51/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,backend => rdbms,iqdisc => parallel},
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,versioning => false,
store_current_id => false},
mod_sic => #{iqdisc => one_queue},
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_presence => #{},
mod_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_stream_management =>
#{buffer => true,ack => true,backend => cets,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
buffer_max => 100,ack_freq => 1,resume_timeout => 600},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_bosh =>
#{backend => cets,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@76d8bb481028.2024-03-11_08.55.19"
=== Started at 2024-03-11 09:09:53
*** User 2024-03-11 09:09:53.610 ***🔗
alicE_add_contact_and_be_invited_2966@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 09:09:53.610 ***🔗
alicE_add_contact_and_be_invited_2966@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='62d04581fee8e679' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-11 09:09:53.610 ***🔗
alicE_add_contact_and_be_invited_2966@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 09:09:53.611 ***🔗
alicE_add_contact_and_be_invited_2966@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzI5NjYAbWF0eWdyeXNh</auth>
*** User 2024-03-11 09:09:53.611 ***🔗
alicE_add_contact_and_be_invited_2966@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 09:09:53.612 ***🔗
alicE_add_contact_and_be_invited_2966@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 09:09:53.612 ***🔗
alicE_add_contact_and_be_invited_2966@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='57b73e0b75a8f751' from='localhost' version='1.0' xml:lang='en' to='alice_add_contact_and_be_invited_2966@localhost'>
*** User 2024-03-11 09:09:53.612 ***🔗
alicE_add_contact_and_be_invited_2966@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 09:09:53.612 ***🔗
alicE_add_contact_and_be_invited_2966@localhost/res1 out
<iq type='set' id='2fe9d150b44e214238294b61fa599c5d'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-11 09:09:53.612 ***🔗
alicE_add_contact_and_be_invited_2966@localhost/res1 in
<iq id='2fe9d150b44e214238294b61fa599c5d' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_contact_and_be_invited_2966@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-11 09:09:53.612 ***🔗
alice_add_contact_and_be_invited_2966@localhost/res1 out
<iq type='set' id='9a21966c122e9c1fc2cd23fdbd866d09'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:09:53.613 ***🔗
alice_add_contact_and_be_invited_2966@localhost/res1 in
<iq from='localhost' to='alice_add_contact_and_be_invited_2966@localhost/res1' id='9a21966c122e9c1fc2cd23fdbd866d09' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:09:53.614 ***🔗
alice_add_contact_and_be_invited_2966@localhost/res1 out
<presence/>
*** User 2024-03-11 09:09:53.615 ***🔗
alice_add_contact_and_be_invited_2966@localhost/res1 in
<presence from='alice_add_contact_and_be_invited_2966@localhost/res1' to='alice_add_contact_and_be_invited_2966@localhost/res1'/>
*** User 2024-03-11 09:09:53.616 ***🔗
bOb_add_contact_and_be_invited_2966@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 09:09:53.617 ***🔗
bOb_add_contact_and_be_invited_2966@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4678adb69401e4a3' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-11 09:09:53.617 ***🔗
bOb_add_contact_and_be_invited_2966@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 09:09:53.617 ***🔗
bOb_add_contact_and_be_invited_2966@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfYmVfaW52aXRlZF8yOTY2AG1ha3JvbGlrYQ==</auth>
*** User 2024-03-11 09:09:53.618 ***🔗
bOb_add_contact_and_be_invited_2966@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 09:09:53.618 ***🔗
bOb_add_contact_and_be_invited_2966@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 09:09:53.618 ***🔗
bOb_add_contact_and_be_invited_2966@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dd897e09ac029fc3' from='localhost' version='1.0' xml:lang='en' to='bob_add_contact_and_be_invited_2966@localhost'>
*** User 2024-03-11 09:09:53.618 ***🔗
bOb_add_contact_and_be_invited_2966@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 09:09:53.618 ***🔗
bOb_add_contact_and_be_invited_2966@localhost/res1 out
<iq type='set' id='6596397ee6abe8f12800bde80fe2240a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-11 09:09:53.622 ***🔗
bOb_add_contact_and_be_invited_2966@localhost/res1 in
<iq id='6596397ee6abe8f12800bde80fe2240a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_contact_and_be_invited_2966@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-11 09:09:53.622 ***🔗
bob_add_contact_and_be_invited_2966@localhost/res1 out
<iq type='set' id='5eea3e563d466d02cb8c90c1ce97181e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:09:53.623 ***🔗
bob_add_contact_and_be_invited_2966@localhost/res1 in
<iq from='localhost' to='bob_add_contact_and_be_invited_2966@localhost/res1' id='5eea3e563d466d02cb8c90c1ce97181e' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:09:53.623 ***🔗
bob_add_contact_and_be_invited_2966@localhost/res1 out
<presence/>
*** User 2024-03-11 09:09:53.625 ***🔗
bob_add_contact_and_be_invited_2966@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_2966@localhost/res1' to='bob_add_contact_and_be_invited_2966@localhost/res1'/>
*** User 2024-03-11 09:09:53.633 ***🔗
REST request:
Code: 200
Req: {<0.80364.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"86f2508c47a935f6">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzI5NjZAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:09:53 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2609}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"bob_add_contact_and_be_invited_2966@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-11 09:09:53.643 ***🔗
REST request:
Code: 204
Req: {<0.80386.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"24543b53d2c860ab">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzI5NjZAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_add_contact_and_be_invited_2966@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:09:53 GMT">>}],
<<>>,80,3316}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"alice_add_contact_and_be_invited_2966@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_add_contact_and_be_invited_2966@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-11 09:09:53.643 ***🔗
bob_add_contact_and_be_invited_2966@localhost/res1 in
<iq from='bob_add_contact_and_be_invited_2966@localhost' to='bob_add_contact_and_be_invited_2966@localhost/res1' id='push2f62f78348ddd152' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_contact_and_be_invited_2966@localhost'/>
</query>
</iq>
*** User 2024-03-11 09:09:53.686 ***🔗
REST request:
Code: 200
Req: {<0.80414.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f62771e794355f82">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzI5NjZAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:09:53 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_2966@localhost\"}]">>,
218,4993}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"bob_add_contact_and_be_invited_2966@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-11 09:09:53.686 ***🔗
alice_add_contact_and_be_invited_2966@localhost/res1 out
<iq type='set' id='a25687ac4a737ec40b28b5879839578f'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_add_contact_and_be_invited_2966@localhost' name='Bobek'/>
</query>
</iq>
*** User 2024-03-11 09:09:53.688 ***🔗
alice_add_contact_and_be_invited_2966@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_2966@localhost' to='alice_add_contact_and_be_invited_2966@localhost/res1' id='pushe02ca47dbbb67500' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bobek' jid='bob_add_contact_and_be_invited_2966@localhost'/>
</query>
</iq>
*** User 2024-03-11 09:09:53.689 ***🔗
alice_add_contact_and_be_invited_2966@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_2966@localhost' to='alice_add_contact_and_be_invited_2966@localhost/res1' id='a25687ac4a737ec40b28b5879839578f' type='result'/>
*** User 2024-03-11 09:09:53.689 ***🔗
alice_add_contact_and_be_invited_2966@localhost/res1 out
<presence type='subscribe' to='bob_add_contact_and_be_invited_2966@localhost'/>
*** User 2024-03-11 09:09:53.694 ***🔗
alice_add_contact_and_be_invited_2966@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_2966@localhost' to='alice_add_contact_and_be_invited_2966@localhost/res1' id='push58b6ad475388762b' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' name='Bobek' jid='bob_add_contact_and_be_invited_2966@localhost'/>
</query>
</iq>
*** User 2024-03-11 09:09:53.694 ***🔗
bob_add_contact_and_be_invited_2966@localhost/res1 in
<presence from='alice_add_contact_and_be_invited_2966@localhost' to='bob_add_contact_and_be_invited_2966@localhost/res1' type='subscribe'/>
*** User 2024-03-11 09:09:53.706 ***🔗
REST request:
Code: 200
Req: {<0.80486.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"751213854cc48556">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzI5NjZAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:09:53 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"92">>}],
<<"[{\"ask\":\"in\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_2966@localhost\"}]">>,
216,5235}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"bob_add_contact_and_be_invited_2966@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-11 09:09:53.721 ***🔗
REST request:
Code: 204
Req: {<0.80519.0>,
<<"/api/contacts/alice_add_contact_and_be_invited_2966@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"26205e1dd70563bb">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzI5NjZAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"action\":\"accept\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:09:53 GMT">>}],
<<>>,80,8523}
Params: #{path =>
<<"/api/contacts/alice_add_contact_and_be_invited_2966@localhost">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"accept\"}">>,method => <<"PUT">>,
creds =>
{<<"bob_add_contact_and_be_invited_2966@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-11 09:09:53.722 ***🔗
bob_add_contact_and_be_invited_2966@localhost/res1 in
<iq from='bob_add_contact_and_be_invited_2966@localhost' to='bob_add_contact_and_be_invited_2966@localhost/res1' id='push7345047731fe7258' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_add_contact_and_be_invited_2966@localhost'/>
</query>
</iq>
*** User 2024-03-11 09:09:53.722 ***🔗
alice_add_contact_and_be_invited_2966@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_2966@localhost/res1' to='alice_add_contact_and_be_invited_2966@localhost/res1'/>
*** User 2024-03-11 09:09:53.722 ***🔗
alice_add_contact_and_be_invited_2966@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_2966@localhost' to='alice_add_contact_and_be_invited_2966@localhost/res1' id='pushd423b633a17cb3b3' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' name='Bobek' jid='bob_add_contact_and_be_invited_2966@localhost'/>
</query>
</iq>
*** User 2024-03-11 09:09:53.722 ***🔗
alice_add_contact_and_be_invited_2966@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_2966@localhost' to='alice_add_contact_and_be_invited_2966@localhost/res1' type='subscribed'/>
*** User 2024-03-11 09:09:53.722 ***🔗
bob_add_contact_and_be_invited_2966@localhost/res1 out
</stream:stream>
*** User 2024-03-11 09:09:53.722 ***🔗
bob_add_contact_and_be_invited_2966@localhost/res1 in
</stream:stream>
*** User 2024-03-11 09:09:53.722 ***🔗
alice_add_contact_and_be_invited_2966@localhost/res1 out
</stream:stream>
*** User 2024-03-11 09:09:53.723 ***🔗
alice_add_contact_and_be_invited_2966@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-11 09:09:53
=== successfully completed test case
=== === Returned value: ok