=== Test case: rest_client_SUITE:add_contact_and_be_invited/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_be_invited.137986.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.766 ***
alicE_add_contact_and_be_invited_1646@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_be_invited_1646@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='034c0d2aef3c3660' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:15:11.767 ***
alicE_add_contact_and_be_invited_1646@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.767 ***
alicE_add_contact_and_be_invited_1646@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzE2NDYAbWF0eWdyeXNh</auth>
*** User 2022-02-02 15:15:11.767 ***
alicE_add_contact_and_be_invited_1646@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-02-02 15:15:11.768 ***
alicE_add_contact_and_be_invited_1646@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.768 ***
alicE_add_contact_and_be_invited_1646@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2bd1234d6fbd2d96' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:15:11.768 ***
alicE_add_contact_and_be_invited_1646@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.768 ***
alicE_add_contact_and_be_invited_1646@domain.example.com/res1 out
<iq type='set' id='fdb0d5232f95600c7992d67fdf7b1416'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-02-02 15:15:11.768 ***
alicE_add_contact_and_be_invited_1646@domain.example.com/res1 in
<iq id='fdb0d5232f95600c7992d67fdf7b1416' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_add_contact_and_be_invited_1646@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-02-02 15:15:11.768 ***
alicE_add_contact_and_be_invited_1646@domain.example.com/res1 out
<iq type='set' id='dd87a2dc2f7eac93b0f54f3ed68628ad'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:15:11.769 ***
alicE_add_contact_and_be_invited_1646@domain.example.com/res1 in
<iq type='result' id='dd87a2dc2f7eac93b0f54f3ed68628ad'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:15:11.769 ***
alicE_add_contact_and_be_invited_1646@domain.example.com/res1 out
<presence/>
*** User 2022-02-02 15:15:11.770 ***
alicE_add_contact_and_be_invited_1646@domain.example.com/res1 in
<presence from='alicE_add_contact_and_be_invited_1646@domain.example.com/res1' to='alice_add_contact_and_be_invited_1646@domain.example.com/res1' xml:lang='en'/>
*** User 2022-02-02 15:15:11.771 ***
bOb_add_contact_and_be_invited_1646@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_be_invited_1646@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6e5bfafea97cd078' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:15:11.771 ***
bOb_add_contact_and_be_invited_1646@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.772 ***
bOb_add_contact_and_be_invited_1646@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfYmVfaW52aXRlZF8xNjQ2AG1ha3JvbGlrYQ==</auth>
*** User 2022-02-02 15:15:11.772 ***
bOb_add_contact_and_be_invited_1646@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-02-02 15:15:11.772 ***
bOb_add_contact_and_be_invited_1646@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.773 ***
bOb_add_contact_and_be_invited_1646@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cd2adc1d2cf8e422' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:15:11.773 ***
bOb_add_contact_and_be_invited_1646@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.773 ***
bOb_add_contact_and_be_invited_1646@domain.example.com/res1 out
<iq type='set' id='43a1bd4cc166f4120dec2ae46d03e62b'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-02-02 15:15:11.773 ***
bOb_add_contact_and_be_invited_1646@domain.example.com/res1 in
<iq id='43a1bd4cc166f4120dec2ae46d03e62b' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_add_contact_and_be_invited_1646@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-02-02 15:15:11.773 ***
bOb_add_contact_and_be_invited_1646@domain.example.com/res1 out
<iq type='set' id='0e89643d97e92bd18aa25145575279c5'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:15:11.773 ***
bOb_add_contact_and_be_invited_1646@domain.example.com/res1 in
<iq type='result' id='0e89643d97e92bd18aa25145575279c5'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:15:11.773 ***
bOb_add_contact_and_be_invited_1646@domain.example.com/res1 out
<presence/>
*** User 2022-02-02 15:15:11.775 ***
bOb_add_contact_and_be_invited_1646@domain.example.com/res1 in
<presence from='bOb_add_contact_and_be_invited_1646@domain.example.com/res1' to='bob_add_contact_and_be_invited_1646@domain.example.com/res1' xml:lang='en'/>
*** User 2022-02-02 15:15:11.784 ***
REST request:
Code: 200
Req: {<0.27736.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4bf57c6f622f3d4d">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzE2NDZAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:15:11 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1522}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_be_invited_1646@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.27753.1>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e21b4d7b442e0e19">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzE2NDZAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_add_contact_and_be_invited_1646@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:15:11 GMT">>}],
<<>>,80,2713}
Params: #{body =>
<<"{\"jid\":\"alice_add_contact_and_be_invited_1646@domain.example.com\"}">>,
creds =>
{<<"bob_add_contact_and_be_invited_1646@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_be_invited_1646@domain.example.com/res1 in
<iq from='bob_add_contact_and_be_invited_1646@domain.example.com' to='bob_add_contact_and_be_invited_1646@domain.example.com/res1' id='push74a4900e8fe21665' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_contact_and_be_invited_1646@domain.example.com'/>
</query>
</iq>
*** User 2022-02-02 15:15:11.806 ***
REST request:
Code: 200
Req: {<0.27784.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f028946f8dafafc1">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzE2NDZAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:15:11 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"103">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_1646@domain.example.com\",\"ask\":\"none\"}]">>,
228,3441}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_be_invited_1646@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.806 ***
alicE_add_contact_and_be_invited_1646@domain.example.com/res1 out
<iq type='set' id='9b1119ead92e015eb659099ac3de0c54'>
<query xmlns='jabber:iq:roster'>
<item jid='bOb_add_contact_and_be_invited_1646@domain.example.com' name='Bobek'/>
</query>
</iq>
*** User 2022-02-02 15:15:11.809 ***
alicE_add_contact_and_be_invited_1646@domain.example.com/res1 in
<iq from='alicE_add_contact_and_be_invited_1646@domain.example.com' to='alicE_add_contact_and_be_invited_1646@domain.example.com/res1' id='pushd69c52e56ef271a5' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bobek' jid='bob_add_contact_and_be_invited_1646@domain.example.com'/>
</query>
</iq>
*** User 2022-02-02 15:15:11.809 ***
alicE_add_contact_and_be_invited_1646@domain.example.com/res1 in
<iq from='alicE_add_contact_and_be_invited_1646@domain.example.com' to='alicE_add_contact_and_be_invited_1646@domain.example.com/res1' id='9b1119ead92e015eb659099ac3de0c54' type='result'/>
*** User 2022-02-02 15:15:11.809 ***
alicE_add_contact_and_be_invited_1646@domain.example.com/res1 out
<presence type='subscribe' to='bOb_add_contact_and_be_invited_1646@domain.example.com'/>
*** User 2022-02-02 15:15:11.860 ***
alicE_add_contact_and_be_invited_1646@domain.example.com/res1 in
<iq from='alicE_add_contact_and_be_invited_1646@domain.example.com' to='alicE_add_contact_and_be_invited_1646@domain.example.com/res1' id='push8db1799257e6e38c' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' name='Bobek' jid='bob_add_contact_and_be_invited_1646@domain.example.com'/>
</query>
</iq>
*** User 2022-02-02 15:15:11.860 ***
bOb_add_contact_and_be_invited_1646@domain.example.com/res1 in
<presence from='alicE_add_contact_and_be_invited_1646@domain.example.com' to='bOb_add_contact_and_be_invited_1646@domain.example.com/res1' xml:lang='en' type='subscribe'/>
*** User 2022-02-02 15:15:11.874 ***
REST request:
Code: 200
Req: {<0.27840.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b360443bad4b6e37">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzE2NDZAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:15:11 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"101">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_1646@domain.example.com\",\"ask\":\"in\"}]">>,
226,3185}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_be_invited_1646@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.888 ***
REST request:
Code: 204
Req: {<0.27883.1>,
<<"/api/contacts/alice_add_contact_and_be_invited_1646@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1def300c877ef445">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzE2NDZAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<"{\"action\":\"accept\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:15:11 GMT">>}],
<<>>,80,7739}
Params: #{body => <<"{\"action\":\"accept\"}">>,
creds =>
{<<"bob_add_contact_and_be_invited_1646@domain.example.com">>,
<<"makrolika">>},
method => <<"PUT">>,
path =>
<<"/api/contacts/alice_add_contact_and_be_invited_1646@domain.example.com">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:15:11.888 ***
bOb_add_contact_and_be_invited_1646@domain.example.com/res1 in
<iq from='bob_add_contact_and_be_invited_1646@domain.example.com' to='bob_add_contact_and_be_invited_1646@domain.example.com/res1' id='push35e1b16ab2c66bc9' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_add_contact_and_be_invited_1646@domain.example.com'/>
</query>
</iq>
*** User 2022-02-02 15:15:11.888 ***
alicE_add_contact_and_be_invited_1646@domain.example.com/res1 in
<presence from='bOb_add_contact_and_be_invited_1646@domain.example.com/res1' to='alice_add_contact_and_be_invited_1646@domain.example.com/res1' xml:lang='en'/>
*** User 2022-02-02 15:15:11.888 ***
alicE_add_contact_and_be_invited_1646@domain.example.com/res1 in
<iq from='alice_add_contact_and_be_invited_1646@domain.example.com' to='alice_add_contact_and_be_invited_1646@domain.example.com/res1' id='pushb5e4488e97d52823' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' name='Bobek' jid='bob_add_contact_and_be_invited_1646@domain.example.com'/>
</query>
</iq>
*** User 2022-02-02 15:15:11.889 ***
alicE_add_contact_and_be_invited_1646@domain.example.com/res1 in
<presence from='bob_add_contact_and_be_invited_1646@domain.example.com' to='alice_add_contact_and_be_invited_1646@domain.example.com/res1' type='subscribed'/>
*** User 2022-02-02 15:15:11.889 ***
bOb_add_contact_and_be_invited_1646@domain.example.com/res1 out
</stream:stream>
*** User 2022-02-02 15:15:11.889 ***
bOb_add_contact_and_be_invited_1646@domain.example.com/res1 in
</stream:stream>
*** User 2022-02-02 15:15:11.889 ***
alicE_add_contact_and_be_invited_1646@domain.example.com/res1 out
</stream:stream>
*** User 2022-02-02 15:15:11.890 ***
alicE_add_contact_and_be_invited_1646@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-02-02 15:15:11
=== successfully completed test case
=== === Returned value: ok