=== Test case: rest_client_SUITE:add_contact_and_invite/1 (click for source code)
=== Config value:
[{watchdog,<0.10404.2>},
{muc_light_host,<<"muclight.localhost">>},
{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@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.rest_client_SUITE.logs/run.2022-01-27_15.37.00/rest_client_suite.add_contact_and_invite.149378.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@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.rest_client_SUITE.logs/run.2022-01-27_15.37.00/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{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@43a5deef6262.2022-01-27_15.25.11"
=== Started at 2022-01-27 15:37:03
*** User 2022-01-27 15:37:03.842 ***
alicE_add_contact_and_invite_2189@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-01-27 15:37:03.843 ***
alicE_add_contact_and_invite_2189@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e143ae6ffeb359e1' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:37:03.843 ***
alicE_add_contact_and_invite_2189@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-01-27 15:37:03.843 ***
alicE_add_contact_and_invite_2189@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjE4OQBtYXR5Z3J5c2E=</auth>
*** User 2022-01-27 15:37:03.844 ***
alicE_add_contact_and_invite_2189@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:37:03.844 ***
alicE_add_contact_and_invite_2189@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-01-27 15:37:03.844 ***
alicE_add_contact_and_invite_2189@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='045ab338a7b858b4' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:37:03.844 ***
alicE_add_contact_and_invite_2189@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-01-27 15:37:03.845 ***
alicE_add_contact_and_invite_2189@localhost/res1 out
<iq type='set' id='a93458df6dae27fc4c0bb07fecca33c8'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:37:03.845 ***
alicE_add_contact_and_invite_2189@localhost/res1 in
<iq id='a93458df6dae27fc4c0bb07fecca33c8' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_add_contact_and_invite_2189@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:37:03.845 ***
alicE_add_contact_and_invite_2189@localhost/res1 out
<iq type='set' id='591aca1dc43eb1664f07b96f9b656451'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:37:03.845 ***
alicE_add_contact_and_invite_2189@localhost/res1 in
<iq type='result' id='591aca1dc43eb1664f07b96f9b656451'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:37:03.845 ***
alicE_add_contact_and_invite_2189@localhost/res1 out
<presence/>
*** User 2022-01-27 15:37:03.849 ***
alicE_add_contact_and_invite_2189@localhost/res1 in
<presence from='alicE_add_contact_and_invite_2189@localhost/res1' to='alice_add_contact_and_invite_2189@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:37:03.850 ***
bOb_add_contact_and_invite_2189@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-01-27 15:37:03.850 ***
bOb_add_contact_and_invite_2189@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a513819dfc6c5e03' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:37:03.851 ***
bOb_add_contact_and_invite_2189@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-01-27 15:37:03.851 ***
bOb_add_contact_and_invite_2189@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfaW52aXRlXzIxODkAbWFrcm9saWth</auth>
*** User 2022-01-27 15:37:03.852 ***
bOb_add_contact_and_invite_2189@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:37:03.852 ***
bOb_add_contact_and_invite_2189@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-01-27 15:37:03.852 ***
bOb_add_contact_and_invite_2189@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a17b0f60acd3b16b' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:37:03.852 ***
bOb_add_contact_and_invite_2189@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-01-27 15:37:03.852 ***
bOb_add_contact_and_invite_2189@localhost/res1 out
<iq type='set' id='9cafeb430c265838bb9be21d1d26c8a8'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:37:03.852 ***
bOb_add_contact_and_invite_2189@localhost/res1 in
<iq id='9cafeb430c265838bb9be21d1d26c8a8' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_add_contact_and_invite_2189@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:37:03.852 ***
bOb_add_contact_and_invite_2189@localhost/res1 out
<iq type='set' id='6deb05bd63c44c173dace9cf98a6ef0c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:37:03.853 ***
bOb_add_contact_and_invite_2189@localhost/res1 in
<iq type='result' id='6deb05bd63c44c173dace9cf98a6ef0c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:37:03.853 ***
bOb_add_contact_and_invite_2189@localhost/res1 out
<presence/>
*** User 2022-01-27 15:37:03.855 ***
bOb_add_contact_and_invite_2189@localhost/res1 in
<presence from='bOb_add_contact_and_invite_2189@localhost/res1' to='bob_add_contact_and_invite_2189@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:37:03.866 ***
REST request:
Code: 200
Req: {<0.10493.2>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c03bcef27d866635">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjE4OUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:37:03 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,3353}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_invite_2189@localhost">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:37:03.881 ***
REST request:
Code: 204
Req: {<0.10511.2>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2ff29988c48940c8">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjE4OUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_contact_and_invite_2189@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:37:03 GMT">>}],
<<>>,80,4303}
Params: #{body =>
<<"{\"jid\":\"alice_add_contact_and_invite_2189@localhost\"}">>,
creds =>
{<<"bob_add_contact_and_invite_2189@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:37:03.881 ***
bOb_add_contact_and_invite_2189@localhost/res1 in
<iq from='bob_add_contact_and_invite_2189@localhost' to='bob_add_contact_and_invite_2189@localhost/res1' id='push49e4e2878ea1b505' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_contact_and_invite_2189@localhost'/>
</query>
</iq>
*** User 2022-01-27 15:37:03.949 ***
REST request:
Code: 200
Req: {<0.10543.2>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"48506f2aacf7c680">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjE4OUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:37:03 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"90">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_invite_2189@localhost\",\"ask\":\"none\"}]">>,
214,3590}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_invite_2189@localhost">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:37:03.995 ***
REST request:
Code: 204
Req: {<0.10568.2>,
<<"/api/contacts/alice_add_contact_and_invite_2189@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"581b9bb1fd704a04">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjE4OUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"action\":\"invite\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:37:03 GMT">>}],
<<>>,80,37312}
Params: #{body => <<"{\"action\":\"invite\"}">>,
creds =>
{<<"bob_add_contact_and_invite_2189@localhost">>,
<<"makrolika">>},
method => <<"PUT">>,
path =>
<<"/api/contacts/alice_add_contact_and_invite_2189@localhost">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:37:03.995 ***
bOb_add_contact_and_invite_2189@localhost/res1 in
<iq from='bob_add_contact_and_invite_2189@localhost' to='bob_add_contact_and_invite_2189@localhost/res1' id='push23f8b4a3e223060c' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='alice_add_contact_and_invite_2189@localhost'/>
</query>
</iq>
*** User 2022-01-27 15:37:03.995 ***
Push2: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_add_contact_and_invite_2189@localhost">>},
{<<"to">>,<<"bob_add_contact_and_invite_2189@localhost/res1">>},
{<<"id">>,<<"push23f8b4a3e223060c">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"ask">>,<<"subscribe">>},
{<<"subscription">>,<<"none">>},
{<<"jid">>,
<<"alice_add_contact_and_invite_2189@localhost">>}],
[]}]}]}
*** User 2022-01-27 15:37:03.995 ***
alicE_add_contact_and_invite_2189@localhost/res1 in
<presence from='bob_add_contact_and_invite_2189@localhost' to='alice_add_contact_and_invite_2189@localhost/res1' type='subscribe'/>
*** User 2022-01-27 15:37:04.004 ***
REST request:
Code: 200
Req: {<0.10602.2>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6f50dd61a5cf4d2c">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjE4OUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:37:03 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_invite_2189@localhost\",\"ask\":\"out\"}]">>,
213,2330}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_invite_2189@localhost">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:37:04.005 ***
alicE_add_contact_and_invite_2189@localhost/res1 out
<iq type='set' id='6a977e9c1d593393e46b2894f568ee13'>
<query xmlns='jabber:iq:roster'>
<item jid='bOb_add_contact_and_invite_2189@localhost' name='Bob'/>
</query>
</iq>
*** User 2022-01-27 15:37:04.009 ***
alicE_add_contact_and_invite_2189@localhost/res1 in
<iq from='alicE_add_contact_and_invite_2189@localhost' to='alicE_add_contact_and_invite_2189@localhost/res1' id='push5065d23c8d16f22d' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bob' jid='bob_add_contact_and_invite_2189@localhost'/>
</query>
</iq>
*** User 2022-01-27 15:37:04.009 ***
alicE_add_contact_and_invite_2189@localhost/res1 out
<iq to='alicE_add_contact_and_invite_2189@localhost' id='push5065d23c8d16f22d' type='result'/>
*** User 2022-01-27 15:37:04.009 ***
alicE_add_contact_and_invite_2189@localhost/res1 in
<iq from='alicE_add_contact_and_invite_2189@localhost' to='alicE_add_contact_and_invite_2189@localhost/res1' id='6a977e9c1d593393e46b2894f568ee13' type='result'/>
*** User 2022-01-27 15:37:04.009 ***
alicE_add_contact_and_invite_2189@localhost/res1 out
<presence type='subscribed' to='bOb_add_contact_and_invite_2189@localhost'/>
*** User 2022-01-27 15:37:04.047 ***
bOb_add_contact_and_invite_2189@localhost/res1 in
<iq from='bOb_add_contact_and_invite_2189@localhost' to='bOb_add_contact_and_invite_2189@localhost/res1' id='push52db029ac7c78d3b' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='alice_add_contact_and_invite_2189@localhost'/>
</query>
</iq>
*** User 2022-01-27 15:37:04.047 ***
Push3 {xmlel,<<"iq">>,
[{<<"from">>,<<"bOb_add_contact_and_invite_2189@localhost">>},
{<<"to">>,<<"bOb_add_contact_and_invite_2189@localhost/res1">>},
{<<"id">>,<<"push52db029ac7c78d3b">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"to">>},
{<<"jid">>,
<<"alice_add_contact_and_invite_2189@localhost">>}],
[]}]}]}
*** User 2022-01-27 15:37:04.056 ***
REST request:
Code: 200
Req: {<0.10638.2>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6a8725f15d3cd69a">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjE4OUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:37:03 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"88">>}],
<<"[{\"subscription\":\"to\",\"jid\":\"alice_add_contact_and_invite_2189@localhost\",\"ask\":\"none\"}]">>,
212,2183}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_invite_2189@localhost">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:37:04.056 ***
bOb_add_contact_and_invite_2189@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:37:04.056 ***
bOb_add_contact_and_invite_2189@localhost/res1 in
</stream:stream>
*** User 2022-01-27 15:37:04.056 ***
alicE_add_contact_and_invite_2189@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:37:04.057 ***
alicE_add_contact_and_invite_2189@localhost/res1 in
</stream:stream>
=== Ended at 2022-01-27 15:37:04
=== successfully completed test case
=== === Returned value: ok