=== Test case: rest_client_SUITE:add_contact_and_be_invited/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_be_invited.153602.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.455 ***
alicE_add_contact_and_be_invited_1832@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.455 ***
alicE_add_contact_and_be_invited_1832@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='85b65102c042bb70' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:25:16.455 ***
alicE_add_contact_and_be_invited_1832@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_be_invited_1832@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzE4MzIAbWF0eWdyeXNh</auth>
*** User 2022-03-04 11:25:16.456 ***
alicE_add_contact_and_be_invited_1832@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_be_invited_1832@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_be_invited_1832@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='829cb874372fe7bb' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:25:16.456 ***
alicE_add_contact_and_be_invited_1832@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_be_invited_1832@domain.example.com/res1 out
<iq type='set' id='3f70fd6832dd66a732f987e747607f87'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:25:16.457 ***
alicE_add_contact_and_be_invited_1832@domain.example.com/res1 in
<iq id='3f70fd6832dd66a732f987e747607f87' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_add_contact_and_be_invited_1832@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:25:16.457 ***
alicE_add_contact_and_be_invited_1832@domain.example.com/res1 out
<iq type='set' id='1e2946f5358a0b0440e7f6b25f239f46'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:25:16.457 ***
alicE_add_contact_and_be_invited_1832@domain.example.com/res1 in
<iq type='result' id='1e2946f5358a0b0440e7f6b25f239f46'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:25:16.457 ***
alicE_add_contact_and_be_invited_1832@domain.example.com/res1 out
<presence/>
*** User 2022-03-04 11:25:16.459 ***
alicE_add_contact_and_be_invited_1832@domain.example.com/res1 in
<presence from='alicE_add_contact_and_be_invited_1832@domain.example.com/res1' to='alice_add_contact_and_be_invited_1832@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-04 11:25:16.459 ***
bOb_add_contact_and_be_invited_1832@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_be_invited_1832@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4b7b39b45e29ab96' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:25:16.460 ***
bOb_add_contact_and_be_invited_1832@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.460 ***
bOb_add_contact_and_be_invited_1832@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfYmVfaW52aXRlZF8xODMyAG1ha3JvbGlrYQ==</auth>
*** User 2022-03-04 11:25:16.461 ***
bOb_add_contact_and_be_invited_1832@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:25:16.461 ***
bOb_add_contact_and_be_invited_1832@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.461 ***
bOb_add_contact_and_be_invited_1832@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='28c986dfba0a0616' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:25:16.461 ***
bOb_add_contact_and_be_invited_1832@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.461 ***
bOb_add_contact_and_be_invited_1832@domain.example.com/res1 out
<iq type='set' id='59c3c188449ae16e4bb4845051d84f23'>
<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_be_invited_1832@domain.example.com/res1 in
<iq id='59c3c188449ae16e4bb4845051d84f23' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_add_contact_and_be_invited_1832@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:25:16.461 ***
bOb_add_contact_and_be_invited_1832@domain.example.com/res1 out
<iq type='set' id='da9709587db9384fb7ad141da4b0d3dc'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:25:16.461 ***
bOb_add_contact_and_be_invited_1832@domain.example.com/res1 in
<iq type='result' id='da9709587db9384fb7ad141da4b0d3dc'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:25:16.461 ***
bOb_add_contact_and_be_invited_1832@domain.example.com/res1 out
<presence/>
*** User 2022-03-04 11:25:16.463 ***
bOb_add_contact_and_be_invited_1832@domain.example.com/res1 in
<presence from='bOb_add_contact_and_be_invited_1832@domain.example.com/res1' to='bob_add_contact_and_be_invited_1832@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-04 11:25:16.477 ***
REST request:
Code: 200
Req: {<0.29198.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b80a6114ffa4e02d">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzE4MzJAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:25:15 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,5882}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_be_invited_1832@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.489 ***
REST request:
Code: 204
Req: {<0.29225.1>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b02d86f4c03ec789">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzE4MzJAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_add_contact_and_be_invited_1832@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:25:15 GMT">>}],
<<>>,80,3722}
Params: #{body =>
<<"{\"jid\":\"alice_add_contact_and_be_invited_1832@domain.example.com\"}">>,
creds =>
{<<"bob_add_contact_and_be_invited_1832@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.489 ***
bOb_add_contact_and_be_invited_1832@domain.example.com/res1 in
<iq from='bob_add_contact_and_be_invited_1832@domain.example.com' to='bob_add_contact_and_be_invited_1832@domain.example.com/res1' id='push9cb1172b34d791ba' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_contact_and_be_invited_1832@domain.example.com'/>
</query>
</iq>
*** User 2022-03-04 11:25:16.543 ***
REST request:
Code: 200
Req: {<0.29253.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"53a6fa685c04801f">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzE4MzJAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:25:15 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"103">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_1832@domain.example.com\",\"ask\":\"none\"}]">>,
228,46114}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_be_invited_1832@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.543 ***
alicE_add_contact_and_be_invited_1832@domain.example.com/res1 out
<iq type='set' id='8647c44b7b3bd4a79b89826d24d23e93'>
<query xmlns='jabber:iq:roster'>
<item jid='bOb_add_contact_and_be_invited_1832@domain.example.com' name='Bobek'/>
</query>
</iq>
*** User 2022-03-04 11:25:16.546 ***
alicE_add_contact_and_be_invited_1832@domain.example.com/res1 in
<iq from='alicE_add_contact_and_be_invited_1832@domain.example.com' to='alicE_add_contact_and_be_invited_1832@domain.example.com/res1' id='push47675c4b4c28a58b' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bobek' jid='bob_add_contact_and_be_invited_1832@domain.example.com'/>
</query>
</iq>
*** User 2022-03-04 11:25:16.547 ***
alicE_add_contact_and_be_invited_1832@domain.example.com/res1 in
<iq from='alicE_add_contact_and_be_invited_1832@domain.example.com' to='alicE_add_contact_and_be_invited_1832@domain.example.com/res1' id='8647c44b7b3bd4a79b89826d24d23e93' type='result'/>
*** User 2022-03-04 11:25:16.547 ***
alicE_add_contact_and_be_invited_1832@domain.example.com/res1 out
<presence type='subscribe' to='bOb_add_contact_and_be_invited_1832@domain.example.com'/>
*** User 2022-03-04 11:25:16.556 ***
alicE_add_contact_and_be_invited_1832@domain.example.com/res1 in
<iq from='alicE_add_contact_and_be_invited_1832@domain.example.com' to='alicE_add_contact_and_be_invited_1832@domain.example.com/res1' id='pushfed9698c2a30bed2' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' name='Bobek' jid='bob_add_contact_and_be_invited_1832@domain.example.com'/>
</query>
</iq>
*** User 2022-03-04 11:25:16.556 ***
bOb_add_contact_and_be_invited_1832@domain.example.com/res1 in
<presence from='alicE_add_contact_and_be_invited_1832@domain.example.com' to='bOb_add_contact_and_be_invited_1832@domain.example.com/res1' xml:lang='en' type='subscribe'/>
*** User 2022-03-04 11:25:16.566 ***
REST request:
Code: 200
Req: {<0.29302.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8923d7ea59a55046">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzE4MzJAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:25:15 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"101">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_1832@domain.example.com\",\"ask\":\"in\"}]">>,
226,2687}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_be_invited_1832@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.585 ***
REST request:
Code: 204
Req: {<0.29328.1>,
<<"/api/contacts/alice_add_contact_and_be_invited_1832@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7d0aa3541d1f9645">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzE4MzJAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<"{\"action\":\"accept\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:25:15 GMT">>}],
<<>>,80,9776}
Params: #{body => <<"{\"action\":\"accept\"}">>,
creds =>
{<<"bob_add_contact_and_be_invited_1832@domain.example.com">>,
<<"makrolika">>},
method => <<"PUT">>,
path =>
<<"/api/contacts/alice_add_contact_and_be_invited_1832@domain.example.com">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:25:16.585 ***
bOb_add_contact_and_be_invited_1832@domain.example.com/res1 in
<iq from='bob_add_contact_and_be_invited_1832@domain.example.com' to='bob_add_contact_and_be_invited_1832@domain.example.com/res1' id='push2727e56190bbf9a5' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_add_contact_and_be_invited_1832@domain.example.com'/>
</query>
</iq>
*** User 2022-03-04 11:25:16.585 ***
alicE_add_contact_and_be_invited_1832@domain.example.com/res1 in
<presence from='bOb_add_contact_and_be_invited_1832@domain.example.com/res1' to='alice_add_contact_and_be_invited_1832@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-04 11:25:16.585 ***
alicE_add_contact_and_be_invited_1832@domain.example.com/res1 in
<iq from='alice_add_contact_and_be_invited_1832@domain.example.com' to='alice_add_contact_and_be_invited_1832@domain.example.com/res1' id='push9ef69e16a36f8e3d' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' name='Bobek' jid='bob_add_contact_and_be_invited_1832@domain.example.com'/>
</query>
</iq>
*** User 2022-03-04 11:25:16.585 ***
alicE_add_contact_and_be_invited_1832@domain.example.com/res1 in
<presence from='bob_add_contact_and_be_invited_1832@domain.example.com' to='alice_add_contact_and_be_invited_1832@domain.example.com/res1' type='subscribed'/>
*** User 2022-03-04 11:25:16.585 ***
bOb_add_contact_and_be_invited_1832@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-04 11:25:16.586 ***
bOb_add_contact_and_be_invited_1832@domain.example.com/res1 in
</stream:stream>
*** User 2022-03-04 11:25:16.586 ***
alicE_add_contact_and_be_invited_1832@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-04 11:25:16.586 ***
alicE_add_contact_and_be_invited_1832@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-03-04 11:25:16
=== successfully completed test case
=== === Returned value: ok