=== Test case: rest_client_SUITE:add_contact_and_invite/1 (click for source code)
=== Config value:
[{watchdog,<0.29121.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,"odbc_mssql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.rest_client_SUITE.logs/run.2022-03-04_11.25.13/rest_client_suite.add_contact_and_invite.153474.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@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.rest_client_SUITE.logs/run.2022-03-04_11.25.13/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@88d84ff17c71.2022-03-04_11.16.52"
=== Started at 2022-03-04 11:25:16
*** User 2022-03-04 11:25:16.454 ***
alicE_add_contact_and_invite_1833@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-03-04 11:25:16.454 ***
alicE_add_contact_and_invite_1833@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='13b7ae5114f8709e' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:25:16.455 ***
alicE_add_contact_and_invite_1833@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-03-04 11:25:16.455 ***
alicE_add_contact_and_invite_1833@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTgzMwBtYXR5Z3J5c2E=</auth>
*** User 2022-03-04 11:25:16.455 ***
alicE_add_contact_and_invite_1833@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:25:16.456 ***
alicE_add_contact_and_invite_1833@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-03-04 11:25:16.456 ***
alicE_add_contact_and_invite_1833@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c1f11fd91d8a5be7' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:25:16.456 ***
alicE_add_contact_and_invite_1833@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-03-04 11:25:16.456 ***
alicE_add_contact_and_invite_1833@domain.example.com/res1 out
<iq type='set' id='26919bf421f4d5ff896e81968408914f'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:25:16.456 ***
alicE_add_contact_and_invite_1833@domain.example.com/res1 in
<iq id='26919bf421f4d5ff896e81968408914f' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_add_contact_and_invite_1833@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:25:16.456 ***
alicE_add_contact_and_invite_1833@domain.example.com/res1 out
<iq type='set' id='5677d36f8f253ac41cf8619e18df132a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:25:16.457 ***
alicE_add_contact_and_invite_1833@domain.example.com/res1 in
<iq type='result' id='5677d36f8f253ac41cf8619e18df132a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:25:16.457 ***
alicE_add_contact_and_invite_1833@domain.example.com/res1 out
<presence/>
*** User 2022-03-04 11:25:16.458 ***
alicE_add_contact_and_invite_1833@domain.example.com/res1 in
<presence from='alicE_add_contact_and_invite_1833@domain.example.com/res1' to='alice_add_contact_and_invite_1833@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-04 11:25:16.459 ***
bOb_add_contact_and_invite_1833@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-03-04 11:25:16.459 ***
bOb_add_contact_and_invite_1833@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='374fe2669f2f61e9' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:25:16.459 ***
bOb_add_contact_and_invite_1833@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-03-04 11:25:16.459 ***
bOb_add_contact_and_invite_1833@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfaW52aXRlXzE4MzMAbWFrcm9saWth</auth>
*** User 2022-03-04 11:25:16.460 ***
bOb_add_contact_and_invite_1833@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:25:16.460 ***
bOb_add_contact_and_invite_1833@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-03-04 11:25:16.460 ***
bOb_add_contact_and_invite_1833@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b21a8a5be7d1acd2' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:25:16.460 ***
bOb_add_contact_and_invite_1833@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-03-04 11:25:16.460 ***
bOb_add_contact_and_invite_1833@domain.example.com/res1 out
<iq type='set' id='978eaafe3fac098e431acc994f6ae828'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:25:16.461 ***
bOb_add_contact_and_invite_1833@domain.example.com/res1 in
<iq id='978eaafe3fac098e431acc994f6ae828' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_add_contact_and_invite_1833@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:25:16.461 ***
bOb_add_contact_and_invite_1833@domain.example.com/res1 out
<iq type='set' id='3f9f4422b7b1ae81d0b6bb65a57a175a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:25:16.461 ***
bOb_add_contact_and_invite_1833@domain.example.com/res1 in
<iq type='result' id='3f9f4422b7b1ae81d0b6bb65a57a175a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:25:16.461 ***
bOb_add_contact_and_invite_1833@domain.example.com/res1 out
<presence/>
*** User 2022-03-04 11:25:16.463 ***
bOb_add_contact_and_invite_1833@domain.example.com/res1 in
<presence from='bOb_add_contact_and_invite_1833@domain.example.com/res1' to='bob_add_contact_and_invite_1833@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-04 11:25:16.477 ***
REST request:
Code: 200
Req: {<0.29196.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bd8e0905fc3a01c9">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTgzM0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:25:15 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,5220}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_invite_1833@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:25:16.487 ***
REST request:
Code: 204
Req: {<0.29220.1>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4293f475e677bc38">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTgzM0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_contact_and_invite_1833@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:25:15 GMT">>}],
<<>>,80,2979}
Params: #{body =>
<<"{\"jid\":\"alice_add_contact_and_invite_1833@domain.example.com\"}">>,
creds =>
{<<"bob_add_contact_and_invite_1833@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:25:16.487 ***
bOb_add_contact_and_invite_1833@domain.example.com/res1 in
<iq from='bob_add_contact_and_invite_1833@domain.example.com' to='bob_add_contact_and_invite_1833@domain.example.com/res1' id='push57e95e20cb6a35f0' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_contact_and_invite_1833@domain.example.com'/>
</query>
</iq>
*** User 2022-03-04 11:25:16.539 ***
REST request:
Code: 200
Req: {<0.29240.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"08af50531d4ff664">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTgzM0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:25:15 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"99">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_invite_1833@domain.example.com\",\"ask\":\"none\"}]">>,
223,44840}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_invite_1833@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:25:16.558 ***
REST request:
Code: 204
Req: {<0.29269.1>,
<<"/api/contacts/alice_add_contact_and_invite_1833@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4161a09be012e683">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTgzM0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"action\":\"invite\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:25:15 GMT">>}],
<<>>,80,12100}
Params: #{body => <<"{\"action\":\"invite\"}">>,
creds =>
{<<"bob_add_contact_and_invite_1833@domain.example.com">>,
<<"makrolika">>},
method => <<"PUT">>,
path =>
<<"/api/contacts/alice_add_contact_and_invite_1833@domain.example.com">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:25:16.558 ***
bOb_add_contact_and_invite_1833@domain.example.com/res1 in
<iq from='bob_add_contact_and_invite_1833@domain.example.com' to='bob_add_contact_and_invite_1833@domain.example.com/res1' id='pushcd8b17ad17e978a3' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='alice_add_contact_and_invite_1833@domain.example.com'/>
</query>
</iq>
*** User 2022-03-04 11:25:16.558 ***
Push2: {xmlel,<<"iq">>,
[{<<"from">>,
<<"bob_add_contact_and_invite_1833@domain.example.com">>},
{<<"to">>,
<<"bob_add_contact_and_invite_1833@domain.example.com/res1">>},
{<<"id">>,<<"pushcd8b17ad17e978a3">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"ask">>,<<"subscribe">>},
{<<"subscription">>,<<"none">>},
{<<"jid">>,
<<"alice_add_contact_and_invite_1833@domain.example.com">>}],
[]}]}]}
*** User 2022-03-04 11:25:16.558 ***
alicE_add_contact_and_invite_1833@domain.example.com/res1 in
<presence from='bob_add_contact_and_invite_1833@domain.example.com' to='alice_add_contact_and_invite_1833@domain.example.com/res1' type='subscribe'/>
*** User 2022-03-04 11:25:16.569 ***
REST request:
Code: 200
Req: {<0.29313.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"26199986fe72953f">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTgzM0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:25:15 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_invite_1833@domain.example.com\",\"ask\":\"out\"}]">>,
222,3256}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_invite_1833@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:25:16.569 ***
alicE_add_contact_and_invite_1833@domain.example.com/res1 out
<iq type='set' id='a0087fe97b8e2dbc548651fd788ad140'>
<query xmlns='jabber:iq:roster'>
<item jid='bOb_add_contact_and_invite_1833@domain.example.com' name='Bob'/>
</query>
</iq>
*** User 2022-03-04 11:25:16.572 ***
alicE_add_contact_and_invite_1833@domain.example.com/res1 in
<iq from='alicE_add_contact_and_invite_1833@domain.example.com' to='alicE_add_contact_and_invite_1833@domain.example.com/res1' id='push79957af9a0efeec8' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bob' jid='bob_add_contact_and_invite_1833@domain.example.com'/>
</query>
</iq>
*** User 2022-03-04 11:25:16.572 ***
alicE_add_contact_and_invite_1833@domain.example.com/res1 out
<iq to='alicE_add_contact_and_invite_1833@domain.example.com' id='push79957af9a0efeec8' type='result'/>
*** User 2022-03-04 11:25:16.572 ***
alicE_add_contact_and_invite_1833@domain.example.com/res1 in
<iq from='alicE_add_contact_and_invite_1833@domain.example.com' to='alicE_add_contact_and_invite_1833@domain.example.com/res1' id='a0087fe97b8e2dbc548651fd788ad140' type='result'/>
*** User 2022-03-04 11:25:16.572 ***
alicE_add_contact_and_invite_1833@domain.example.com/res1 out
<presence type='subscribed' to='bOb_add_contact_and_invite_1833@domain.example.com'/>
*** User 2022-03-04 11:25:16.577 ***
bOb_add_contact_and_invite_1833@domain.example.com/res1 in
<iq from='bOb_add_contact_and_invite_1833@domain.example.com' to='bOb_add_contact_and_invite_1833@domain.example.com/res1' id='pushd1710b0244652593' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='alice_add_contact_and_invite_1833@domain.example.com'/>
</query>
</iq>
*** User 2022-03-04 11:25:16.577 ***
Push3 {xmlel,<<"iq">>,
[{<<"from">>,
<<"bOb_add_contact_and_invite_1833@domain.example.com">>},
{<<"to">>,
<<"bOb_add_contact_and_invite_1833@domain.example.com/res1">>},
{<<"id">>,<<"pushd1710b0244652593">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"to">>},
{<<"jid">>,
<<"alice_add_contact_and_invite_1833@domain.example.com">>}],
[]}]}]}
*** User 2022-03-04 11:25:16.587 ***
REST request:
Code: 200
Req: {<0.29343.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7e9365cdf938c9b5">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTgzM0Bkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:25:15 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"97">>}],
<<"[{\"subscription\":\"to\",\"jid\":\"alice_add_contact_and_invite_1833@domain.example.com\",\"ask\":\"none\"}]">>,
221,1586}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_invite_1833@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:25:16.588 ***
bOb_add_contact_and_invite_1833@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-04 11:25:16.588 ***
bOb_add_contact_and_invite_1833@domain.example.com/res1 in
</stream:stream>
*** User 2022-03-04 11:25:16.588 ***
alicE_add_contact_and_invite_1833@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-04 11:25:16.639 ***
alicE_add_contact_and_invite_1833@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-03-04 11:25:16
=== successfully completed test case
=== === Returned value: ok