=== Test case: rest_client_SUITE:add_contact_and_be_invited/1 (click for source code)
=== Config value:
[{watchdog,<0.85379.0>},
{muc_light_host,<<"muclight.localhost">>},
{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@079a843f8d8b.2023-11-16_09.33.39/big_tests.tests.rest_client_SUITE.logs/run.2023-11-16_09.49.09/rest_client_suite.add_contact_and_be_invited.206978.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@079a843f8d8b.2023-11-16_09.33.39/big_tests.tests.rest_client_SUITE.logs/run.2023-11-16_09.49.09/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_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 => mnesia,buffer_max => 100,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
ack_freq => 1,resume_timeout => 600},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_bosh =>
#{backend => mnesia,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@079a843f8d8b.2023-11-16_09.33.39"
=== Started at 2023-11-16 09:49:11
*** User 2023-11-16 09:49:11.418 ***🔗
alicE_add_contact_and_be_invited_3114@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-16 09:49:11.418 ***🔗
alicE_add_contact_and_be_invited_3114@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6459b6404283adc5' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-11-16 09:49:11.418 ***🔗
alicE_add_contact_and_be_invited_3114@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 2023-11-16 09:49:11.419 ***🔗
alicE_add_contact_and_be_invited_3114@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMxMTQAbWF0eWdyeXNh</auth>
*** User 2023-11-16 09:49:11.419 ***🔗
alicE_add_contact_and_be_invited_3114@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-16 09:49:11.419 ***🔗
alicE_add_contact_and_be_invited_3114@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-16 09:49:11.420 ***🔗
alicE_add_contact_and_be_invited_3114@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f9e805c901e85cf1' from='localhost' version='1.0' xml:lang='en' to='alice_add_contact_and_be_invited_3114@localhost'>
*** User 2023-11-16 09:49:11.420 ***🔗
alicE_add_contact_and_be_invited_3114@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 2023-11-16 09:49:11.420 ***🔗
alicE_add_contact_and_be_invited_3114@localhost/res1 out
<iq type='set' id='e93861e52eefea1a2dec422f22c50568'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-16 09:49:11.420 ***🔗
alicE_add_contact_and_be_invited_3114@localhost/res1 in
<iq id='e93861e52eefea1a2dec422f22c50568' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_contact_and_be_invited_3114@localhost/res1</jid>
</bind>
</iq>
*** User 2023-11-16 09:49:11.420 ***🔗
alice_add_contact_and_be_invited_3114@localhost/res1 out
<iq type='set' id='a44bdc187d59893233e6de5fa7a47a87'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-16 09:49:11.420 ***🔗
alice_add_contact_and_be_invited_3114@localhost/res1 in
<iq from='localhost' to='alice_add_contact_and_be_invited_3114@localhost/res1' id='a44bdc187d59893233e6de5fa7a47a87' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-16 09:49:11.420 ***🔗
alice_add_contact_and_be_invited_3114@localhost/res1 out
<presence/>
*** User 2023-11-16 09:49:11.422 ***🔗
alice_add_contact_and_be_invited_3114@localhost/res1 in
<presence from='alice_add_contact_and_be_invited_3114@localhost/res1' to='alice_add_contact_and_be_invited_3114@localhost/res1'/>
*** User 2023-11-16 09:49:11.422 ***🔗
bOb_add_contact_and_be_invited_3114@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-16 09:49:11.422 ***🔗
bOb_add_contact_and_be_invited_3114@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='82ba5c99c2281fa0' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-11-16 09:49:11.423 ***🔗
bOb_add_contact_and_be_invited_3114@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 2023-11-16 09:49:11.423 ***🔗
bOb_add_contact_and_be_invited_3114@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfYmVfaW52aXRlZF8zMTE0AG1ha3JvbGlrYQ==</auth>
*** User 2023-11-16 09:49:11.423 ***🔗
bOb_add_contact_and_be_invited_3114@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-16 09:49:11.424 ***🔗
bOb_add_contact_and_be_invited_3114@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-16 09:49:11.424 ***🔗
bOb_add_contact_and_be_invited_3114@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5753e9bf331e205c' from='localhost' version='1.0' xml:lang='en' to='bob_add_contact_and_be_invited_3114@localhost'>
*** User 2023-11-16 09:49:11.424 ***🔗
bOb_add_contact_and_be_invited_3114@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 2023-11-16 09:49:11.424 ***🔗
bOb_add_contact_and_be_invited_3114@localhost/res1 out
<iq type='set' id='473f8dcd467eee651d464887951cbc9d'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-16 09:49:11.424 ***🔗
bOb_add_contact_and_be_invited_3114@localhost/res1 in
<iq id='473f8dcd467eee651d464887951cbc9d' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_contact_and_be_invited_3114@localhost/res1</jid>
</bind>
</iq>
*** User 2023-11-16 09:49:11.424 ***🔗
bob_add_contact_and_be_invited_3114@localhost/res1 out
<iq type='set' id='27f1ed544f6680d6ef408f80db0d9830'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-16 09:49:11.425 ***🔗
bob_add_contact_and_be_invited_3114@localhost/res1 in
<iq from='localhost' to='bob_add_contact_and_be_invited_3114@localhost/res1' id='27f1ed544f6680d6ef408f80db0d9830' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-16 09:49:11.425 ***🔗
bob_add_contact_and_be_invited_3114@localhost/res1 out
<presence/>
*** User 2023-11-16 09:49:11.426 ***🔗
bob_add_contact_and_be_invited_3114@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_3114@localhost/res1' to='bob_add_contact_and_be_invited_3114@localhost/res1'/>
*** User 2023-11-16 09:49:11.433 ***🔗
REST request:
Code: 200
Req: {<0.85455.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"53ad4d44602b9366">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMxMTRAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:49:10 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2677}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => client,
creds =>
{<<"bob_add_contact_and_be_invited_3114@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2023-11-16 09:49:11.441 ***🔗
REST request:
Code: 204
Req: {<0.85480.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e8da2c18a1f8eb8d">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMxMTRAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_add_contact_and_be_invited_3114@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:49:10 GMT">>}],
<<>>,80,2876}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"jid\":\"alice_add_contact_and_be_invited_3114@localhost\"}">>,
role => client,
creds =>
{<<"bob_add_contact_and_be_invited_3114@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2023-11-16 09:49:11.441 ***🔗
bob_add_contact_and_be_invited_3114@localhost/res1 in
<iq from='bob_add_contact_and_be_invited_3114@localhost' to='bob_add_contact_and_be_invited_3114@localhost/res1' id='push8f9354d5280aabb7' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_contact_and_be_invited_3114@localhost'/>
</query>
</iq>
*** User 2023-11-16 09:49:11.449 ***🔗
REST request:
Code: 200
Req: {<0.85508.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"77e0448ca699fabe">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMxMTRAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:49:10 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_3114@localhost\"}]">>,
218,2817}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => client,
creds =>
{<<"bob_add_contact_and_be_invited_3114@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2023-11-16 09:49:11.449 ***🔗
alice_add_contact_and_be_invited_3114@localhost/res1 out
<iq type='set' id='d21592d9221bf5b4d0ebd84454879a5a'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_add_contact_and_be_invited_3114@localhost' name='Bobek'/>
</query>
</iq>
*** User 2023-11-16 09:49:11.451 ***🔗
alice_add_contact_and_be_invited_3114@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3114@localhost' to='alice_add_contact_and_be_invited_3114@localhost/res1' id='push8702604af446680f' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bobek' jid='bob_add_contact_and_be_invited_3114@localhost'/>
</query>
</iq>
*** User 2023-11-16 09:49:11.451 ***🔗
alice_add_contact_and_be_invited_3114@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3114@localhost' to='alice_add_contact_and_be_invited_3114@localhost/res1' id='d21592d9221bf5b4d0ebd84454879a5a' type='result'/>
*** User 2023-11-16 09:49:11.451 ***🔗
alice_add_contact_and_be_invited_3114@localhost/res1 out
<presence type='subscribe' to='bob_add_contact_and_be_invited_3114@localhost'/>
*** User 2023-11-16 09:49:11.456 ***🔗
alice_add_contact_and_be_invited_3114@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3114@localhost' to='alice_add_contact_and_be_invited_3114@localhost/res1' id='pushb2e34a7e0388031e' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' name='Bobek' jid='bob_add_contact_and_be_invited_3114@localhost'/>
</query>
</iq>
*** User 2023-11-16 09:49:11.456 ***🔗
bob_add_contact_and_be_invited_3114@localhost/res1 in
<presence from='alice_add_contact_and_be_invited_3114@localhost' to='bob_add_contact_and_be_invited_3114@localhost/res1' type='subscribe'/>
*** User 2023-11-16 09:49:11.512 ***🔗
REST request:
Code: 200
Req: {<0.85570.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f627d1355942e30f">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMxMTRAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:49:10 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"92">>}],
<<"[{\"ask\":\"in\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_3114@localhost\"}]">>,
216,51230}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => client,
creds =>
{<<"bob_add_contact_and_be_invited_3114@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2023-11-16 09:49:11.524 ***🔗
REST request:
Code: 204
Req: {<0.85601.0>,
<<"/api/contacts/alice_add_contact_and_be_invited_3114@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a9cba507a24b56a1">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMxMTRAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"action\":\"accept\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:49:10 GMT">>}],
<<>>,80,6900}
Params: #{path =>
<<"/api/contacts/alice_add_contact_and_be_invited_3114@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"accept\"}">>,
role => client,
creds =>
{<<"bob_add_contact_and_be_invited_3114@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2023-11-16 09:49:11.524 ***🔗
bob_add_contact_and_be_invited_3114@localhost/res1 in
<iq from='bob_add_contact_and_be_invited_3114@localhost' to='bob_add_contact_and_be_invited_3114@localhost/res1' id='pushc52b557c6177c891' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_add_contact_and_be_invited_3114@localhost'/>
</query>
</iq>
*** User 2023-11-16 09:49:11.524 ***🔗
alice_add_contact_and_be_invited_3114@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_3114@localhost/res1' to='alice_add_contact_and_be_invited_3114@localhost/res1'/>
*** User 2023-11-16 09:49:11.524 ***🔗
alice_add_contact_and_be_invited_3114@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3114@localhost' to='alice_add_contact_and_be_invited_3114@localhost/res1' id='push76b80b49a1dcbd0c' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' name='Bobek' jid='bob_add_contact_and_be_invited_3114@localhost'/>
</query>
</iq>
*** User 2023-11-16 09:49:11.524 ***🔗
alice_add_contact_and_be_invited_3114@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_3114@localhost' to='alice_add_contact_and_be_invited_3114@localhost/res1' type='subscribed'/>
*** User 2023-11-16 09:49:11.525 ***🔗
bob_add_contact_and_be_invited_3114@localhost/res1 out
</stream:stream>
*** User 2023-11-16 09:49:11.526 ***🔗
bob_add_contact_and_be_invited_3114@localhost/res1 in
</stream:stream>
*** User 2023-11-16 09:49:11.526 ***🔗
alice_add_contact_and_be_invited_3114@localhost/res1 out
</stream:stream>
*** User 2023-11-16 09:49:11.526 ***🔗
alice_add_contact_and_be_invited_3114@localhost/res1 in
</stream:stream>
=== Ended at 2023-11-16 09:49:11
=== successfully completed test case
=== === Returned value: ok