=== Test case: rest_client_SUITE:add_contact_and_invite/1 (click for source code)
=== Config value:
[{watchdog,<0.26880.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@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.rest_client_SUITE.logs/run.2022-01-27_12.36.44/rest_client_suite.add_contact_and_invite.109827.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@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.rest_client_SUITE.logs/run.2022-01-27_12.36.44/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@998557c7e1d1.2022-01-27_12.27.57"
=== Started at 2022-01-27 12:36:48
*** User 2022-01-27 12:36:48.083 ***
alicE_add_contact_and_invite_1775@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-01-27 12:36:48.084 ***
alicE_add_contact_and_invite_1775@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9a6ba78b8780c888' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:48.084 ***
alicE_add_contact_and_invite_1775@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-01-27 12:36:48.084 ***
alicE_add_contact_and_invite_1775@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTc3NQBtYXR5Z3J5c2E=</auth>
*** User 2022-01-27 12:36:48.086 ***
alicE_add_contact_and_invite_1775@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:36:48.086 ***
alicE_add_contact_and_invite_1775@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-01-27 12:36:48.086 ***
alicE_add_contact_and_invite_1775@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6a01b654c22e55ab' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:48.086 ***
alicE_add_contact_and_invite_1775@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-01-27 12:36:48.086 ***
alicE_add_contact_and_invite_1775@domain.example.com/res1 out
<iq type='set' id='848433b3de7a49fea947fa7e02be80b0'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:36:48.086 ***
alicE_add_contact_and_invite_1775@domain.example.com/res1 in
<iq id='848433b3de7a49fea947fa7e02be80b0' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_add_contact_and_invite_1775@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:36:48.087 ***
alicE_add_contact_and_invite_1775@domain.example.com/res1 out
<iq type='set' id='8663dfa96f45aeaffa2a2f0801c589c3'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:48.087 ***
alicE_add_contact_and_invite_1775@domain.example.com/res1 in
<iq type='result' id='8663dfa96f45aeaffa2a2f0801c589c3'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:48.087 ***
alicE_add_contact_and_invite_1775@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:36:48.090 ***
alicE_add_contact_and_invite_1775@domain.example.com/res1 in
<presence from='alicE_add_contact_and_invite_1775@domain.example.com/res1' to='alice_add_contact_and_invite_1775@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:36:48.091 ***
bOb_add_contact_and_invite_1775@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-01-27 12:36:48.091 ***
bOb_add_contact_and_invite_1775@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='66fce5cf2462deb3' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:48.092 ***
bOb_add_contact_and_invite_1775@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-01-27 12:36:48.092 ***
bOb_add_contact_and_invite_1775@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfaW52aXRlXzE3NzUAbWFrcm9saWth</auth>
*** User 2022-01-27 12:36:48.093 ***
bOb_add_contact_and_invite_1775@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:36:48.093 ***
bOb_add_contact_and_invite_1775@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-01-27 12:36:48.093 ***
bOb_add_contact_and_invite_1775@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='41a8f51f530630ba' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:48.094 ***
bOb_add_contact_and_invite_1775@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-01-27 12:36:48.094 ***
bOb_add_contact_and_invite_1775@domain.example.com/res1 out
<iq type='set' id='8267ad18bd97a0a11085ad028742e611'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:36:48.094 ***
bOb_add_contact_and_invite_1775@domain.example.com/res1 in
<iq id='8267ad18bd97a0a11085ad028742e611' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_add_contact_and_invite_1775@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:36:48.094 ***
bOb_add_contact_and_invite_1775@domain.example.com/res1 out
<iq type='set' id='4cd9429fc750e5319a875f76bde52d7d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:48.094 ***
bOb_add_contact_and_invite_1775@domain.example.com/res1 in
<iq type='result' id='4cd9429fc750e5319a875f76bde52d7d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:48.094 ***
bOb_add_contact_and_invite_1775@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:36:48.100 ***
bOb_add_contact_and_invite_1775@domain.example.com/res1 in
<presence from='bOb_add_contact_and_invite_1775@domain.example.com/res1' to='bob_add_contact_and_invite_1775@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:36:48.135 ***
REST request:
Code: 200
Req: {<0.26959.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"94cbf28b15dc7906">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTc3NUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:47 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,24377}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_invite_1775@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:48.156 ***
REST request:
Code: 204
Req: {<0.26983.1>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"06d763208fdb08bd">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTc3NUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_contact_and_invite_1775@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:47 GMT">>}],
<<>>,80,9010}
Params: #{body =>
<<"{\"jid\":\"alice_add_contact_and_invite_1775@domain.example.com\"}">>,
creds =>
{<<"bob_add_contact_and_invite_1775@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:48.156 ***
bOb_add_contact_and_invite_1775@domain.example.com/res1 in
<iq from='bob_add_contact_and_invite_1775@domain.example.com' to='bob_add_contact_and_invite_1775@domain.example.com/res1' id='push86a2e539bb06620a' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_contact_and_invite_1775@domain.example.com'/>
</query>
</iq>
*** User 2022-01-27 12:36:48.176 ***
REST request:
Code: 200
Req: {<0.27001.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e82f3a8126718212">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTc3NUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:47 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"99">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_invite_1775@domain.example.com\",\"ask\":\"none\"}]">>,
223,4738}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_invite_1775@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:48.236 ***
REST request:
Code: 204
Req: {<0.27020.1>,
<<"/api/contacts/alice_add_contact_and_invite_1775@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"95603eac9b304076">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTc3NUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"action\":\"invite\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:47 GMT">>}],
<<>>,80,44967}
Params: #{body => <<"{\"action\":\"invite\"}">>,
creds =>
{<<"bob_add_contact_and_invite_1775@domain.example.com">>,
<<"makrolika">>},
method => <<"PUT">>,
path =>
<<"/api/contacts/alice_add_contact_and_invite_1775@domain.example.com">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:48.236 ***
bOb_add_contact_and_invite_1775@domain.example.com/res1 in
<iq from='bob_add_contact_and_invite_1775@domain.example.com' to='bob_add_contact_and_invite_1775@domain.example.com/res1' id='pushd48c98319162bf63' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='alice_add_contact_and_invite_1775@domain.example.com'/>
</query>
</iq>
*** User 2022-01-27 12:36:48.237 ***
Push2: {xmlel,<<"iq">>,
[{<<"from">>,
<<"bob_add_contact_and_invite_1775@domain.example.com">>},
{<<"to">>,
<<"bob_add_contact_and_invite_1775@domain.example.com/res1">>},
{<<"id">>,<<"pushd48c98319162bf63">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"ask">>,<<"subscribe">>},
{<<"subscription">>,<<"none">>},
{<<"jid">>,
<<"alice_add_contact_and_invite_1775@domain.example.com">>}],
[]}]}]}
*** User 2022-01-27 12:36:48.237 ***
alicE_add_contact_and_invite_1775@domain.example.com/res1 in
<presence from='bob_add_contact_and_invite_1775@domain.example.com' to='alice_add_contact_and_invite_1775@domain.example.com/res1' type='subscribe'/>
*** User 2022-01-27 12:36:48.251 ***
REST request:
Code: 200
Req: {<0.27059.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"36fa4145f60d8ff2">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTc3NUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:47 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_invite_1775@domain.example.com\",\"ask\":\"out\"}]">>,
222,5741}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_invite_1775@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:48.251 ***
alicE_add_contact_and_invite_1775@domain.example.com/res1 out
<iq type='set' id='b0f8eff802e671ceba8e4a52335dcef5'>
<query xmlns='jabber:iq:roster'>
<item jid='bOb_add_contact_and_invite_1775@domain.example.com' name='Bob'/>
</query>
</iq>
*** User 2022-01-27 12:36:48.256 ***
alicE_add_contact_and_invite_1775@domain.example.com/res1 in
<iq from='alicE_add_contact_and_invite_1775@domain.example.com' to='alicE_add_contact_and_invite_1775@domain.example.com/res1' id='pushb5621860049ae7b7' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bob' jid='bob_add_contact_and_invite_1775@domain.example.com'/>
</query>
</iq>
*** User 2022-01-27 12:36:48.256 ***
alicE_add_contact_and_invite_1775@domain.example.com/res1 out
<iq to='alicE_add_contact_and_invite_1775@domain.example.com' id='pushb5621860049ae7b7' type='result'/>
*** User 2022-01-27 12:36:48.256 ***
alicE_add_contact_and_invite_1775@domain.example.com/res1 in
<iq from='alicE_add_contact_and_invite_1775@domain.example.com' to='alicE_add_contact_and_invite_1775@domain.example.com/res1' id='b0f8eff802e671ceba8e4a52335dcef5' type='result'/>
*** User 2022-01-27 12:36:48.256 ***
alicE_add_contact_and_invite_1775@domain.example.com/res1 out
<presence type='subscribed' to='bOb_add_contact_and_invite_1775@domain.example.com'/>
*** User 2022-01-27 12:36:48.268 ***
bOb_add_contact_and_invite_1775@domain.example.com/res1 in
<iq from='bOb_add_contact_and_invite_1775@domain.example.com' to='bOb_add_contact_and_invite_1775@domain.example.com/res1' id='push136715d529cbc1fe' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='alice_add_contact_and_invite_1775@domain.example.com'/>
</query>
</iq>
*** User 2022-01-27 12:36:48.268 ***
Push3 {xmlel,<<"iq">>,
[{<<"from">>,
<<"bOb_add_contact_and_invite_1775@domain.example.com">>},
{<<"to">>,
<<"bOb_add_contact_and_invite_1775@domain.example.com/res1">>},
{<<"id">>,<<"push136715d529cbc1fe">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"to">>},
{<<"jid">>,
<<"alice_add_contact_and_invite_1775@domain.example.com">>}],
[]}]}]}
*** User 2022-01-27 12:36:48.284 ***
REST request:
Code: 200
Req: {<0.27097.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f607996dca042358">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTc3NUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:48 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"97">>}],
<<"[{\"subscription\":\"to\",\"jid\":\"alice_add_contact_and_invite_1775@domain.example.com\",\"ask\":\"none\"}]">>,
221,6872}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_invite_1775@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:48.284 ***
bOb_add_contact_and_invite_1775@domain.example.com/res1 out
</stream:stream>
*** User 2022-01-27 12:36:48.284 ***
bOb_add_contact_and_invite_1775@domain.example.com/res1 in
</stream:stream>
*** User 2022-01-27 12:36:48.284 ***
alicE_add_contact_and_invite_1775@domain.example.com/res1 out
</stream:stream>
*** User 2022-01-27 12:36:48.285 ***
alicE_add_contact_and_invite_1775@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-01-27 12:36:48
=== successfully completed test case
=== === Returned value: ok