=== Test case: rest_client_SUITE:add_contact_and_be_invited/1 (click for source code)
=== Config value:
[{watchdog,<0.85199.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@1c2ae12cdb1a.2023-11-17_15.10.15/big_tests.tests.rest_client_SUITE.logs/run.2023-11-17_15.24.28/rest_client_suite.add_contact_and_be_invited.222722.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@1c2ae12cdb1a.2023-11-17_15.10.15/big_tests.tests.rest_client_SUITE.logs/run.2023-11-17_15.24.28/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_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_presence => #{},
mod_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
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@1c2ae12cdb1a.2023-11-17_15.10.15"
=== Started at 2023-11-17 15:24:30
*** User 2023-11-17 15:24:30.253 ***🔗
alicE_add_contact_and_be_invited_2972@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-17 15:24:30.253 ***🔗
alicE_add_contact_and_be_invited_2972@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='27eeead385fb0dd2' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-11-17 15:24:30.253 ***🔗
alicE_add_contact_and_be_invited_2972@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-17 15:24:30.253 ***🔗
alicE_add_contact_and_be_invited_2972@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzI5NzIAbWF0eWdyeXNh</auth>
*** User 2023-11-17 15:24:30.254 ***🔗
alicE_add_contact_and_be_invited_2972@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-17 15:24:30.254 ***🔗
alicE_add_contact_and_be_invited_2972@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-17 15:24:30.254 ***🔗
alicE_add_contact_and_be_invited_2972@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9651ffaa9a0d6000' from='localhost' version='1.0' xml:lang='en' to='alice_add_contact_and_be_invited_2972@localhost'>
*** User 2023-11-17 15:24:30.255 ***🔗
alicE_add_contact_and_be_invited_2972@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-17 15:24:30.255 ***🔗
alicE_add_contact_and_be_invited_2972@localhost/res1 out
<iq type='set' id='b96e1c905293ff2d80567acef9b94b81'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-17 15:24:30.255 ***🔗
alicE_add_contact_and_be_invited_2972@localhost/res1 in
<iq id='b96e1c905293ff2d80567acef9b94b81' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_contact_and_be_invited_2972@localhost/res1</jid>
</bind>
</iq>
*** User 2023-11-17 15:24:30.255 ***🔗
alice_add_contact_and_be_invited_2972@localhost/res1 out
<iq type='set' id='49f76708fc596d8078b7c7e8d6570e7a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:24:30.256 ***🔗
alice_add_contact_and_be_invited_2972@localhost/res1 in
<iq from='localhost' to='alice_add_contact_and_be_invited_2972@localhost/res1' id='49f76708fc596d8078b7c7e8d6570e7a' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:24:30.256 ***🔗
alice_add_contact_and_be_invited_2972@localhost/res1 out
<presence/>
*** User 2023-11-17 15:24:30.257 ***🔗
alice_add_contact_and_be_invited_2972@localhost/res1 in
<presence from='alice_add_contact_and_be_invited_2972@localhost/res1' to='alice_add_contact_and_be_invited_2972@localhost/res1'/>
*** User 2023-11-17 15:24:30.258 ***🔗
bOb_add_contact_and_be_invited_2972@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-17 15:24:30.258 ***🔗
bOb_add_contact_and_be_invited_2972@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1b022643a02a7616' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-11-17 15:24:30.258 ***🔗
bOb_add_contact_and_be_invited_2972@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-17 15:24:30.258 ***🔗
bOb_add_contact_and_be_invited_2972@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfYmVfaW52aXRlZF8yOTcyAG1ha3JvbGlrYQ==</auth>
*** User 2023-11-17 15:24:30.259 ***🔗
bOb_add_contact_and_be_invited_2972@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-17 15:24:30.259 ***🔗
bOb_add_contact_and_be_invited_2972@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-17 15:24:30.259 ***🔗
bOb_add_contact_and_be_invited_2972@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='21767281bd5dd98b' from='localhost' version='1.0' xml:lang='en' to='bob_add_contact_and_be_invited_2972@localhost'>
*** User 2023-11-17 15:24:30.259 ***🔗
bOb_add_contact_and_be_invited_2972@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-17 15:24:30.259 ***🔗
bOb_add_contact_and_be_invited_2972@localhost/res1 out
<iq type='set' id='aeec71923469428f7b68f4aed135ba6e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-17 15:24:30.259 ***🔗
bOb_add_contact_and_be_invited_2972@localhost/res1 in
<iq id='aeec71923469428f7b68f4aed135ba6e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_contact_and_be_invited_2972@localhost/res1</jid>
</bind>
</iq>
*** User 2023-11-17 15:24:30.259 ***🔗
bob_add_contact_and_be_invited_2972@localhost/res1 out
<iq type='set' id='ef7ba4a4fdff0b02c9bcadb041110033'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:24:30.260 ***🔗
bob_add_contact_and_be_invited_2972@localhost/res1 in
<iq from='localhost' to='bob_add_contact_and_be_invited_2972@localhost/res1' id='ef7ba4a4fdff0b02c9bcadb041110033' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:24:30.260 ***🔗
bob_add_contact_and_be_invited_2972@localhost/res1 out
<presence/>
*** User 2023-11-17 15:24:30.261 ***🔗
bob_add_contact_and_be_invited_2972@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_2972@localhost/res1' to='bob_add_contact_and_be_invited_2972@localhost/res1'/>
*** User 2023-11-17 15:24:30.269 ***🔗
REST request:
Code: 200
Req: {<0.85267.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ba4b44eb27b06710">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzI5NzJAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2298}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_contact_and_be_invited_2972@localhost">>,
<<"makrolika">>},
method => <<"GET">>,body => <<>>,role => client,
return_headers => true}
*** User 2023-11-17 15:24:30.277 ***🔗
REST request:
Code: 204
Req: {<0.85296.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1f8fe3316b665357">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzI5NzJAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_add_contact_and_be_invited_2972@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:30 GMT">>}],
<<>>,80,2997}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_contact_and_be_invited_2972@localhost">>,
<<"makrolika">>},
method => <<"POST">>,
body =>
<<"{\"jid\":\"alice_add_contact_and_be_invited_2972@localhost\"}">>,
role => client,return_headers => true}
*** User 2023-11-17 15:24:30.277 ***🔗
bob_add_contact_and_be_invited_2972@localhost/res1 in
<iq from='bob_add_contact_and_be_invited_2972@localhost' to='bob_add_contact_and_be_invited_2972@localhost/res1' id='push3219f60737cfd2b7' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_contact_and_be_invited_2972@localhost'/>
</query>
</iq>
*** User 2023-11-17 15:24:30.300 ***🔗
REST request:
Code: 200
Req: {<0.85326.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a9743074b4f604a8">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzI5NzJAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_2972@localhost\"}]">>,
218,2687}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_contact_and_be_invited_2972@localhost">>,
<<"makrolika">>},
method => <<"GET">>,body => <<>>,role => client,
return_headers => true}
*** User 2023-11-17 15:24:30.301 ***🔗
alice_add_contact_and_be_invited_2972@localhost/res1 out
<iq type='set' id='81565c323c3e887a8920e1bbc5616a33'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_add_contact_and_be_invited_2972@localhost' name='Bobek'/>
</query>
</iq>
*** User 2023-11-17 15:24:30.303 ***🔗
alice_add_contact_and_be_invited_2972@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_2972@localhost' to='alice_add_contact_and_be_invited_2972@localhost/res1' id='push5d058d13a15a9af7' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bobek' jid='bob_add_contact_and_be_invited_2972@localhost'/>
</query>
</iq>
*** User 2023-11-17 15:24:30.303 ***🔗
alice_add_contact_and_be_invited_2972@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_2972@localhost' to='alice_add_contact_and_be_invited_2972@localhost/res1' id='81565c323c3e887a8920e1bbc5616a33' type='result'/>
*** User 2023-11-17 15:24:30.303 ***🔗
alice_add_contact_and_be_invited_2972@localhost/res1 out
<presence type='subscribe' to='bob_add_contact_and_be_invited_2972@localhost'/>
*** User 2023-11-17 15:24:30.307 ***🔗
alice_add_contact_and_be_invited_2972@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_2972@localhost' to='alice_add_contact_and_be_invited_2972@localhost/res1' id='pushe4eec3e7b70c4473' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' name='Bobek' jid='bob_add_contact_and_be_invited_2972@localhost'/>
</query>
</iq>
*** User 2023-11-17 15:24:30.307 ***🔗
bob_add_contact_and_be_invited_2972@localhost/res1 in
<presence from='alice_add_contact_and_be_invited_2972@localhost' to='bob_add_contact_and_be_invited_2972@localhost/res1' type='subscribe'/>
*** User 2023-11-17 15:24:30.313 ***🔗
REST request:
Code: 200
Req: {<0.85390.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b5ca371588e1c5e0">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzI5NzJAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"92">>}],
<<"[{\"ask\":\"in\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_2972@localhost\"}]">>,
216,1784}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_contact_and_be_invited_2972@localhost">>,
<<"makrolika">>},
method => <<"GET">>,body => <<>>,role => client,
return_headers => true}
*** User 2023-11-17 15:24:30.325 ***🔗
REST request:
Code: 204
Req: {<0.85424.0>,
<<"/api/contacts/alice_add_contact_and_be_invited_2972@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cda04ee74d47dabc">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzI5NzJAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"action\":\"accept\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:30 GMT">>}],
<<>>,80,5952}
Params: #{path =>
<<"/api/contacts/alice_add_contact_and_be_invited_2972@localhost">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_add_contact_and_be_invited_2972@localhost">>,
<<"makrolika">>},
method => <<"PUT">>,body => <<"{\"action\":\"accept\"}">>,
role => client,return_headers => true}
*** User 2023-11-17 15:24:30.326 ***🔗
bob_add_contact_and_be_invited_2972@localhost/res1 in
<iq from='bob_add_contact_and_be_invited_2972@localhost' to='bob_add_contact_and_be_invited_2972@localhost/res1' id='pushbc80eb48a4966f12' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_add_contact_and_be_invited_2972@localhost'/>
</query>
</iq>
*** User 2023-11-17 15:24:30.326 ***🔗
alice_add_contact_and_be_invited_2972@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_2972@localhost/res1' to='alice_add_contact_and_be_invited_2972@localhost/res1'/>
*** User 2023-11-17 15:24:30.326 ***🔗
alice_add_contact_and_be_invited_2972@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_2972@localhost' to='alice_add_contact_and_be_invited_2972@localhost/res1' id='push585b5b04b414615d' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' name='Bobek' jid='bob_add_contact_and_be_invited_2972@localhost'/>
</query>
</iq>
*** User 2023-11-17 15:24:30.326 ***🔗
alice_add_contact_and_be_invited_2972@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_2972@localhost' to='alice_add_contact_and_be_invited_2972@localhost/res1' type='subscribed'/>
*** User 2023-11-17 15:24:30.327 ***🔗
bob_add_contact_and_be_invited_2972@localhost/res1 out
</stream:stream>
*** User 2023-11-17 15:24:30.327 ***🔗
bob_add_contact_and_be_invited_2972@localhost/res1 in
</stream:stream>
*** User 2023-11-17 15:24:30.327 ***🔗
alice_add_contact_and_be_invited_2972@localhost/res1 out
</stream:stream>
*** User 2023-11-17 15:24:30.327 ***🔗
alice_add_contact_and_be_invited_2972@localhost/res1 in
</stream:stream>
=== Ended at 2023-11-17 15:24:30
=== successfully completed test case
=== === Returned value: ok