=== Test case: rest_client_SUITE:add_contact_and_be_invited/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_be_invited.121859.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.839 ***
alicE_add_contact_and_be_invited_2187@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.840 ***
alicE_add_contact_and_be_invited_2187@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0274d035e38e7ef4' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:37:03.840 ***
alicE_add_contact_and_be_invited_2187@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.840 ***
alicE_add_contact_and_be_invited_2187@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzIxODcAbWF0eWdyeXNh</auth>
*** User 2022-01-27 15:37:03.841 ***
alicE_add_contact_and_be_invited_2187@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:37:03.841 ***
alicE_add_contact_and_be_invited_2187@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.841 ***
alicE_add_contact_and_be_invited_2187@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6930c42242849a73' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:37:03.841 ***
alicE_add_contact_and_be_invited_2187@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.841 ***
alicE_add_contact_and_be_invited_2187@localhost/res1 out
<iq type='set' id='001aa3bb4439e73c526f36e31c512467'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:37:03.842 ***
alicE_add_contact_and_be_invited_2187@localhost/res1 in
<iq id='001aa3bb4439e73c526f36e31c512467' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_add_contact_and_be_invited_2187@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:37:03.842 ***
alicE_add_contact_and_be_invited_2187@localhost/res1 out
<iq type='set' id='630aa351ea6d100410528623d50eac13'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:37:03.842 ***
alicE_add_contact_and_be_invited_2187@localhost/res1 in
<iq type='result' id='630aa351ea6d100410528623d50eac13'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:37:03.842 ***
alicE_add_contact_and_be_invited_2187@localhost/res1 out
<presence/>
*** User 2022-01-27 15:37:03.846 ***
alicE_add_contact_and_be_invited_2187@localhost/res1 in
<presence from='alicE_add_contact_and_be_invited_2187@localhost/res1' to='alice_add_contact_and_be_invited_2187@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:37:03.847 ***
bOb_add_contact_and_be_invited_2187@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.847 ***
bOb_add_contact_and_be_invited_2187@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2d68c6c3f4c71b4a' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:37:03.848 ***
bOb_add_contact_and_be_invited_2187@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.848 ***
bOb_add_contact_and_be_invited_2187@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfYmVfaW52aXRlZF8yMTg3AG1ha3JvbGlrYQ==</auth>
*** User 2022-01-27 15:37:03.849 ***
bOb_add_contact_and_be_invited_2187@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:37:03.849 ***
bOb_add_contact_and_be_invited_2187@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.849 ***
bOb_add_contact_and_be_invited_2187@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4338f2045991bf82' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:37:03.849 ***
bOb_add_contact_and_be_invited_2187@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.850 ***
bOb_add_contact_and_be_invited_2187@localhost/res1 out
<iq type='set' id='c424c1d8d4df7a97d40a11975cdf5855'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:37:03.850 ***
bOb_add_contact_and_be_invited_2187@localhost/res1 in
<iq id='c424c1d8d4df7a97d40a11975cdf5855' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_add_contact_and_be_invited_2187@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:37:03.850 ***
bOb_add_contact_and_be_invited_2187@localhost/res1 out
<iq type='set' id='ac4c440500aabac70597da8cd03f75e7'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:37:03.850 ***
bOb_add_contact_and_be_invited_2187@localhost/res1 in
<iq type='result' id='ac4c440500aabac70597da8cd03f75e7'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:37:03.850 ***
bOb_add_contact_and_be_invited_2187@localhost/res1 out
<presence/>
*** User 2022-01-27 15:37:03.853 ***
bOb_add_contact_and_be_invited_2187@localhost/res1 in
<presence from='bOb_add_contact_and_be_invited_2187@localhost/res1' to='bob_add_contact_and_be_invited_2187@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:37:03.864 ***
REST request:
Code: 200
Req: {<0.10486.2>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ff459eeadc5dbfe0">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzIxODdAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:37:03 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2513}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_be_invited_2187@localhost">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:37:03.879 ***
REST request:
Code: 204
Req: {<0.10502.2>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ce7ce3dbafd6096b">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzIxODdAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_add_contact_and_be_invited_2187@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:37:03 GMT">>}],
<<>>,80,5910}
Params: #{body =>
<<"{\"jid\":\"alice_add_contact_and_be_invited_2187@localhost\"}">>,
creds =>
{<<"bob_add_contact_and_be_invited_2187@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:37:03.879 ***
bOb_add_contact_and_be_invited_2187@localhost/res1 in
<iq from='bob_add_contact_and_be_invited_2187@localhost' to='bob_add_contact_and_be_invited_2187@localhost/res1' id='push1b032d9f0560f1f1' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_contact_and_be_invited_2187@localhost'/>
</query>
</iq>
*** User 2022-01-27 15:37:03.948 ***
REST request:
Code: 200
Req: {<0.10537.2>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b851fecea6cfd0b3">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzIxODdAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:37:03 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_2187@localhost\",\"ask\":\"none\"}]">>,
218,5938}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_be_invited_2187@localhost">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:37:03.948 ***
alicE_add_contact_and_be_invited_2187@localhost/res1 out
<iq type='set' id='0ae8e6bf89765f99914d223b1f6196ff'>
<query xmlns='jabber:iq:roster'>
<item jid='bOb_add_contact_and_be_invited_2187@localhost' name='Bobek'/>
</query>
</iq>
*** User 2022-01-27 15:37:03.979 ***
alicE_add_contact_and_be_invited_2187@localhost/res1 in
<iq from='alicE_add_contact_and_be_invited_2187@localhost' to='alicE_add_contact_and_be_invited_2187@localhost/res1' id='push54a60356e15cfcc3' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bobek' jid='bob_add_contact_and_be_invited_2187@localhost'/>
</query>
</iq>
*** User 2022-01-27 15:37:03.979 ***
alicE_add_contact_and_be_invited_2187@localhost/res1 in
<iq from='alicE_add_contact_and_be_invited_2187@localhost' to='alicE_add_contact_and_be_invited_2187@localhost/res1' id='0ae8e6bf89765f99914d223b1f6196ff' type='result'/>
*** User 2022-01-27 15:37:03.979 ***
alicE_add_contact_and_be_invited_2187@localhost/res1 out
<presence type='subscribe' to='bOb_add_contact_and_be_invited_2187@localhost'/>
*** User 2022-01-27 15:37:03.998 ***
alicE_add_contact_and_be_invited_2187@localhost/res1 in
<iq from='alicE_add_contact_and_be_invited_2187@localhost' to='alicE_add_contact_and_be_invited_2187@localhost/res1' id='pushc92eec99e67ed873' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' name='Bobek' jid='bob_add_contact_and_be_invited_2187@localhost'/>
</query>
</iq>
*** User 2022-01-27 15:37:03.998 ***
bOb_add_contact_and_be_invited_2187@localhost/res1 in
<presence from='alicE_add_contact_and_be_invited_2187@localhost' to='bOb_add_contact_and_be_invited_2187@localhost/res1' xml:lang='en' type='subscribe'/>
*** User 2022-01-27 15:37:04.009 ***
REST request:
Code: 200
Req: {<0.10609.2>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0c2237842e9b8fe7">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzIxODdAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:37:03 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"92">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_2187@localhost\",\"ask\":\"in\"}]">>,
216,2310}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_be_invited_2187@localhost">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:37:04.050 ***
REST request:
Code: 204
Req: {<0.10622.2>,
<<"/api/contacts/alice_add_contact_and_be_invited_2187@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"20a3f4d1b09ff970">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzIxODdAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"action\":\"accept\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:37:03 GMT">>}],
<<>>,80,9504}
Params: #{body => <<"{\"action\":\"accept\"}">>,
creds =>
{<<"bob_add_contact_and_be_invited_2187@localhost">>,
<<"makrolika">>},
method => <<"PUT">>,
path =>
<<"/api/contacts/alice_add_contact_and_be_invited_2187@localhost">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:37:04.050 ***
bOb_add_contact_and_be_invited_2187@localhost/res1 in
<iq from='bob_add_contact_and_be_invited_2187@localhost' to='bob_add_contact_and_be_invited_2187@localhost/res1' id='pushf583b280df63d01f' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_add_contact_and_be_invited_2187@localhost'/>
</query>
</iq>
*** User 2022-01-27 15:37:04.051 ***
alicE_add_contact_and_be_invited_2187@localhost/res1 in
<presence from='bOb_add_contact_and_be_invited_2187@localhost/res1' to='alice_add_contact_and_be_invited_2187@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:37:04.051 ***
alicE_add_contact_and_be_invited_2187@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_2187@localhost' to='alice_add_contact_and_be_invited_2187@localhost/res1' id='pushdc8653e09852653c' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' name='Bobek' jid='bob_add_contact_and_be_invited_2187@localhost'/>
</query>
</iq>
*** User 2022-01-27 15:37:04.051 ***
alicE_add_contact_and_be_invited_2187@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_2187@localhost' to='alice_add_contact_and_be_invited_2187@localhost/res1' type='subscribed'/>
*** User 2022-01-27 15:37:04.051 ***
bOb_add_contact_and_be_invited_2187@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:37:04.051 ***
bOb_add_contact_and_be_invited_2187@localhost/res1 in
</stream:stream>
*** User 2022-01-27 15:37:04.052 ***
alicE_add_contact_and_be_invited_2187@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:37:04.053 ***
alicE_add_contact_and_be_invited_2187@localhost/res1 in
</stream:stream>
=== Ended at 2022-01-27 15:37:04
=== successfully completed test case
=== === Returned value: ok