=== Test case: rest_client_SUITE:add_contact_and_invite/1 (click for source code)
=== Config value:
[{watchdog,<0.27651.1>},
{muc_light_host,<<"muclight2.domain.example.com">>},
{mam_backend,rdbms},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
{preset,"pgsql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@7a520fcf4274.2022-02-02_15.07.36/big_tests.tests.rest_client_SUITE.logs/run.2022-02-02_15.15.09/rest_client_suite.add_contact_and_invite.137858.html"},
{tc_group_properties,[{name,roster},{repeat_until_all_ok,3},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@7a520fcf4274.2022-02-02_15.07.36/big_tests.tests.rest_client_SUITE.logs/run.2022-02-02_15.15.09/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{mod_adhoc => [],mod_amp => [],mod_bosh => [],
mod_cache_users => [{number_of_segments,5},{time_to_live,2}],
mod_carboncopy => [],mod_commands => [],
mod_disco => [{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,rdbms}],
mod_sic => [],mod_stream_management => [],
mod_vcard => [{backend,rdbms},{host,{prefix,<<"vjud.">>}}]}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@7a520fcf4274.2022-02-02_15.07.36"
=== Started at 2022-02-02 15:15:11
*** User 2022-02-02 15:15:11.765 ***
alicE_add_contact_and_invite_1644@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-02-02 15:15:11.765 ***
alicE_add_contact_and_invite_1644@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1710cd6aecbd4dd1' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:15:11.765 ***
alicE_add_contact_and_invite_1644@domain.example.com/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-02-02 15:15:11.765 ***
alicE_add_contact_and_invite_1644@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTY0NABtYXR5Z3J5c2E=</auth>
*** User 2022-02-02 15:15:11.766 ***
alicE_add_contact_and_invite_1644@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-02-02 15:15:11.766 ***
alicE_add_contact_and_invite_1644@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-02-02 15:15:11.767 ***
alicE_add_contact_and_invite_1644@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2db01a814e9c8bef' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:15:11.767 ***
alicE_add_contact_and_invite_1644@domain.example.com/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-02-02 15:15:11.767 ***
alicE_add_contact_and_invite_1644@domain.example.com/res1 out
<iq type='set' id='32562fac822cc3b301d9415812150750'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-02-02 15:15:11.767 ***
alicE_add_contact_and_invite_1644@domain.example.com/res1 in
<iq id='32562fac822cc3b301d9415812150750' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_add_contact_and_invite_1644@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-02-02 15:15:11.767 ***
alicE_add_contact_and_invite_1644@domain.example.com/res1 out
<iq type='set' id='25058d14675c202aa2b04b2b84024468'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:15:11.767 ***
alicE_add_contact_and_invite_1644@domain.example.com/res1 in
<iq type='result' id='25058d14675c202aa2b04b2b84024468'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:15:11.768 ***
alicE_add_contact_and_invite_1644@domain.example.com/res1 out
<presence/>
*** User 2022-02-02 15:15:11.769 ***
alicE_add_contact_and_invite_1644@domain.example.com/res1 in
<presence from='alicE_add_contact_and_invite_1644@domain.example.com/res1' to='alice_add_contact_and_invite_1644@domain.example.com/res1' xml:lang='en'/>
*** User 2022-02-02 15:15:11.769 ***
bOb_add_contact_and_invite_1644@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-02-02 15:15:11.770 ***
bOb_add_contact_and_invite_1644@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='eb1d39741dac680e' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:15:11.770 ***
bOb_add_contact_and_invite_1644@domain.example.com/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-02-02 15:15:11.770 ***
bOb_add_contact_and_invite_1644@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfaW52aXRlXzE2NDQAbWFrcm9saWth</auth>
*** User 2022-02-02 15:15:11.771 ***
bOb_add_contact_and_invite_1644@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-02-02 15:15:11.771 ***
bOb_add_contact_and_invite_1644@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-02-02 15:15:11.771 ***
bOb_add_contact_and_invite_1644@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='39861e05e0df8041' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:15:11.771 ***
bOb_add_contact_and_invite_1644@domain.example.com/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-02-02 15:15:11.772 ***
bOb_add_contact_and_invite_1644@domain.example.com/res1 out
<iq type='set' id='c656ba25bb127c0940da9fdca70aa36e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-02-02 15:15:11.772 ***
bOb_add_contact_and_invite_1644@domain.example.com/res1 in
<iq id='c656ba25bb127c0940da9fdca70aa36e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_add_contact_and_invite_1644@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-02-02 15:15:11.772 ***
bOb_add_contact_and_invite_1644@domain.example.com/res1 out
<iq type='set' id='00440f77d977731c4974edc239175569'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:15:11.772 ***
bOb_add_contact_and_invite_1644@domain.example.com/res1 in
<iq type='result' id='00440f77d977731c4974edc239175569'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:15:11.772 ***
bOb_add_contact_and_invite_1644@domain.example.com/res1 out
<presence/>
*** User 2022-02-02 15:15:11.774 ***
bOb_add_contact_and_invite_1644@domain.example.com/res1 in
<presence from='bOb_add_contact_and_invite_1644@domain.example.com/res1' to='bob_add_contact_and_invite_1644@domain.example.com/res1' xml:lang='en'/>
*** User 2022-02-02 15:15:11.784 ***
REST request:
Code: 200
Req: {<0.27730.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9dd2b80783020556">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTY0NEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:15:11 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1523}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_invite_1644@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:15:11.794 ***
REST request:
Code: 204
Req: {<0.27755.1>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bfc8aebaff0b9018">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTY0NEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_contact_and_invite_1644@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:15:11 GMT">>}],
<<>>,80,2284}
Params: #{body =>
<<"{\"jid\":\"alice_add_contact_and_invite_1644@domain.example.com\"}">>,
creds =>
{<<"bob_add_contact_and_invite_1644@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:15:11.794 ***
bOb_add_contact_and_invite_1644@domain.example.com/res1 in
<iq from='bob_add_contact_and_invite_1644@domain.example.com' to='bob_add_contact_and_invite_1644@domain.example.com/res1' id='pushafdfa626cfd5c150' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_contact_and_invite_1644@domain.example.com'/>
</query>
</iq>
*** User 2022-02-02 15:15:11.805 ***
REST request:
Code: 200
Req: {<0.27782.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"14f6d8dbba975fa7">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTY0NEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:15:11 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"99">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_invite_1644@domain.example.com\",\"ask\":\"none\"}]">>,
223,2660}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_invite_1644@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:15:11.864 ***
REST request:
Code: 204
Req: {<0.27816.1>,
<<"/api/contacts/alice_add_contact_and_invite_1644@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f51dc4a06ba7f6d0">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTY0NEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"action\":\"invite\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:15:11 GMT">>}],
<<>>,80,51519}
Params: #{body => <<"{\"action\":\"invite\"}">>,
creds =>
{<<"bob_add_contact_and_invite_1644@domain.example.com">>,
<<"makrolika">>},
method => <<"PUT">>,
path =>
<<"/api/contacts/alice_add_contact_and_invite_1644@domain.example.com">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:15:11.864 ***
bOb_add_contact_and_invite_1644@domain.example.com/res1 in
<iq from='bob_add_contact_and_invite_1644@domain.example.com' to='bob_add_contact_and_invite_1644@domain.example.com/res1' id='push536a389b0e1f4ee0' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='alice_add_contact_and_invite_1644@domain.example.com'/>
</query>
</iq>
*** User 2022-02-02 15:15:11.864 ***
Push2: {xmlel,<<"iq">>,
[{<<"from">>,
<<"bob_add_contact_and_invite_1644@domain.example.com">>},
{<<"to">>,
<<"bob_add_contact_and_invite_1644@domain.example.com/res1">>},
{<<"id">>,<<"push536a389b0e1f4ee0">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"ask">>,<<"subscribe">>},
{<<"subscription">>,<<"none">>},
{<<"jid">>,
<<"alice_add_contact_and_invite_1644@domain.example.com">>}],
[]}]}]}
*** User 2022-02-02 15:15:11.864 ***
alicE_add_contact_and_invite_1644@domain.example.com/res1 in
<presence from='bob_add_contact_and_invite_1644@domain.example.com' to='alice_add_contact_and_invite_1644@domain.example.com/res1' type='subscribe'/>
*** User 2022-02-02 15:15:11.876 ***
REST request:
Code: 200
Req: {<0.27865.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4f63a4475c98ef47">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTY0NEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:15:11 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_invite_1644@domain.example.com\",\"ask\":\"out\"}]">>,
222,1387}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_invite_1644@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:15:11.876 ***
alicE_add_contact_and_invite_1644@domain.example.com/res1 out
<iq type='set' id='08d98515b88e23bef6705d5ab6407d27'>
<query xmlns='jabber:iq:roster'>
<item jid='bOb_add_contact_and_invite_1644@domain.example.com' name='Bob'/>
</query>
</iq>
*** User 2022-02-02 15:15:11.878 ***
alicE_add_contact_and_invite_1644@domain.example.com/res1 in
<iq from='alicE_add_contact_and_invite_1644@domain.example.com' to='alicE_add_contact_and_invite_1644@domain.example.com/res1' id='pushb868ac5724d6f439' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bob' jid='bob_add_contact_and_invite_1644@domain.example.com'/>
</query>
</iq>
*** User 2022-02-02 15:15:11.878 ***
alicE_add_contact_and_invite_1644@domain.example.com/res1 out
<iq to='alicE_add_contact_and_invite_1644@domain.example.com' id='pushb868ac5724d6f439' type='result'/>
*** User 2022-02-02 15:15:11.878 ***
alicE_add_contact_and_invite_1644@domain.example.com/res1 in
<iq from='alicE_add_contact_and_invite_1644@domain.example.com' to='alicE_add_contact_and_invite_1644@domain.example.com/res1' id='08d98515b88e23bef6705d5ab6407d27' type='result'/>
*** User 2022-02-02 15:15:11.878 ***
alicE_add_contact_and_invite_1644@domain.example.com/res1 out
<presence type='subscribed' to='bOb_add_contact_and_invite_1644@domain.example.com'/>
*** User 2022-02-02 15:15:11.882 ***
bOb_add_contact_and_invite_1644@domain.example.com/res1 in
<iq from='bOb_add_contact_and_invite_1644@domain.example.com' to='bOb_add_contact_and_invite_1644@domain.example.com/res1' id='push1c60ca5e831035b8' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='alice_add_contact_and_invite_1644@domain.example.com'/>
</query>
</iq>
*** User 2022-02-02 15:15:11.882 ***
Push3 {xmlel,<<"iq">>,
[{<<"from">>,
<<"bOb_add_contact_and_invite_1644@domain.example.com">>},
{<<"to">>,
<<"bOb_add_contact_and_invite_1644@domain.example.com/res1">>},
{<<"id">>,<<"push1c60ca5e831035b8">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"to">>},
{<<"jid">>,
<<"alice_add_contact_and_invite_1644@domain.example.com">>}],
[]}]}]}
*** User 2022-02-02 15:15:11.891 ***
REST request:
Code: 200
Req: {<0.27898.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"64173d7cd5c67c13">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTY0NEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:15:11 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"97">>}],
<<"[{\"subscription\":\"to\",\"jid\":\"alice_add_contact_and_invite_1644@domain.example.com\",\"ask\":\"none\"}]">>,
221,1566}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_invite_1644@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:15:11.891 ***
bOb_add_contact_and_invite_1644@domain.example.com/res1 out
</stream:stream>
*** User 2022-02-02 15:15:11.892 ***
bOb_add_contact_and_invite_1644@domain.example.com/res1 in
</stream:stream>
*** User 2022-02-02 15:15:11.892 ***
alicE_add_contact_and_invite_1644@domain.example.com/res1 out
</stream:stream>
*** User 2022-02-02 15:15:11.892 ***
alicE_add_contact_and_invite_1644@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-02-02 15:15:11
=== successfully completed test case
=== === Returned value: ok