=== Test case: rest_client_SUITE:add_contact_and_invite/1 (click for source code)
=== Config value:
[{watchdog,<0.21454.1>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,riak},
{archive_wait,2500},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
{preset,"riak_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@22b4515d438b.2022-04-05_07.43.19/big_tests.tests.rest_client_SUITE.logs/run.2022-04-05_07.57.09/rest_client_suite.add_contact_and_invite.57347.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@22b4515d438b.2022-04-05_07.43.19/big_tests.tests.rest_client_SUITE.logs/run.2022-04-05_07.57.09/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_amp => [],
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{number_of_segments => 5,strategy => fifo,time_to_live => 2},
mod_carboncopy => [],mod_commands => [],
mod_disco =>
#{extra_domains => [],iqdisc => one_queue,server_info => [],
users_can_see_hidden_services => false},
mod_muc_commands => [],mod_muc_light_commands => [],
mod_register =>
[{access,register},
{ip_access,[{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
{welcome_message,{[],[]}}],
mod_roster =>
#{backend => riak,iqdisc => one_queue,
riak =>
#{bucket_type => <<"rosters">>,
version_bucket_type => <<"roster_versions">>},
store_current_id => false,versioning => false},
mod_sic => #{iqdisc => one_queue},
mod_stream_management =>
#{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
buffer_max => 100,resume_timeout => 600,
stale_h =>
#{enabled => false,geriatric => 3600,repeat_after => 1800}},
mod_vcard =>
#{backend => riak,
host => {prefix,<<"vjud.">>},
iqdisc => parallel,matches => 30,
riak =>
#{bucket_type => <<"vcard">>,search_index => <<"vcard">>},
search => true}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@22b4515d438b.2022-04-05_07.43.19"
=== Started at 2022-04-05 07:57:31
*** User 2022-04-05 07:57:31.947 ***
alicE_add_contact_and_invite_1646@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-04-05 07:57:31.948 ***
alicE_add_contact_and_invite_1646@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1ce188eed4904463' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-05 07:57:31.949 ***
alicE_add_contact_and_invite_1646@localhost/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-04-05 07:57:31.949 ***
alicE_add_contact_and_invite_1646@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTY0NgBtYXR5Z3J5c2E=</auth>
*** User 2022-04-05 07:57:31.951 ***
alicE_add_contact_and_invite_1646@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-04-05 07:57:31.951 ***
alicE_add_contact_and_invite_1646@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-04-05 07:57:31.951 ***
alicE_add_contact_and_invite_1646@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0f8b53819c5b7821' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-05 07:57:31.951 ***
alicE_add_contact_and_invite_1646@localhost/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-04-05 07:57:31.951 ***
alicE_add_contact_and_invite_1646@localhost/res1 out
<iq type='set' id='14cc6049d92aae88b3a2cdc597d4cf9a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-04-05 07:57:31.952 ***
alicE_add_contact_and_invite_1646@localhost/res1 in
<iq id='14cc6049d92aae88b3a2cdc597d4cf9a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_add_contact_and_invite_1646@localhost/res1</jid>
</bind>
</iq>
*** User 2022-04-05 07:57:31.952 ***
alicE_add_contact_and_invite_1646@localhost/res1 out
<iq type='set' id='dc8747f0511894d395d16e47727ade42'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-05 07:57:31.952 ***
alicE_add_contact_and_invite_1646@localhost/res1 in
<iq type='result' id='dc8747f0511894d395d16e47727ade42'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-05 07:57:31.952 ***
alicE_add_contact_and_invite_1646@localhost/res1 out
<presence/>
*** User 2022-04-05 07:57:31.967 ***
alicE_add_contact_and_invite_1646@localhost/res1 in
<presence from='alicE_add_contact_and_invite_1646@localhost/res1' to='alice_add_contact_and_invite_1646@localhost/res1' xml:lang='en'/>
*** User 2022-04-05 07:57:31.968 ***
bOb_add_contact_and_invite_1646@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-04-05 07:57:31.968 ***
bOb_add_contact_and_invite_1646@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a24c50073155b9e2' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-05 07:57:31.968 ***
bOb_add_contact_and_invite_1646@localhost/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-04-05 07:57:31.968 ***
bOb_add_contact_and_invite_1646@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfaW52aXRlXzE2NDYAbWFrcm9saWth</auth>
*** User 2022-04-05 07:57:31.971 ***
bOb_add_contact_and_invite_1646@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-04-05 07:57:31.971 ***
bOb_add_contact_and_invite_1646@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-04-05 07:57:31.972 ***
bOb_add_contact_and_invite_1646@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2090c7bbd8528ee3' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-05 07:57:31.972 ***
bOb_add_contact_and_invite_1646@localhost/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-04-05 07:57:31.972 ***
bOb_add_contact_and_invite_1646@localhost/res1 out
<iq type='set' id='c6de6e456f1d1895f0ab221f60e8bd66'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-04-05 07:57:31.973 ***
bOb_add_contact_and_invite_1646@localhost/res1 in
<iq id='c6de6e456f1d1895f0ab221f60e8bd66' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_add_contact_and_invite_1646@localhost/res1</jid>
</bind>
</iq>
*** User 2022-04-05 07:57:31.974 ***
bOb_add_contact_and_invite_1646@localhost/res1 out
<iq type='set' id='3db1a8ebd943f5913783b4d91a571234'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-05 07:57:31.978 ***
bOb_add_contact_and_invite_1646@localhost/res1 in
<iq type='result' id='3db1a8ebd943f5913783b4d91a571234'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-05 07:57:31.979 ***
bOb_add_contact_and_invite_1646@localhost/res1 out
<presence/>
*** User 2022-04-05 07:57:31.984 ***
bOb_add_contact_and_invite_1646@localhost/res1 in
<presence from='bOb_add_contact_and_invite_1646@localhost/res1' to='bob_add_contact_and_invite_1646@localhost/res1' xml:lang='en'/>
*** User 2022-04-05 07:57:32.009 ***
REST request:
Code: 200
Req: {<0.21531.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3863714d75e3d994">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTY0NkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 05 Apr 2022 07:57:31 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,11237}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_invite_1646@localhost">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-04-05 07:57:32.119 ***
REST request:
Code: 204
Req: {<0.21550.1>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d919810044209b6d">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTY0NkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_contact_and_invite_1646@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 05 Apr 2022 07:57:31 GMT">>}],
<<>>,80,38047}
Params: #{body =>
<<"{\"jid\":\"alice_add_contact_and_invite_1646@localhost\"}">>,
creds =>
{<<"bob_add_contact_and_invite_1646@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-04-05 07:57:32.119 ***
bOb_add_contact_and_invite_1646@localhost/res1 in
<iq from='bob_add_contact_and_invite_1646@localhost' to='bob_add_contact_and_invite_1646@localhost/res1' id='push1af7ecb565d43aef' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_contact_and_invite_1646@localhost'/>
</query>
</iq>
*** User 2022-04-05 07:57:32.187 ***
REST request:
Code: 200
Req: {<0.21573.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"14104eaf801556db">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTY0NkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 05 Apr 2022 07:57:31 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"90">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_invite_1646@localhost\",\"ask\":\"none\"}]">>,
214,18775}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_invite_1646@localhost">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-04-05 07:57:32.286 ***
REST request:
Code: 204
Req: {<0.21602.1>,
<<"/api/contacts/alice_add_contact_and_invite_1646@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2b09a71cdd38f040">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTY0NkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"action\":\"invite\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 05 Apr 2022 07:57:32 GMT">>}],
<<>>,80,84360}
Params: #{body => <<"{\"action\":\"invite\"}">>,
creds =>
{<<"bob_add_contact_and_invite_1646@localhost">>,
<<"makrolika">>},
method => <<"PUT">>,
path =>
<<"/api/contacts/alice_add_contact_and_invite_1646@localhost">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-04-05 07:57:32.286 ***
bOb_add_contact_and_invite_1646@localhost/res1 in
<iq from='bob_add_contact_and_invite_1646@localhost' to='bob_add_contact_and_invite_1646@localhost/res1' id='push279a93f4faf7b5e4' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='alice_add_contact_and_invite_1646@localhost'/>
</query>
</iq>
*** User 2022-04-05 07:57:32.286 ***
Push2: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_add_contact_and_invite_1646@localhost">>},
{<<"to">>,<<"bob_add_contact_and_invite_1646@localhost/res1">>},
{<<"id">>,<<"push279a93f4faf7b5e4">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"ask">>,<<"subscribe">>},
{<<"subscription">>,<<"none">>},
{<<"jid">>,
<<"alice_add_contact_and_invite_1646@localhost">>}],
[]}]}]}
*** User 2022-04-05 07:57:32.287 ***
alicE_add_contact_and_invite_1646@localhost/res1 in
<presence from='bob_add_contact_and_invite_1646@localhost' to='alice_add_contact_and_invite_1646@localhost/res1' type='subscribe'/>
*** User 2022-04-05 07:57:32.362 ***
REST request:
Code: 200
Req: {<0.21639.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1107a71bd884fc16">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTY0NkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 05 Apr 2022 07:57:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_invite_1646@localhost\",\"ask\":\"out\"}]">>,
213,63761}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_invite_1646@localhost">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-04-05 07:57:32.362 ***
alicE_add_contact_and_invite_1646@localhost/res1 out
<iq type='set' id='4a6767e13788564e68682472c41e63df'>
<query xmlns='jabber:iq:roster'>
<item jid='bOb_add_contact_and_invite_1646@localhost' name='Bob'/>
</query>
</iq>
*** User 2022-04-05 07:57:32.374 ***
alicE_add_contact_and_invite_1646@localhost/res1 in
<iq from='alicE_add_contact_and_invite_1646@localhost' to='alicE_add_contact_and_invite_1646@localhost/res1' id='push21d6f5d3ed510fcc' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bob' jid='bob_add_contact_and_invite_1646@localhost'/>
</query>
</iq>
*** User 2022-04-05 07:57:32.374 ***
alicE_add_contact_and_invite_1646@localhost/res1 out
<iq to='alicE_add_contact_and_invite_1646@localhost' id='push21d6f5d3ed510fcc' type='result'/>
*** User 2022-04-05 07:57:32.374 ***
alicE_add_contact_and_invite_1646@localhost/res1 in
<iq from='alicE_add_contact_and_invite_1646@localhost' to='alicE_add_contact_and_invite_1646@localhost/res1' id='4a6767e13788564e68682472c41e63df' type='result'/>
*** User 2022-04-05 07:57:32.374 ***
alicE_add_contact_and_invite_1646@localhost/res1 out
<presence type='subscribed' to='bOb_add_contact_and_invite_1646@localhost'/>
*** User 2022-04-05 07:57:32.408 ***
bOb_add_contact_and_invite_1646@localhost/res1 in
<iq from='bOb_add_contact_and_invite_1646@localhost' to='bOb_add_contact_and_invite_1646@localhost/res1' id='push3400cb4be7700f13' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='alice_add_contact_and_invite_1646@localhost'/>
</query>
</iq>
*** User 2022-04-05 07:57:32.408 ***
Push3 {xmlel,<<"iq">>,
[{<<"from">>,<<"bOb_add_contact_and_invite_1646@localhost">>},
{<<"to">>,<<"bOb_add_contact_and_invite_1646@localhost/res1">>},
{<<"id">>,<<"push3400cb4be7700f13">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"to">>},
{<<"jid">>,
<<"alice_add_contact_and_invite_1646@localhost">>}],
[]}]}]}
*** User 2022-04-05 07:57:32.466 ***
REST request:
Code: 200
Req: {<0.21672.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"dbabe3f57273bc88">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTY0NkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 05 Apr 2022 07:57:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"88">>}],
<<"[{\"subscription\":\"to\",\"jid\":\"alice_add_contact_and_invite_1646@localhost\",\"ask\":\"none\"}]">>,
212,38880}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_invite_1646@localhost">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-04-05 07:57:32.467 ***
bOb_add_contact_and_invite_1646@localhost/res1 out
</stream:stream>
*** User 2022-04-05 07:57:32.467 ***
bOb_add_contact_and_invite_1646@localhost/res1 in
</stream:stream>
*** User 2022-04-05 07:57:32.467 ***
alicE_add_contact_and_invite_1646@localhost/res1 out
</stream:stream>
*** User 2022-04-05 07:57:32.468 ***
alicE_add_contact_and_invite_1646@localhost/res1 in
</stream:stream>
=== Ended at 2022-04-05 07:57:32
=== successfully completed test case
=== === Returned value: ok