=== Test case: rest_client_SUITE:add_contact_and_be_invited/1 (click for source code)
=== Config value:
[{watchdog,<0.89833.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{preset,"mysql_redis"},
{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@17a96e781220.2024-03-21_22.20.25/big_tests.tests.rest_client_SUITE.logs/run.2024-03-21_22.35.00/rest_client_suite.add_contact_and_be_invited.180099.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@17a96e781220.2024-03-21_22.20.25/big_tests.tests.rest_client_SUITE.logs/run.2024-03-21_22.35.00/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_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_presence => #{},
mod_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,buffer_max => 100,
ack_freq => 1,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
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@17a96e781220.2024-03-21_22.20.25"
=== Started at 2024-03-21 22:35:02
*** User 2024-03-21 22:35:02.142 ***🔗
alicE_add_contact_and_be_invited_3174@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-21 22:35:02.143 ***🔗
alicE_add_contact_and_be_invited_3174@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d923dd65ae7dad59' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 22:35:02.143 ***🔗
alicE_add_contact_and_be_invited_3174@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-21 22:35:02.143 ***🔗
alicE_add_contact_and_be_invited_3174@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMxNzQAbWF0eWdyeXNh</auth>
*** User 2024-03-21 22:35:02.144 ***🔗
alicE_add_contact_and_be_invited_3174@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 22:35:02.144 ***🔗
alicE_add_contact_and_be_invited_3174@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-21 22:35:02.144 ***🔗
alicE_add_contact_and_be_invited_3174@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='82dce5ed4072a89b' from='localhost' version='1.0' xml:lang='en' to='alice_add_contact_and_be_invited_3174@localhost'>
*** User 2024-03-21 22:35:02.144 ***🔗
alicE_add_contact_and_be_invited_3174@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-21 22:35:02.144 ***🔗
alicE_add_contact_and_be_invited_3174@localhost/res1 out
<iq type='set' id='431b796a9fedd15552eb605b549c29e3'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 22:35:02.145 ***🔗
alicE_add_contact_and_be_invited_3174@localhost/res1 in
<iq id='431b796a9fedd15552eb605b549c29e3' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_contact_and_be_invited_3174@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-21 22:35:02.145 ***🔗
alice_add_contact_and_be_invited_3174@localhost/res1 out
<iq type='set' id='663146c0a8aa26c254aec5758458665a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 22:35:02.145 ***🔗
alice_add_contact_and_be_invited_3174@localhost/res1 in
<iq from='localhost' to='alice_add_contact_and_be_invited_3174@localhost/res1' id='663146c0a8aa26c254aec5758458665a' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 22:35:02.145 ***🔗
alice_add_contact_and_be_invited_3174@localhost/res1 out
<presence/>
*** User 2024-03-21 22:35:02.148 ***🔗
alice_add_contact_and_be_invited_3174@localhost/res1 in
<presence from='alice_add_contact_and_be_invited_3174@localhost/res1' to='alice_add_contact_and_be_invited_3174@localhost/res1'/>
*** User 2024-03-21 22:35:02.148 ***🔗
bOb_add_contact_and_be_invited_3174@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-21 22:35:02.149 ***🔗
bOb_add_contact_and_be_invited_3174@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='094cc0a179a72419' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 22:35:02.149 ***🔗
bOb_add_contact_and_be_invited_3174@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-21 22:35:02.149 ***🔗
bOb_add_contact_and_be_invited_3174@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfYmVfaW52aXRlZF8zMTc0AG1ha3JvbGlrYQ==</auth>
*** User 2024-03-21 22:35:02.150 ***🔗
bOb_add_contact_and_be_invited_3174@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 22:35:02.150 ***🔗
bOb_add_contact_and_be_invited_3174@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-21 22:35:02.150 ***🔗
bOb_add_contact_and_be_invited_3174@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='449afcecc019d057' from='localhost' version='1.0' xml:lang='en' to='bob_add_contact_and_be_invited_3174@localhost'>
*** User 2024-03-21 22:35:02.151 ***🔗
bOb_add_contact_and_be_invited_3174@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-21 22:35:02.151 ***🔗
bOb_add_contact_and_be_invited_3174@localhost/res1 out
<iq type='set' id='143751a74bbab6d9f12b5396d00a087d'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 22:35:02.151 ***🔗
bOb_add_contact_and_be_invited_3174@localhost/res1 in
<iq id='143751a74bbab6d9f12b5396d00a087d' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_contact_and_be_invited_3174@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-21 22:35:02.151 ***🔗
bob_add_contact_and_be_invited_3174@localhost/res1 out
<iq type='set' id='f76073e5d4cb3c29cbea6c5da60819eb'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 22:35:02.152 ***🔗
bob_add_contact_and_be_invited_3174@localhost/res1 in
<iq from='localhost' to='bob_add_contact_and_be_invited_3174@localhost/res1' id='f76073e5d4cb3c29cbea6c5da60819eb' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 22:35:02.152 ***🔗
bob_add_contact_and_be_invited_3174@localhost/res1 out
<presence/>
*** User 2024-03-21 22:35:02.154 ***🔗
bob_add_contact_and_be_invited_3174@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_3174@localhost/res1' to='bob_add_contact_and_be_invited_3174@localhost/res1'/>
*** User 2024-03-21 22:35:02.163 ***🔗
REST request:
Code: 200
Req: {<0.89906.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"744be583c7abd135">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMxNzRAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 22:35:01 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2872}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"bob_add_contact_and_be_invited_3174@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-21 22:35:02.188 ***🔗
REST request:
Code: 204
Req: {<0.89929.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8140c8e0641144bf">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMxNzRAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_add_contact_and_be_invited_3174@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 22:35:01 GMT">>}],
<<>>,80,6970}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"alice_add_contact_and_be_invited_3174@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_add_contact_and_be_invited_3174@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-21 22:35:02.188 ***🔗
bob_add_contact_and_be_invited_3174@localhost/res1 in
<iq from='bob_add_contact_and_be_invited_3174@localhost' to='bob_add_contact_and_be_invited_3174@localhost/res1' id='push1694bb9b22d7a6e9' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_contact_and_be_invited_3174@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-21 22:35:02.196 ***🔗
REST request:
Code: 200
Req: {<0.89970.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"497125fe0f9c6a18">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMxNzRAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 22:35:01 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_3174@localhost\"}]">>,
218,2836}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"bob_add_contact_and_be_invited_3174@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-21 22:35:02.197 ***🔗
alice_add_contact_and_be_invited_3174@localhost/res1 out
<iq type='set' id='f76556b568783987aeffc9f89d5a91ce'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_add_contact_and_be_invited_3174@localhost' name='Bobek'/>
</query>
</iq>
*** User 2024-03-21 22:35:02.199 ***🔗
alice_add_contact_and_be_invited_3174@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3174@localhost' to='alice_add_contact_and_be_invited_3174@localhost/res1' id='pushc1ff605d35281bc8' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobek' jid='bob_add_contact_and_be_invited_3174@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-21 22:35:02.200 ***🔗
alice_add_contact_and_be_invited_3174@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3174@localhost' to='alice_add_contact_and_be_invited_3174@localhost/res1' id='f76556b568783987aeffc9f89d5a91ce' type='result'/>
*** User 2024-03-21 22:35:02.200 ***🔗
alice_add_contact_and_be_invited_3174@localhost/res1 out
<presence type='subscribe' to='bob_add_contact_and_be_invited_3174@localhost'/>
*** User 2024-03-21 22:35:02.206 ***🔗
alice_add_contact_and_be_invited_3174@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3174@localhost' to='alice_add_contact_and_be_invited_3174@localhost/res1' id='push5344dfbb0996f847' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobek' ask='subscribe' jid='bob_add_contact_and_be_invited_3174@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-21 22:35:02.206 ***🔗
bob_add_contact_and_be_invited_3174@localhost/res1 in
<presence from='alice_add_contact_and_be_invited_3174@localhost' to='bob_add_contact_and_be_invited_3174@localhost/res1' type='subscribe'/>
*** User 2024-03-21 22:35:02.216 ***🔗
REST request:
Code: 200
Req: {<0.90030.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2c25119fcaf748dc">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMxNzRAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 22:35:01 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"92">>}],
<<"[{\"ask\":\"in\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_3174@localhost\"}]">>,
216,3768}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"bob_add_contact_and_be_invited_3174@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-21 22:35:02.281 ***🔗
REST request:
Code: 204
Req: {<0.90063.0>,
<<"/api/contacts/alice_add_contact_and_be_invited_3174@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"57860d97a5232649">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzMxNzRAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"action\":\"accept\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 22:35:01 GMT">>}],
<<>>,80,59696}
Params: #{path =>
<<"/api/contacts/alice_add_contact_and_be_invited_3174@localhost">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"accept\"}">>,method => <<"PUT">>,
creds =>
{<<"bob_add_contact_and_be_invited_3174@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-21 22:35:02.281 ***🔗
bob_add_contact_and_be_invited_3174@localhost/res1 in
<iq from='bob_add_contact_and_be_invited_3174@localhost' to='bob_add_contact_and_be_invited_3174@localhost/res1' id='push59e0ad8e19417805' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_contact_and_be_invited_3174@localhost' subscription='from'/>
</query>
</iq>
*** User 2024-03-21 22:35:02.281 ***🔗
alice_add_contact_and_be_invited_3174@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_3174@localhost/res1' to='alice_add_contact_and_be_invited_3174@localhost/res1'/>
*** User 2024-03-21 22:35:02.282 ***🔗
alice_add_contact_and_be_invited_3174@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3174@localhost' to='alice_add_contact_and_be_invited_3174@localhost/res1' id='push0ac4af7c52530e3f' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobek' jid='bob_add_contact_and_be_invited_3174@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-03-21 22:35:02.282 ***🔗
alice_add_contact_and_be_invited_3174@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_3174@localhost' to='alice_add_contact_and_be_invited_3174@localhost/res1' type='subscribed'/>
*** User 2024-03-21 22:35:02.282 ***🔗
bob_add_contact_and_be_invited_3174@localhost/res1 out
</stream:stream>
*** User 2024-03-21 22:35:02.282 ***🔗
bob_add_contact_and_be_invited_3174@localhost/res1 in
</stream:stream>
*** User 2024-03-21 22:35:02.283 ***🔗
alice_add_contact_and_be_invited_3174@localhost/res1 out
</stream:stream>
*** User 2024-03-21 22:35:02.283 ***🔗
alice_add_contact_and_be_invited_3174@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-21 22:35:02
=== successfully completed test case
=== === Returned value: ok