=== Test case: rest_client_SUITE:add_contact_and_invite/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_invite.70914.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_invite_1315@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_invite_1315@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ebaa742d7e1dd029' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:38:22.485 ***
alicE_add_contact_and_invite_1315@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.485 ***
alicE_add_contact_and_invite_1315@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTMxNQBtYXR5Z3J5c2E=</auth>
*** User 2022-03-03 10:38:22.486 ***
alicE_add_contact_and_invite_1315@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-03 10:38:22.486 ***
alicE_add_contact_and_invite_1315@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_invite_1315@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f57eb6b0b13b4b43' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:38:22.487 ***
alicE_add_contact_and_invite_1315@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_invite_1315@localhost/res1 out
<iq type='set' id='240dc32a965a6cec61e504ccf2ead4a8'>
<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_invite_1315@localhost/res1 in
<iq id='240dc32a965a6cec61e504ccf2ead4a8' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_add_contact_and_invite_1315@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-03 10:38:22.487 ***
alicE_add_contact_and_invite_1315@localhost/res1 out
<iq type='set' id='6f64f774481648d6d4b96e450807c2e0'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:38:22.487 ***
alicE_add_contact_and_invite_1315@localhost/res1 in
<iq type='result' id='6f64f774481648d6d4b96e450807c2e0'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:38:22.487 ***
alicE_add_contact_and_invite_1315@localhost/res1 out
<presence/>
*** User 2022-03-03 10:38:22.488 ***
alicE_add_contact_and_invite_1315@localhost/res1 in
<presence from='alicE_add_contact_and_invite_1315@localhost/res1' to='alice_add_contact_and_invite_1315@localhost/res1' xml:lang='en'/>
*** User 2022-03-03 10:38:22.489 ***
bOb_add_contact_and_invite_1315@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_invite_1315@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fffab04010dd0ca3' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:38:22.489 ***
bOb_add_contact_and_invite_1315@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.489 ***
bOb_add_contact_and_invite_1315@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfaW52aXRlXzEzMTUAbWFrcm9saWth</auth>
*** User 2022-03-03 10:38:22.490 ***
bOb_add_contact_and_invite_1315@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-03 10:38:22.490 ***
bOb_add_contact_and_invite_1315@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_invite_1315@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='04b4e1c2f6c43594' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:38:22.491 ***
bOb_add_contact_and_invite_1315@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_invite_1315@localhost/res1 out
<iq type='set' id='f1118cffc9bcb0e09561588832554f22'>
<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_invite_1315@localhost/res1 in
<iq id='f1118cffc9bcb0e09561588832554f22' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_add_contact_and_invite_1315@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-03 10:38:22.491 ***
bOb_add_contact_and_invite_1315@localhost/res1 out
<iq type='set' id='09fbc2a47be329e98707953b1d2b9c9c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:38:22.491 ***
bOb_add_contact_and_invite_1315@localhost/res1 in
<iq type='result' id='09fbc2a47be329e98707953b1d2b9c9c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:38:22.491 ***
bOb_add_contact_and_invite_1315@localhost/res1 out
<presence/>
*** User 2022-03-03 10:38:22.492 ***
bOb_add_contact_and_invite_1315@localhost/res1 in
<presence from='bOb_add_contact_and_invite_1315@localhost/res1' to='bob_add_contact_and_invite_1315@localhost/res1' xml:lang='en'/>
*** User 2022-03-03 10:38:22.502 ***
REST request:
Code: 200
Req: {<0.15712.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"11a0fe8408981f9b">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTMxNUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 03 Mar 2022 10:38:21 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2510}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_invite_1315@localhost">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-03 10:38:22.514 ***
REST request:
Code: 204
Req: {<0.15734.1>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"124824d5b9425066">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTMxNUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_contact_and_invite_1315@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 03 Mar 2022 10:38:21 GMT">>}],
<<>>,80,1984}
Params: #{body =>
<<"{\"jid\":\"alice_add_contact_and_invite_1315@localhost\"}">>,
creds =>
{<<"bob_add_contact_and_invite_1315@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-03 10:38:22.514 ***
bOb_add_contact_and_invite_1315@localhost/res1 in
<iq from='bob_add_contact_and_invite_1315@localhost' to='bob_add_contact_and_invite_1315@localhost/res1' id='push5ceb53258234f536' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_contact_and_invite_1315@localhost'/>
</query>
</iq>
*** User 2022-03-03 10:38:22.524 ***
REST request:
Code: 200
Req: {<0.15764.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"783585a4c1fdc9ea">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTMxNUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 03 Mar 2022 10:38:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"90">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_invite_1315@localhost\",\"ask\":\"none\"}]">>,
214,3126}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_invite_1315@localhost">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-03 10:38:22.565 ***
REST request:
Code: 204
Req: {<0.15788.1>,
<<"/api/contacts/alice_add_contact_and_invite_1315@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6ffa69cd6e14a803">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTMxNUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"action\":\"invite\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 03 Mar 2022 10:38:22 GMT">>}],
<<>>,80,4068}
Params: #{body => <<"{\"action\":\"invite\"}">>,
creds =>
{<<"bob_add_contact_and_invite_1315@localhost">>,
<<"makrolika">>},
method => <<"PUT">>,
path =>
<<"/api/contacts/alice_add_contact_and_invite_1315@localhost">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-03 10:38:22.565 ***
bOb_add_contact_and_invite_1315@localhost/res1 in
<iq from='bob_add_contact_and_invite_1315@localhost' to='bob_add_contact_and_invite_1315@localhost/res1' id='push5bcc617ad4b655ef' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='alice_add_contact_and_invite_1315@localhost'/>
</query>
</iq>
*** User 2022-03-03 10:38:22.565 ***
Push2: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_add_contact_and_invite_1315@localhost">>},
{<<"to">>,<<"bob_add_contact_and_invite_1315@localhost/res1">>},
{<<"id">>,<<"push5bcc617ad4b655ef">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"ask">>,<<"subscribe">>},
{<<"subscription">>,<<"none">>},
{<<"jid">>,
<<"alice_add_contact_and_invite_1315@localhost">>}],
[]}]}]}
*** User 2022-03-03 10:38:22.565 ***
alicE_add_contact_and_invite_1315@localhost/res1 in
<presence from='bob_add_contact_and_invite_1315@localhost' to='alice_add_contact_and_invite_1315@localhost/res1' type='subscribe'/>
*** User 2022-03-03 10:38:22.576 ***
REST request:
Code: 200
Req: {<0.15827.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ebe4a32c0fb64f7c">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTMxNUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 03 Mar 2022 10:38:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_invite_1315@localhost\",\"ask\":\"out\"}]">>,
213,1051}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_invite_1315@localhost">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-03 10:38:22.576 ***
alicE_add_contact_and_invite_1315@localhost/res1 out
<iq type='set' id='2b68433af05dd39706af7cc8d5807472'>
<query xmlns='jabber:iq:roster'>
<item jid='bOb_add_contact_and_invite_1315@localhost' name='Bob'/>
</query>
</iq>
*** User 2022-03-03 10:38:22.577 ***
alicE_add_contact_and_invite_1315@localhost/res1 in
<iq from='alicE_add_contact_and_invite_1315@localhost' to='alicE_add_contact_and_invite_1315@localhost/res1' id='pushd92c8acc090f3d23' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bob' jid='bob_add_contact_and_invite_1315@localhost'/>
</query>
</iq>
*** User 2022-03-03 10:38:22.577 ***
alicE_add_contact_and_invite_1315@localhost/res1 out
<iq to='alicE_add_contact_and_invite_1315@localhost' id='pushd92c8acc090f3d23' type='result'/>
*** User 2022-03-03 10:38:22.577 ***
alicE_add_contact_and_invite_1315@localhost/res1 in
<iq from='alicE_add_contact_and_invite_1315@localhost' to='alicE_add_contact_and_invite_1315@localhost/res1' id='2b68433af05dd39706af7cc8d5807472' type='result'/>
*** User 2022-03-03 10:38:22.577 ***
alicE_add_contact_and_invite_1315@localhost/res1 out
<presence type='subscribed' to='bOb_add_contact_and_invite_1315@localhost'/>
*** User 2022-03-03 10:38:22.580 ***
bOb_add_contact_and_invite_1315@localhost/res1 in
<iq from='bOb_add_contact_and_invite_1315@localhost' to='bOb_add_contact_and_invite_1315@localhost/res1' id='push664ed4cd5e272b19' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='alice_add_contact_and_invite_1315@localhost'/>
</query>
</iq>
*** User 2022-03-03 10:38:22.580 ***
Push3 {xmlel,<<"iq">>,
[{<<"from">>,<<"bOb_add_contact_and_invite_1315@localhost">>},
{<<"to">>,<<"bOb_add_contact_and_invite_1315@localhost/res1">>},
{<<"id">>,<<"push664ed4cd5e272b19">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"to">>},
{<<"jid">>,
<<"alice_add_contact_and_invite_1315@localhost">>}],
[]}]}]}
*** User 2022-03-03 10:38:22.589 ***
REST request:
Code: 200
Req: {<0.15856.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f257f0f3e7dafb6e">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMTMxNUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 03 Mar 2022 10:38:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"88">>}],
<<"[{\"subscription\":\"to\",\"jid\":\"alice_add_contact_and_invite_1315@localhost\",\"ask\":\"none\"}]">>,
212,1198}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_invite_1315@localhost">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-03 10:38:22.589 ***
bOb_add_contact_and_invite_1315@localhost/res1 out
</stream:stream>
*** User 2022-03-03 10:38:22.590 ***
bOb_add_contact_and_invite_1315@localhost/res1 in
</stream:stream>
*** User 2022-03-03 10:38:22.590 ***
alicE_add_contact_and_invite_1315@localhost/res1 out
</stream:stream>
*** User 2022-03-03 10:38:22.590 ***
alicE_add_contact_and_invite_1315@localhost/res1 in
</stream:stream>
=== Ended at 2022-03-03 10:38:22
=== successfully completed test case
=== === Returned value: ok