=== Test case: rest_client_SUITE:add_contact_and_be_invited/1 (click for source code)
=== Config value:
[{watchdog,<0.2322.2>},
{muc_light_host,<<"muclight.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@f0b09cc3aef4.2022-05-25_09.03.38/big_tests.tests.rest_client_SUITE.logs/run.2022-05-25_09.13.27/rest_client_suite.add_contact_and_be_invited.115203.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@f0b09cc3aef4.2022-05-25_09.03.38/big_tests.tests.rest_client_SUITE.logs/run.2022-05-25_09.13.27/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_amp => #{},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{number_of_segments => 5,strategy => fifo,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue},
mod_commands => #{},
mod_disco =>
#{extra_domains => [],iqdisc => one_queue,server_info => [],
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"}],
iqdisc => one_queue,password_strength => 0,
registration_watchers => []},
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,store_current_id => false,
versioning => false},
mod_sic => #{iqdisc => one_queue},
mod_stream_management =>
#{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
buffer_max => 100,resume_timeout => 600,
stale_h =>
#{enabled => false,geriatric => 3600,repeat_after => 1800}},
mod_vcard =>
#{backend => rdbms,
host => {prefix,<<"vjud.">>},
iqdisc => parallel,matches => 30,search => true}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@f0b09cc3aef4.2022-05-25_09.03.38"
=== Started at 2022-05-25 09:13:30
*** User 2022-05-25 09:13:30.667 ***
alicE_add_contact_and_be_invited_2066@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-05-25 09:13:30.667 ***
alicE_add_contact_and_be_invited_2066@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3be6a80089fdab3e' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-25 09:13:30.667 ***
alicE_add_contact_and_be_invited_2066@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-05-25 09:13:30.667 ***
alicE_add_contact_and_be_invited_2066@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzIwNjYAbWF0eWdyeXNh</auth>
*** User 2022-05-25 09:13:30.668 ***
alicE_add_contact_and_be_invited_2066@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 09:13:30.668 ***
alicE_add_contact_and_be_invited_2066@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-05-25 09:13:30.669 ***
alicE_add_contact_and_be_invited_2066@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='932bf5af97ea3b63' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-25 09:13:30.669 ***
alicE_add_contact_and_be_invited_2066@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-05-25 09:13:30.669 ***
alicE_add_contact_and_be_invited_2066@domain.example.com/res1 out
<iq type='set' id='847a2360302a07629a38aca1f0aa7578'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 09:13:30.669 ***
alicE_add_contact_and_be_invited_2066@domain.example.com/res1 in
<iq id='847a2360302a07629a38aca1f0aa7578' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_contact_and_be_invited_2066@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-05-25 09:13:30.669 ***
alice_add_contact_and_be_invited_2066@domain.example.com/res1 out
<iq type='set' id='f717689b62397fe4851cc01014986f4f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 09:13:30.669 ***
alice_add_contact_and_be_invited_2066@domain.example.com/res1 in
<iq type='result' id='f717689b62397fe4851cc01014986f4f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 09:13:30.670 ***
alice_add_contact_and_be_invited_2066@domain.example.com/res1 out
<presence/>
*** User 2022-05-25 09:13:30.672 ***
alice_add_contact_and_be_invited_2066@domain.example.com/res1 in
<presence from='alice_add_contact_and_be_invited_2066@domain.example.com/res1' to='alice_add_contact_and_be_invited_2066@domain.example.com/res1' xml:lang='en'/>
*** User 2022-05-25 09:13:30.672 ***
bOb_add_contact_and_be_invited_2066@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-05-25 09:13:30.673 ***
bOb_add_contact_and_be_invited_2066@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c86d0fa3c3e4f142' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-25 09:13:30.673 ***
bOb_add_contact_and_be_invited_2066@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-05-25 09:13:30.673 ***
bOb_add_contact_and_be_invited_2066@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfYmVfaW52aXRlZF8yMDY2AG1ha3JvbGlrYQ==</auth>
*** User 2022-05-25 09:13:30.674 ***
bOb_add_contact_and_be_invited_2066@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 09:13:30.674 ***
bOb_add_contact_and_be_invited_2066@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-05-25 09:13:30.674 ***
bOb_add_contact_and_be_invited_2066@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5d7563c486f88c38' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-25 09:13:30.674 ***
bOb_add_contact_and_be_invited_2066@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-05-25 09:13:30.674 ***
bOb_add_contact_and_be_invited_2066@domain.example.com/res1 out
<iq type='set' id='599e4e1d1230be144963bfedc8ff4f16'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 09:13:30.675 ***
bOb_add_contact_and_be_invited_2066@domain.example.com/res1 in
<iq id='599e4e1d1230be144963bfedc8ff4f16' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_contact_and_be_invited_2066@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-05-25 09:13:30.675 ***
bob_add_contact_and_be_invited_2066@domain.example.com/res1 out
<iq type='set' id='96ab20c614faf307dbf80c25eb90a89c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 09:13:30.675 ***
bob_add_contact_and_be_invited_2066@domain.example.com/res1 in
<iq type='result' id='96ab20c614faf307dbf80c25eb90a89c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 09:13:30.675 ***
bob_add_contact_and_be_invited_2066@domain.example.com/res1 out
<presence/>
*** User 2022-05-25 09:13:30.677 ***
bob_add_contact_and_be_invited_2066@domain.example.com/res1 in
<presence from='bob_add_contact_and_be_invited_2066@domain.example.com/res1' to='bob_add_contact_and_be_invited_2066@domain.example.com/res1' xml:lang='en'/>
*** User 2022-05-25 09:13:30.687 ***
REST request:
Code: 200
Req: {<0.2399.2>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8673db7e4d2e4788">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzIwNjZAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 09:13:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1867}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_be_invited_2066@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 09:13:30.701 ***
REST request:
Code: 204
Req: {<0.2420.2>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9743d51a032e22e2">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzIwNjZAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_add_contact_and_be_invited_2066@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 09:13:30 GMT">>}],
<<>>,80,6045}
Params: #{body =>
<<"{\"jid\":\"alice_add_contact_and_be_invited_2066@domain.example.com\"}">>,
creds =>
{<<"bob_add_contact_and_be_invited_2066@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 09:13:30.701 ***
bob_add_contact_and_be_invited_2066@domain.example.com/res1 in
<iq from='bob_add_contact_and_be_invited_2066@domain.example.com' to='bob_add_contact_and_be_invited_2066@domain.example.com/res1' id='push73d04c9eb938116d' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_contact_and_be_invited_2066@domain.example.com'/>
</query>
</iq>
*** User 2022-05-25 09:13:30.767 ***
REST request:
Code: 200
Req: {<0.2451.2>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2b42fbc5334a5a66">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzIwNjZAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 09:13:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"103">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_2066@domain.example.com\",\"ask\":\"none\"}]">>,
228,3234}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_be_invited_2066@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 09:13:30.768 ***
alice_add_contact_and_be_invited_2066@domain.example.com/res1 out
<iq type='set' id='1e1c81afab11ead98e0a5a03f5e0b440'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_add_contact_and_be_invited_2066@domain.example.com' name='Bobek'/>
</query>
</iq>
*** User 2022-05-25 09:13:30.771 ***
alice_add_contact_and_be_invited_2066@domain.example.com/res1 in
<iq from='alice_add_contact_and_be_invited_2066@domain.example.com' to='alice_add_contact_and_be_invited_2066@domain.example.com/res1' id='pushde38b156f2312b97' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bobek' jid='bob_add_contact_and_be_invited_2066@domain.example.com'/>
</query>
</iq>
*** User 2022-05-25 09:13:30.771 ***
alice_add_contact_and_be_invited_2066@domain.example.com/res1 in
<iq from='alice_add_contact_and_be_invited_2066@domain.example.com' to='alice_add_contact_and_be_invited_2066@domain.example.com/res1' id='1e1c81afab11ead98e0a5a03f5e0b440' type='result'/>
*** User 2022-05-25 09:13:30.771 ***
alice_add_contact_and_be_invited_2066@domain.example.com/res1 out
<presence type='subscribe' to='bob_add_contact_and_be_invited_2066@domain.example.com'/>
*** User 2022-05-25 09:13:30.783 ***
alice_add_contact_and_be_invited_2066@domain.example.com/res1 in
<iq from='alice_add_contact_and_be_invited_2066@domain.example.com' to='alice_add_contact_and_be_invited_2066@domain.example.com/res1' id='pusha265b789dd7bd610' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' name='Bobek' jid='bob_add_contact_and_be_invited_2066@domain.example.com'/>
</query>
</iq>
*** User 2022-05-25 09:13:30.783 ***
bob_add_contact_and_be_invited_2066@domain.example.com/res1 in
<presence from='alice_add_contact_and_be_invited_2066@domain.example.com' to='bob_add_contact_and_be_invited_2066@domain.example.com/res1' xml:lang='en' type='subscribe'/>
*** User 2022-05-25 09:13:30.796 ***
REST request:
Code: 200
Req: {<0.2513.2>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a790ac1714c2d61f">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzIwNjZAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 09:13:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"101">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_2066@domain.example.com\",\"ask\":\"in\"}]">>,
226,2663}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_be_invited_2066@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 09:13:30.863 ***
REST request:
Code: 204
Req: {<0.2534.2>,
<<"/api/contacts/alice_add_contact_and_be_invited_2066@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5e67393f362d3c49">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzIwNjZAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<"{\"action\":\"accept\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 09:13:30 GMT">>}],
<<>>,80,58442}
Params: #{body => <<"{\"action\":\"accept\"}">>,
creds =>
{<<"bob_add_contact_and_be_invited_2066@domain.example.com">>,
<<"makrolika">>},
method => <<"PUT">>,
path =>
<<"/api/contacts/alice_add_contact_and_be_invited_2066@domain.example.com">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 09:13:30.863 ***
bob_add_contact_and_be_invited_2066@domain.example.com/res1 in
<iq from='bob_add_contact_and_be_invited_2066@domain.example.com' to='bob_add_contact_and_be_invited_2066@domain.example.com/res1' id='push5a4143807d584321' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_add_contact_and_be_invited_2066@domain.example.com'/>
</query>
</iq>
*** User 2022-05-25 09:13:30.863 ***
alice_add_contact_and_be_invited_2066@domain.example.com/res1 in
<presence from='bob_add_contact_and_be_invited_2066@domain.example.com/res1' to='alice_add_contact_and_be_invited_2066@domain.example.com/res1' xml:lang='en'/>
*** User 2022-05-25 09:13:30.863 ***
alice_add_contact_and_be_invited_2066@domain.example.com/res1 in
<iq from='alice_add_contact_and_be_invited_2066@domain.example.com' to='alice_add_contact_and_be_invited_2066@domain.example.com/res1' id='pushf55da64206b92444' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' name='Bobek' jid='bob_add_contact_and_be_invited_2066@domain.example.com'/>
</query>
</iq>
*** User 2022-05-25 09:13:30.863 ***
alice_add_contact_and_be_invited_2066@domain.example.com/res1 in
<presence from='bob_add_contact_and_be_invited_2066@domain.example.com' to='alice_add_contact_and_be_invited_2066@domain.example.com/res1' type='subscribed'/>
*** User 2022-05-25 09:13:30.864 ***
bob_add_contact_and_be_invited_2066@domain.example.com/res1 out
</stream:stream>
*** User 2022-05-25 09:13:30.864 ***
bob_add_contact_and_be_invited_2066@domain.example.com/res1 in
</stream:stream>
*** User 2022-05-25 09:13:30.864 ***
alice_add_contact_and_be_invited_2066@domain.example.com/res1 out
</stream:stream>
*** User 2022-05-25 09:13:30.865 ***
alice_add_contact_and_be_invited_2066@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-05-25 09:13:30
=== successfully completed test case
=== === Returned value: ok