=== Test case: rest_client_SUITE:add_contact_and_be_invited/1 (click for source code)
=== Config value:
[{watchdog,<0.15634.1>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,disabled},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
{preset,"ldap_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.rest_client_SUITE.logs/run.2022-03-03_10.38.20/rest_client_suite.add_contact_and_be_invited.71042.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@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.rest_client_SUITE.logs/run.2022-03-03_10.38.20/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 => [],mod_sic => [],mod_stream_management => [],
mod_vcard =>
[{backend,ldap},
{host,{prefix,<<"vjud.">>}},
{ldap_base,"ou=Users,dc=esl,dc=com"},
{ldap_filter,<<"(objectClass=inetOrgPerson)">>}]}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@12130b74fc81.2022-03-03_10.28.39"
=== Started at 2022-03-03 10:38:22
*** User 2022-03-03 10:38:22.485 ***
alicE_add_contact_and_be_invited_1316@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-03-03 10:38:22.485 ***
alicE_add_contact_and_be_invited_1316@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='891e55a190c859da' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:38:22.486 ***
alicE_add_contact_and_be_invited_1316@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>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-03 10:38:22.486 ***
alicE_add_contact_and_be_invited_1316@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzEzMTYAbWF0eWdyeXNh</auth>
*** User 2022-03-03 10:38:22.487 ***
alicE_add_contact_and_be_invited_1316@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-03 10:38:22.487 ***
alicE_add_contact_and_be_invited_1316@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-03-03 10:38:22.487 ***
alicE_add_contact_and_be_invited_1316@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9ef2fd3696ccbfd1' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:38:22.487 ***
alicE_add_contact_and_be_invited_1316@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-03-03 10:38:22.487 ***
alicE_add_contact_and_be_invited_1316@localhost/res1 out
<iq type='set' id='66b3cdcdeac9dbf9e11f8c08e3f6aed6'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-03 10:38:22.487 ***
alicE_add_contact_and_be_invited_1316@localhost/res1 in
<iq id='66b3cdcdeac9dbf9e11f8c08e3f6aed6' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_add_contact_and_be_invited_1316@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-03 10:38:22.487 ***
alicE_add_contact_and_be_invited_1316@localhost/res1 out
<iq type='set' id='522b8dfb29f0d8dfb4ef8d11a5e9b1df'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:38:22.488 ***
alicE_add_contact_and_be_invited_1316@localhost/res1 in
<iq type='result' id='522b8dfb29f0d8dfb4ef8d11a5e9b1df'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:38:22.488 ***
alicE_add_contact_and_be_invited_1316@localhost/res1 out
<presence/>
*** User 2022-03-03 10:38:22.488 ***
alicE_add_contact_and_be_invited_1316@localhost/res1 in
<presence from='alicE_add_contact_and_be_invited_1316@localhost/res1' to='alice_add_contact_and_be_invited_1316@localhost/res1' xml:lang='en'/>
*** User 2022-03-03 10:38:22.489 ***
bOb_add_contact_and_be_invited_1316@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-03-03 10:38:22.489 ***
bOb_add_contact_and_be_invited_1316@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='966545f4743a2ac6' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:38:22.490 ***
bOb_add_contact_and_be_invited_1316@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>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-03 10:38:22.490 ***
bOb_add_contact_and_be_invited_1316@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfYmVfaW52aXRlZF8xMzE2AG1ha3JvbGlrYQ==</auth>
*** User 2022-03-03 10:38:22.491 ***
bOb_add_contact_and_be_invited_1316@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-03 10:38:22.491 ***
bOb_add_contact_and_be_invited_1316@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-03-03 10:38:22.491 ***
bOb_add_contact_and_be_invited_1316@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='63ed097369d6374f' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:38:22.491 ***
bOb_add_contact_and_be_invited_1316@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-03-03 10:38:22.491 ***
bOb_add_contact_and_be_invited_1316@localhost/res1 out
<iq type='set' id='8b0d983a2f2cb78e8a031dbc34f78af8'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-03 10:38:22.491 ***
bOb_add_contact_and_be_invited_1316@localhost/res1 in
<iq id='8b0d983a2f2cb78e8a031dbc34f78af8' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_add_contact_and_be_invited_1316@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-03 10:38:22.492 ***
bOb_add_contact_and_be_invited_1316@localhost/res1 out
<iq type='set' id='e9af12ffe115fbe452703b0b4738f316'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:38:22.492 ***
bOb_add_contact_and_be_invited_1316@localhost/res1 in
<iq type='result' id='e9af12ffe115fbe452703b0b4738f316'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:38:22.492 ***
bOb_add_contact_and_be_invited_1316@localhost/res1 out
<presence/>
*** User 2022-03-03 10:38:22.492 ***
bOb_add_contact_and_be_invited_1316@localhost/res1 in
<presence from='bOb_add_contact_and_be_invited_1316@localhost/res1' to='bob_add_contact_and_be_invited_1316@localhost/res1' xml:lang='en'/>
*** User 2022-03-03 10:38:22.503 ***
REST request:
Code: 200
Req: {<0.15714.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e3a6f8f63d48f311">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzEzMTZAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 03 Mar 2022 10:38:21 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1730}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_be_invited_1316@localhost">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-03 10:38:22.516 ***
REST request:
Code: 204
Req: {<0.15740.1>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"77b1e5dcfaf050c1">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzEzMTZAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_add_contact_and_be_invited_1316@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 03 Mar 2022 10:38:21 GMT">>}],
<<>>,80,1961}
Params: #{body =>
<<"{\"jid\":\"alice_add_contact_and_be_invited_1316@localhost\"}">>,
creds =>
{<<"bob_add_contact_and_be_invited_1316@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-03 10:38:22.516 ***
bOb_add_contact_and_be_invited_1316@localhost/res1 in
<iq from='bob_add_contact_and_be_invited_1316@localhost' to='bob_add_contact_and_be_invited_1316@localhost/res1' id='push3b1d41f265144cad' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_contact_and_be_invited_1316@localhost'/>
</query>
</iq>
*** User 2022-03-03 10:38:22.526 ***
REST request:
Code: 200
Req: {<0.15775.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5125d6b47e08400f">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzEzMTZAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 03 Mar 2022 10:38:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_1316@localhost\",\"ask\":\"none\"}]">>,
218,1491}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_be_invited_1316@localhost">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-03 10:38:22.526 ***
alicE_add_contact_and_be_invited_1316@localhost/res1 out
<iq type='set' id='0e89f108e52d1a05d7b9005b0cb33742'>
<query xmlns='jabber:iq:roster'>
<item jid='bOb_add_contact_and_be_invited_1316@localhost' name='Bobek'/>
</query>
</iq>
*** User 2022-03-03 10:38:22.554 ***
alicE_add_contact_and_be_invited_1316@localhost/res1 in
<iq from='alicE_add_contact_and_be_invited_1316@localhost' to='alicE_add_contact_and_be_invited_1316@localhost/res1' id='pushdeeb35d28ea73327' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bobek' jid='bob_add_contact_and_be_invited_1316@localhost'/>
</query>
</iq>
*** User 2022-03-03 10:38:22.554 ***
alicE_add_contact_and_be_invited_1316@localhost/res1 in
<iq from='alicE_add_contact_and_be_invited_1316@localhost' to='alicE_add_contact_and_be_invited_1316@localhost/res1' id='0e89f108e52d1a05d7b9005b0cb33742' type='result'/>
*** User 2022-03-03 10:38:22.554 ***
alicE_add_contact_and_be_invited_1316@localhost/res1 out
<presence type='subscribe' to='bOb_add_contact_and_be_invited_1316@localhost'/>
*** User 2022-03-03 10:38:22.559 ***
alicE_add_contact_and_be_invited_1316@localhost/res1 in
<iq from='alicE_add_contact_and_be_invited_1316@localhost' to='alicE_add_contact_and_be_invited_1316@localhost/res1' id='pushcfd94b2c48dd80bc' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' name='Bobek' jid='bob_add_contact_and_be_invited_1316@localhost'/>
</query>
</iq>
*** User 2022-03-03 10:38:22.559 ***
bOb_add_contact_and_be_invited_1316@localhost/res1 in
<presence from='alicE_add_contact_and_be_invited_1316@localhost' to='bOb_add_contact_and_be_invited_1316@localhost/res1' xml:lang='en' type='subscribe'/>
*** User 2022-03-03 10:38:22.574 ***
REST request:
Code: 200
Req: {<0.15808.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"48d2ff09b2b64052">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzEzMTZAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 03 Mar 2022 10:38:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"92">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_1316@localhost\",\"ask\":\"in\"}]">>,
216,2756}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_be_invited_1316@localhost">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-03 10:38:22.584 ***
REST request:
Code: 204
Req: {<0.15842.1>,
<<"/api/contacts/alice_add_contact_and_be_invited_1316@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"650dd1ef135081df">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzEzMTZAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"action\":\"accept\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 03 Mar 2022 10:38:22 GMT">>}],
<<>>,80,2256}
Params: #{body => <<"{\"action\":\"accept\"}">>,
creds =>
{<<"bob_add_contact_and_be_invited_1316@localhost">>,
<<"makrolika">>},
method => <<"PUT">>,
path =>
<<"/api/contacts/alice_add_contact_and_be_invited_1316@localhost">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-03 10:38:22.584 ***
bOb_add_contact_and_be_invited_1316@localhost/res1 in
<iq from='bob_add_contact_and_be_invited_1316@localhost' to='bob_add_contact_and_be_invited_1316@localhost/res1' id='push8d31cbc3873daa9d' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_add_contact_and_be_invited_1316@localhost'/>
</query>
</iq>
*** User 2022-03-03 10:38:22.585 ***
alicE_add_contact_and_be_invited_1316@localhost/res1 in
<presence from='bOb_add_contact_and_be_invited_1316@localhost/res1' to='alice_add_contact_and_be_invited_1316@localhost/res1' xml:lang='en'/>
*** User 2022-03-03 10:38:22.585 ***
alicE_add_contact_and_be_invited_1316@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_1316@localhost' to='alice_add_contact_and_be_invited_1316@localhost/res1' id='pushd900b4eac8ef9670' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' name='Bobek' jid='bob_add_contact_and_be_invited_1316@localhost'/>
</query>
</iq>
*** User 2022-03-03 10:38:22.585 ***
alicE_add_contact_and_be_invited_1316@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_1316@localhost' to='alice_add_contact_and_be_invited_1316@localhost/res1' type='subscribed'/>
*** User 2022-03-03 10:38:22.585 ***
bOb_add_contact_and_be_invited_1316@localhost/res1 out
</stream:stream>
*** User 2022-03-03 10:38:22.585 ***
bOb_add_contact_and_be_invited_1316@localhost/res1 in
</stream:stream>
*** User 2022-03-03 10:38:22.585 ***
alicE_add_contact_and_be_invited_1316@localhost/res1 out
</stream:stream>
*** User 2022-03-03 10:38:22.586 ***
alicE_add_contact_and_be_invited_1316@localhost/res1 in
</stream:stream>
=== Ended at 2022-03-03 10:38:22
=== successfully completed test case
=== === Returned value: ok