=== Test case: rest_client_SUITE:add_contact_and_invite/1 (click for source code)
=== Config value:
[{watchdog,<0.88296.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@38467046e2a2.2024-03-11_11.25.28/big_tests.tests.rest_client_SUITE.logs/run.2024-03-11_11.44.03/rest_client_suite.add_contact_and_invite.156803.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@38467046e2a2.2024-03-11_11.25.28/big_tests.tests.rest_client_SUITE.logs/run.2024-03-11_11.44.03/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_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_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_presence => #{},
mod_stream_management =>
#{buffer => true,ack => true,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
backend => mnesia,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_carboncopy => #{iqdisc => no_queue},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@38467046e2a2.2024-03-11_11.25.28"
=== Started at 2024-03-11 11:44:05
*** User 2024-03-11 11:44:05.423 ***🔗
alicE_add_contact_and_invite_3319@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 11:44:05.423 ***🔗
alicE_add_contact_and_invite_3319@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fc6939ed5f10f1c9' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-11 11:44:05.423 ***🔗
alicE_add_contact_and_invite_3319@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 11:44:05.423 ***🔗
alicE_add_contact_and_invite_3319@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMzMxOQBtYXR5Z3J5c2E=</auth>
*** User 2024-03-11 11:44:05.424 ***🔗
alicE_add_contact_and_invite_3319@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 11:44:05.424 ***🔗
alicE_add_contact_and_invite_3319@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 11:44:05.425 ***🔗
alicE_add_contact_and_invite_3319@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ae4c1b3e00f2c77c' from='localhost' version='1.0' xml:lang='en' to='alice_add_contact_and_invite_3319@localhost'>
*** User 2024-03-11 11:44:05.425 ***🔗
alicE_add_contact_and_invite_3319@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 11:44:05.425 ***🔗
alicE_add_contact_and_invite_3319@localhost/res1 out
<iq type='set' id='8c1dbb7a98d84664e3390a86cc21523b'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-11 11:44:05.425 ***🔗
alicE_add_contact_and_invite_3319@localhost/res1 in
<iq id='8c1dbb7a98d84664e3390a86cc21523b' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_contact_and_invite_3319@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-11 11:44:05.425 ***🔗
alice_add_contact_and_invite_3319@localhost/res1 out
<iq type='set' id='ce189e79164fefa661ddc2d1f5c2e4e1'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 11:44:05.426 ***🔗
alice_add_contact_and_invite_3319@localhost/res1 in
<iq from='localhost' to='alice_add_contact_and_invite_3319@localhost/res1' id='ce189e79164fefa661ddc2d1f5c2e4e1' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 11:44:05.426 ***🔗
alice_add_contact_and_invite_3319@localhost/res1 out
<presence/>
*** User 2024-03-11 11:44:05.427 ***🔗
alice_add_contact_and_invite_3319@localhost/res1 in
<presence from='alice_add_contact_and_invite_3319@localhost/res1' to='alice_add_contact_and_invite_3319@localhost/res1'/>
*** User 2024-03-11 11:44:05.428 ***🔗
bOb_add_contact_and_invite_3319@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 11:44:05.429 ***🔗
bOb_add_contact_and_invite_3319@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dbf169f28dc2b6e3' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-11 11:44:05.429 ***🔗
bOb_add_contact_and_invite_3319@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 11:44:05.429 ***🔗
bOb_add_contact_and_invite_3319@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfaW52aXRlXzMzMTkAbWFrcm9saWth</auth>
*** User 2024-03-11 11:44:05.431 ***🔗
bOb_add_contact_and_invite_3319@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 11:44:05.431 ***🔗
bOb_add_contact_and_invite_3319@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 11:44:05.432 ***🔗
bOb_add_contact_and_invite_3319@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3881f9c3be5668fb' from='localhost' version='1.0' xml:lang='en' to='bob_add_contact_and_invite_3319@localhost'>
*** User 2024-03-11 11:44:05.432 ***🔗
bOb_add_contact_and_invite_3319@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 11:44:05.432 ***🔗
bOb_add_contact_and_invite_3319@localhost/res1 out
<iq type='set' id='4fdf982532222b6384013ac1b7924b44'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-11 11:44:05.443 ***🔗
bOb_add_contact_and_invite_3319@localhost/res1 in
<iq id='4fdf982532222b6384013ac1b7924b44' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_contact_and_invite_3319@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-11 11:44:05.443 ***🔗
bob_add_contact_and_invite_3319@localhost/res1 out
<iq type='set' id='bc7a62a0ed07799ce5d34b7afa8c052f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 11:44:05.444 ***🔗
bob_add_contact_and_invite_3319@localhost/res1 in
<iq from='localhost' to='bob_add_contact_and_invite_3319@localhost/res1' id='bc7a62a0ed07799ce5d34b7afa8c052f' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 11:44:05.444 ***🔗
bob_add_contact_and_invite_3319@localhost/res1 out
<presence/>
*** User 2024-03-11 11:44:05.446 ***🔗
bob_add_contact_and_invite_3319@localhost/res1 in
<presence from='bob_add_contact_and_invite_3319@localhost/res1' to='bob_add_contact_and_invite_3319@localhost/res1'/>
*** User 2024-03-11 11:44:05.454 ***🔗
REST request:
Code: 200
Req: {<0.88365.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"62ed43c6b0eab1c0">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMzMxOUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:44:05 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,3302}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,
creds =>
{<<"bob_add_contact_and_invite_3319@localhost">>,
<<"makrolika">>},
role => client,method => <<"GET">>,return_headers => true}
*** User 2024-03-11 11:44:05.464 ***🔗
REST request:
Code: 204
Req: {<0.88397.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9951e11e15b7b2f5">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMzMxOUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_contact_and_invite_3319@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:44:05 GMT">>}],
<<>>,80,4958}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"alice_add_contact_and_invite_3319@localhost\"}">>,
creds =>
{<<"bob_add_contact_and_invite_3319@localhost">>,
<<"makrolika">>},
role => client,method => <<"POST">>,return_headers => true}
*** User 2024-03-11 11:44:05.464 ***🔗
bob_add_contact_and_invite_3319@localhost/res1 in
<iq from='bob_add_contact_and_invite_3319@localhost' to='bob_add_contact_and_invite_3319@localhost/res1' id='push1e47c159185b6040' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_contact_and_invite_3319@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-11 11:44:05.478 ***🔗
REST request:
Code: 200
Req: {<0.88433.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"eb829ba018104222">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMzMxOUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:44:05 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"90">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_invite_3319@localhost\"}]">>,
214,7355}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,
creds =>
{<<"bob_add_contact_and_invite_3319@localhost">>,
<<"makrolika">>},
role => client,method => <<"GET">>,return_headers => true}
*** User 2024-03-11 11:44:05.534 ***🔗
REST request:
Code: 204
Req: {<0.88481.0>,
<<"/api/contacts/alice_add_contact_and_invite_3319@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"480637d0923d840c">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMzMxOUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"action\":\"invite\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:44:05 GMT">>}],
<<>>,80,50369}
Params: #{path =>
<<"/api/contacts/alice_add_contact_and_invite_3319@localhost">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"invite\"}">>,
creds =>
{<<"bob_add_contact_and_invite_3319@localhost">>,
<<"makrolika">>},
role => client,method => <<"PUT">>,return_headers => true}
*** User 2024-03-11 11:44:05.534 ***🔗
bob_add_contact_and_invite_3319@localhost/res1 in
<iq from='bob_add_contact_and_invite_3319@localhost' to='bob_add_contact_and_invite_3319@localhost/res1' id='push44e49dd58697ffd9' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='alice_add_contact_and_invite_3319@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-11 11:44:05.534 ***🔗
Push2: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_add_contact_and_invite_3319@localhost">>},
{<<"to">>,<<"bob_add_contact_and_invite_3319@localhost/res1">>},
{<<"id">>,<<"push44e49dd58697ffd9">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"ask">>,<<"subscribe">>},
{<<"jid">>,
<<"alice_add_contact_and_invite_3319@localhost">>},
{<<"subscription">>,<<"none">>}],
[]}]}]}
*** User 2024-03-11 11:44:05.535 ***🔗
alice_add_contact_and_invite_3319@localhost/res1 in
<presence from='bob_add_contact_and_invite_3319@localhost' to='alice_add_contact_and_invite_3319@localhost/res1' type='subscribe'/>
*** User 2024-03-11 11:44:05.549 ***🔗
REST request:
Code: 200
Req: {<0.88520.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e1907a7a7943dfdb">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMzMxOUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:44:05 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_invite_3319@localhost\"}]">>,
213,3407}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,
creds =>
{<<"bob_add_contact_and_invite_3319@localhost">>,
<<"makrolika">>},
role => client,method => <<"GET">>,return_headers => true}
*** User 2024-03-11 11:44:05.549 ***🔗
alice_add_contact_and_invite_3319@localhost/res1 out
<iq type='set' id='206bbda8b3e2332d89e7af917ce2e170'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_add_contact_and_invite_3319@localhost' name='Bob'/>
</query>
</iq>
*** User 2024-03-11 11:44:05.552 ***🔗
alice_add_contact_and_invite_3319@localhost/res1 in
<iq from='alice_add_contact_and_invite_3319@localhost' to='alice_add_contact_and_invite_3319@localhost/res1' id='pushd7cc60228c0d4e80' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bob' jid='bob_add_contact_and_invite_3319@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-11 11:44:05.552 ***🔗
alice_add_contact_and_invite_3319@localhost/res1 out
<iq to='alice_add_contact_and_invite_3319@localhost' id='pushd7cc60228c0d4e80' type='result'/>
*** User 2024-03-11 11:44:05.553 ***🔗
alice_add_contact_and_invite_3319@localhost/res1 in
<iq from='alice_add_contact_and_invite_3319@localhost' to='alice_add_contact_and_invite_3319@localhost/res1' id='206bbda8b3e2332d89e7af917ce2e170' type='result'/>
*** User 2024-03-11 11:44:05.553 ***🔗
alice_add_contact_and_invite_3319@localhost/res1 out
<presence type='subscribed' to='bob_add_contact_and_invite_3319@localhost'/>
*** User 2024-03-11 11:44:05.557 ***🔗
bob_add_contact_and_invite_3319@localhost/res1 in
<iq from='bob_add_contact_and_invite_3319@localhost' to='bob_add_contact_and_invite_3319@localhost/res1' id='push6298a2223783f78f' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_contact_and_invite_3319@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-03-11 11:44:05.557 ***🔗
Push3 {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_add_contact_and_invite_3319@localhost">>},
{<<"to">>,<<"bob_add_contact_and_invite_3319@localhost/res1">>},
{<<"id">>,<<"push6298a2223783f78f">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"jid">>,
<<"alice_add_contact_and_invite_3319@localhost">>},
{<<"subscription">>,<<"to">>}],
[]}]}]}
*** User 2024-03-11 11:44:05.566 ***🔗
REST request:
Code: 200
Req: {<0.88562.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ebe4f07c608afaab">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMzMxOUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:44:05 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"88">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"alice_add_contact_and_invite_3319@localhost\"}]">>,
212,3576}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,
creds =>
{<<"bob_add_contact_and_invite_3319@localhost">>,
<<"makrolika">>},
role => client,method => <<"GET">>,return_headers => true}
*** User 2024-03-11 11:44:05.566 ***🔗
bob_add_contact_and_invite_3319@localhost/res1 out
</stream:stream>
*** User 2024-03-11 11:44:05.566 ***🔗
bob_add_contact_and_invite_3319@localhost/res1 in
</stream:stream>
*** User 2024-03-11 11:44:05.566 ***🔗
alice_add_contact_and_invite_3319@localhost/res1 out
</stream:stream>
*** User 2024-03-11 11:44:05.566 ***🔗
alice_add_contact_and_invite_3319@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-11 11:44:05
=== successfully completed test case
=== === Returned value: ok