=== Test case: rest_client_SUITE:add_contact_and_be_invited/1 (click for source code)
=== Config value:
[{watchdog,<0.89185.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@944609fad30e.2024-03-21_07.35.17/big_tests.tests.rest_client_SUITE.logs/run.2024-03-21_07.53.01/rest_client_suite.add_contact_and_be_invited.120708.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@944609fad30e.2024-03-21_07.35.17/big_tests.tests.rest_client_SUITE.logs/run.2024-03-21_07.53.01/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,
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_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_carboncopy => #{iqdisc => no_queue}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@944609fad30e.2024-03-21_07.35.17"
=== Started at 2024-03-21 07:53:03
*** User 2024-03-21 07:53:03.367 ***🔗
alicE_add_contact_and_be_invited_3473@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 07:53:03.367 ***🔗
alicE_add_contact_and_be_invited_3473@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bf6c690754694bb9' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 07:53:03.367 ***🔗
alicE_add_contact_and_be_invited_3473@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 07:53:03.367 ***🔗
alicE_add_contact_and_be_invited_3473@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzM0NzMAbWF0eWdyeXNh</auth>
*** User 2024-03-21 07:53:03.369 ***🔗
alicE_add_contact_and_be_invited_3473@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 07:53:03.370 ***🔗
alicE_add_contact_and_be_invited_3473@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 07:53:03.370 ***🔗
alicE_add_contact_and_be_invited_3473@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='75be879608616eed' from='localhost' version='1.0' xml:lang='en' to='alice_add_contact_and_be_invited_3473@localhost'>
*** User 2024-03-21 07:53:03.370 ***🔗
alicE_add_contact_and_be_invited_3473@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 07:53:03.370 ***🔗
alicE_add_contact_and_be_invited_3473@localhost/res1 out
<iq type='set' id='04071e9496a29c962cb9674f939a5b6a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 07:53:03.370 ***🔗
alicE_add_contact_and_be_invited_3473@localhost/res1 in
<iq id='04071e9496a29c962cb9674f939a5b6a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_contact_and_be_invited_3473@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-21 07:53:03.371 ***🔗
alice_add_contact_and_be_invited_3473@localhost/res1 out
<iq type='set' id='c02406fe7419b49cad513cf958fca97c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:53:03.371 ***🔗
alice_add_contact_and_be_invited_3473@localhost/res1 in
<iq from='localhost' to='alice_add_contact_and_be_invited_3473@localhost/res1' id='c02406fe7419b49cad513cf958fca97c' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:53:03.371 ***🔗
alice_add_contact_and_be_invited_3473@localhost/res1 out
<presence/>
*** User 2024-03-21 07:53:03.373 ***🔗
alice_add_contact_and_be_invited_3473@localhost/res1 in
<presence from='alice_add_contact_and_be_invited_3473@localhost/res1' to='alice_add_contact_and_be_invited_3473@localhost/res1'/>
*** User 2024-03-21 07:53:03.374 ***🔗
bOb_add_contact_and_be_invited_3473@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 07:53:03.374 ***🔗
bOb_add_contact_and_be_invited_3473@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='33f21c0a86629f82' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 07:53:03.374 ***🔗
bOb_add_contact_and_be_invited_3473@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 07:53:03.375 ***🔗
bOb_add_contact_and_be_invited_3473@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfYmVfaW52aXRlZF8zNDczAG1ha3JvbGlrYQ==</auth>
*** User 2024-03-21 07:53:03.376 ***🔗
bOb_add_contact_and_be_invited_3473@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 07:53:03.376 ***🔗
bOb_add_contact_and_be_invited_3473@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 07:53:03.376 ***🔗
bOb_add_contact_and_be_invited_3473@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='567c6c8e48ae6793' from='localhost' version='1.0' xml:lang='en' to='bob_add_contact_and_be_invited_3473@localhost'>
*** User 2024-03-21 07:53:03.376 ***🔗
bOb_add_contact_and_be_invited_3473@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 07:53:03.376 ***🔗
bOb_add_contact_and_be_invited_3473@localhost/res1 out
<iq type='set' id='605293b4dd91ad78f20f5dd6b68aa0e6'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 07:53:03.377 ***🔗
bOb_add_contact_and_be_invited_3473@localhost/res1 in
<iq id='605293b4dd91ad78f20f5dd6b68aa0e6' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_contact_and_be_invited_3473@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-21 07:53:03.377 ***🔗
bob_add_contact_and_be_invited_3473@localhost/res1 out
<iq type='set' id='979c0af729a706290a84fb35ccedf4fb'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:53:03.377 ***🔗
bob_add_contact_and_be_invited_3473@localhost/res1 in
<iq from='localhost' to='bob_add_contact_and_be_invited_3473@localhost/res1' id='979c0af729a706290a84fb35ccedf4fb' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:53:03.378 ***🔗
bob_add_contact_and_be_invited_3473@localhost/res1 out
<presence/>
*** User 2024-03-21 07:53:03.380 ***🔗
bob_add_contact_and_be_invited_3473@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_3473@localhost/res1' to='bob_add_contact_and_be_invited_3473@localhost/res1'/>
*** User 2024-03-21 07:53:03.389 ***🔗
REST request:
Code: 200
Req: {<0.89270.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"99c1e6e13cd1a0a2">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzM0NzNAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:53:02 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,4574}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"bob_add_contact_and_be_invited_3473@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-21 07:53:03.439 ***🔗
REST request:
Code: 204
Req: {<0.89297.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"633ef28da821ba4f">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzM0NzNAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_add_contact_and_be_invited_3473@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:53:03 GMT">>}],
<<>>,80,43754}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"alice_add_contact_and_be_invited_3473@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_add_contact_and_be_invited_3473@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-21 07:53:03.439 ***🔗
bob_add_contact_and_be_invited_3473@localhost/res1 in
<iq from='bob_add_contact_and_be_invited_3473@localhost' to='bob_add_contact_and_be_invited_3473@localhost/res1' id='push1e97ea08d320fced' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_contact_and_be_invited_3473@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-21 07:53:03.449 ***🔗
REST request:
Code: 200
Req: {<0.89334.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"142113260c1729af">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzM0NzNAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:53:03 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_3473@localhost\"}]">>,
218,3658}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"bob_add_contact_and_be_invited_3473@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-21 07:53:03.450 ***🔗
alice_add_contact_and_be_invited_3473@localhost/res1 out
<iq type='set' id='b42e92493309d33be944483586341780'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_add_contact_and_be_invited_3473@localhost' name='Bobek'/>
</query>
</iq>
*** User 2024-03-21 07:53:03.453 ***🔗
alice_add_contact_and_be_invited_3473@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3473@localhost' to='alice_add_contact_and_be_invited_3473@localhost/res1' id='pushdc041a89847c26c5' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobek' jid='bob_add_contact_and_be_invited_3473@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-21 07:53:03.453 ***🔗
alice_add_contact_and_be_invited_3473@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3473@localhost' to='alice_add_contact_and_be_invited_3473@localhost/res1' id='b42e92493309d33be944483586341780' type='result'/>
*** User 2024-03-21 07:53:03.453 ***🔗
alice_add_contact_and_be_invited_3473@localhost/res1 out
<presence type='subscribe' to='bob_add_contact_and_be_invited_3473@localhost'/>
*** User 2024-03-21 07:53:03.460 ***🔗
alice_add_contact_and_be_invited_3473@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3473@localhost' to='alice_add_contact_and_be_invited_3473@localhost/res1' id='push7059346a4610416d' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobek' ask='subscribe' jid='bob_add_contact_and_be_invited_3473@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-21 07:53:03.460 ***🔗
bob_add_contact_and_be_invited_3473@localhost/res1 in
<presence from='alice_add_contact_and_be_invited_3473@localhost' to='bob_add_contact_and_be_invited_3473@localhost/res1' type='subscribe'/>
*** User 2024-03-21 07:53:03.470 ***🔗
REST request:
Code: 200
Req: {<0.89384.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4afd84c28a475448">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzM0NzNAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:53:03 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"92">>}],
<<"[{\"ask\":\"in\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_3473@localhost\"}]">>,
216,3417}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"bob_add_contact_and_be_invited_3473@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-21 07:53:03.484 ***🔗
REST request:
Code: 204
Req: {<0.89415.0>,
<<"/api/contacts/alice_add_contact_and_be_invited_3473@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"96b5c0cefaab641b">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzM0NzNAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"action\":\"accept\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:53:03 GMT">>}],
<<>>,80,9202}
Params: #{path =>
<<"/api/contacts/alice_add_contact_and_be_invited_3473@localhost">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"accept\"}">>,method => <<"PUT">>,
creds =>
{<<"bob_add_contact_and_be_invited_3473@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-21 07:53:03.484 ***🔗
bob_add_contact_and_be_invited_3473@localhost/res1 in
<iq from='bob_add_contact_and_be_invited_3473@localhost' to='bob_add_contact_and_be_invited_3473@localhost/res1' id='push3a51657a7c9fc342' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_contact_and_be_invited_3473@localhost' subscription='from'/>
</query>
</iq>
*** User 2024-03-21 07:53:03.484 ***🔗
alice_add_contact_and_be_invited_3473@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_3473@localhost/res1' to='alice_add_contact_and_be_invited_3473@localhost/res1'/>
*** User 2024-03-21 07:53:03.484 ***🔗
alice_add_contact_and_be_invited_3473@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3473@localhost' to='alice_add_contact_and_be_invited_3473@localhost/res1' id='push59df99cc4d5cb7b5' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobek' jid='bob_add_contact_and_be_invited_3473@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-03-21 07:53:03.484 ***🔗
alice_add_contact_and_be_invited_3473@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_3473@localhost' to='alice_add_contact_and_be_invited_3473@localhost/res1' type='subscribed'/>
*** User 2024-03-21 07:53:03.485 ***🔗
bob_add_contact_and_be_invited_3473@localhost/res1 out
</stream:stream>
*** User 2024-03-21 07:53:03.485 ***🔗
bob_add_contact_and_be_invited_3473@localhost/res1 in
</stream:stream>
*** User 2024-03-21 07:53:03.485 ***🔗
alice_add_contact_and_be_invited_3473@localhost/res1 out
</stream:stream>
*** User 2024-03-21 07:53:03.485 ***🔗
alice_add_contact_and_be_invited_3473@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-21 07:53:03
=== successfully completed test case
=== === Returned value: ok