=== Test case: rest_client_SUITE:add_contact_and_be_invited/1 (click for source code)
=== Config value:
[{watchdog,<0.1986.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,"pgsql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@df370d24fb6d.2022-05-11_08.56.40/big_tests.tests.rest_client_SUITE.logs/run.2022-05-11_09.04.42/rest_client_suite.add_contact_and_be_invited.109955.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@df370d24fb6d.2022-05-11_08.56.40/big_tests.tests.rest_client_SUITE.logs/run.2022-05-11_09.04.42/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@df370d24fb6d.2022-05-11_08.56.40"
=== Started at 2022-05-11 09:04:45
*** User 2022-05-11 09:04:45.372 ***
alicE_add_contact_and_be_invited_2032@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-11 09:04:45.373 ***
alicE_add_contact_and_be_invited_2032@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5d56e80591a12cbd' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-11 09:04:45.373 ***
alicE_add_contact_and_be_invited_2032@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-11 09:04:45.373 ***
alicE_add_contact_and_be_invited_2032@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzIwMzIAbWF0eWdyeXNh</auth>
*** User 2022-05-11 09:04:45.374 ***
alicE_add_contact_and_be_invited_2032@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-11 09:04:45.374 ***
alicE_add_contact_and_be_invited_2032@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-11 09:04:45.374 ***
alicE_add_contact_and_be_invited_2032@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d760e1ef090ecf6e' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-11 09:04:45.374 ***
alicE_add_contact_and_be_invited_2032@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-11 09:04:45.374 ***
alicE_add_contact_and_be_invited_2032@domain.example.com/res1 out
<iq type='set' id='fd859d3b6afce824fe6e3b69a5cf05f9'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-11 09:04:45.374 ***
alicE_add_contact_and_be_invited_2032@domain.example.com/res1 in
<iq id='fd859d3b6afce824fe6e3b69a5cf05f9' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_add_contact_and_be_invited_2032@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-05-11 09:04:45.375 ***
alicE_add_contact_and_be_invited_2032@domain.example.com/res1 out
<iq type='set' id='bb4a71a32887d8ad272f5debc3b9ac5c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-11 09:04:45.375 ***
alicE_add_contact_and_be_invited_2032@domain.example.com/res1 in
<iq type='result' id='bb4a71a32887d8ad272f5debc3b9ac5c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-11 09:04:45.375 ***
alicE_add_contact_and_be_invited_2032@domain.example.com/res1 out
<presence/>
*** User 2022-05-11 09:04:45.376 ***
alicE_add_contact_and_be_invited_2032@domain.example.com/res1 in
<presence from='alicE_add_contact_and_be_invited_2032@domain.example.com/res1' to='alice_add_contact_and_be_invited_2032@domain.example.com/res1' xml:lang='en'/>
*** User 2022-05-11 09:04:45.377 ***
bOb_add_contact_and_be_invited_2032@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-11 09:04:45.377 ***
bOb_add_contact_and_be_invited_2032@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='eeac441e53cb2e9a' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-11 09:04:45.377 ***
bOb_add_contact_and_be_invited_2032@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-11 09:04:45.378 ***
bOb_add_contact_and_be_invited_2032@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfYmVfaW52aXRlZF8yMDMyAG1ha3JvbGlrYQ==</auth>
*** User 2022-05-11 09:04:45.378 ***
bOb_add_contact_and_be_invited_2032@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-11 09:04:45.378 ***
bOb_add_contact_and_be_invited_2032@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-11 09:04:45.378 ***
bOb_add_contact_and_be_invited_2032@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c2326ce3d0b5c87c' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-11 09:04:45.379 ***
bOb_add_contact_and_be_invited_2032@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-11 09:04:45.379 ***
bOb_add_contact_and_be_invited_2032@domain.example.com/res1 out
<iq type='set' id='f386f8472e008995c3b3720726a7f939'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-11 09:04:45.379 ***
bOb_add_contact_and_be_invited_2032@domain.example.com/res1 in
<iq id='f386f8472e008995c3b3720726a7f939' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_add_contact_and_be_invited_2032@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-05-11 09:04:45.379 ***
bOb_add_contact_and_be_invited_2032@domain.example.com/res1 out
<iq type='set' id='daaefedab621599348852b2efc305465'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-11 09:04:45.379 ***
bOb_add_contact_and_be_invited_2032@domain.example.com/res1 in
<iq type='result' id='daaefedab621599348852b2efc305465'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-11 09:04:45.379 ***
bOb_add_contact_and_be_invited_2032@domain.example.com/res1 out
<presence/>
*** User 2022-05-11 09:04:45.381 ***
bOb_add_contact_and_be_invited_2032@domain.example.com/res1 in
<presence from='bOb_add_contact_and_be_invited_2032@domain.example.com/res1' to='bob_add_contact_and_be_invited_2032@domain.example.com/res1' xml:lang='en'/>
*** User 2022-05-11 09:04:45.391 ***
REST request:
Code: 200
Req: {<0.2076.2>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"31444700eab4975b">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzIwMzJAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 11 May 2022 09:04:45 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2438}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_be_invited_2032@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-05-11 09:04:45.412 ***
REST request:
Code: 204
Req: {<0.2099.2>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"023b149da4f3e324">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzIwMzJAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_add_contact_and_be_invited_2032@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 11 May 2022 09:04:45 GMT">>}],
<<>>,80,9677}
Params: #{body =>
<<"{\"jid\":\"alice_add_contact_and_be_invited_2032@domain.example.com\"}">>,
creds =>
{<<"bob_add_contact_and_be_invited_2032@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-05-11 09:04:45.413 ***
bOb_add_contact_and_be_invited_2032@domain.example.com/res1 in
<iq from='bob_add_contact_and_be_invited_2032@domain.example.com' to='bob_add_contact_and_be_invited_2032@domain.example.com/res1' id='push3754c382fb6d14c3' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_contact_and_be_invited_2032@domain.example.com'/>
</query>
</iq>
*** User 2022-05-11 09:04:45.422 ***
REST request:
Code: 200
Req: {<0.2137.2>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c2b12f2173e2e777">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzIwMzJAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 11 May 2022 09:04:45 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"103">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_2032@domain.example.com\",\"ask\":\"none\"}]">>,
228,1192}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_be_invited_2032@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-05-11 09:04:45.422 ***
alicE_add_contact_and_be_invited_2032@domain.example.com/res1 out
<iq type='set' id='033c026e329165fe87edbb4559c5e418'>
<query xmlns='jabber:iq:roster'>
<item jid='bOb_add_contact_and_be_invited_2032@domain.example.com' name='Bobek'/>
</query>
</iq>
*** User 2022-05-11 09:04:45.425 ***
alicE_add_contact_and_be_invited_2032@domain.example.com/res1 in
<iq from='alicE_add_contact_and_be_invited_2032@domain.example.com' to='alicE_add_contact_and_be_invited_2032@domain.example.com/res1' id='push39a20944d5166544' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bobek' jid='bob_add_contact_and_be_invited_2032@domain.example.com'/>
</query>
</iq>
*** User 2022-05-11 09:04:45.425 ***
alicE_add_contact_and_be_invited_2032@domain.example.com/res1 in
<iq from='alicE_add_contact_and_be_invited_2032@domain.example.com' to='alicE_add_contact_and_be_invited_2032@domain.example.com/res1' id='033c026e329165fe87edbb4559c5e418' type='result'/>
*** User 2022-05-11 09:04:45.425 ***
alicE_add_contact_and_be_invited_2032@domain.example.com/res1 out
<presence type='subscribe' to='bOb_add_contact_and_be_invited_2032@domain.example.com'/>
*** User 2022-05-11 09:04:45.429 ***
alicE_add_contact_and_be_invited_2032@domain.example.com/res1 in
<iq from='alicE_add_contact_and_be_invited_2032@domain.example.com' to='alicE_add_contact_and_be_invited_2032@domain.example.com/res1' id='push0be18d1ed4975396' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' name='Bobek' jid='bob_add_contact_and_be_invited_2032@domain.example.com'/>
</query>
</iq>
*** User 2022-05-11 09:04:45.429 ***
bOb_add_contact_and_be_invited_2032@domain.example.com/res1 in
<presence from='alicE_add_contact_and_be_invited_2032@domain.example.com' to='bOb_add_contact_and_be_invited_2032@domain.example.com/res1' xml:lang='en' type='subscribe'/>
*** User 2022-05-11 09:04:45.483 ***
REST request:
Code: 200
Req: {<0.2182.2>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a7b4e0ab5b66602f">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzIwMzJAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 11 May 2022 09:04:45 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"101">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_2032@domain.example.com\",\"ask\":\"in\"}]">>,
226,1713}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_be_invited_2032@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-05-11 09:04:45.497 ***
REST request:
Code: 204
Req: {<0.2204.2>,
<<"/api/contacts/alice_add_contact_and_be_invited_2032@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3ee6735fa9e577b6">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzIwMzJAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<"{\"action\":\"accept\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 11 May 2022 09:04:45 GMT">>}],
<<>>,80,5271}
Params: #{body => <<"{\"action\":\"accept\"}">>,
creds =>
{<<"bob_add_contact_and_be_invited_2032@domain.example.com">>,
<<"makrolika">>},
method => <<"PUT">>,
path =>
<<"/api/contacts/alice_add_contact_and_be_invited_2032@domain.example.com">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-05-11 09:04:45.497 ***
bOb_add_contact_and_be_invited_2032@domain.example.com/res1 in
<iq from='bob_add_contact_and_be_invited_2032@domain.example.com' to='bob_add_contact_and_be_invited_2032@domain.example.com/res1' id='push4d3b58052f720e0d' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_add_contact_and_be_invited_2032@domain.example.com'/>
</query>
</iq>
*** User 2022-05-11 09:04:45.497 ***
alicE_add_contact_and_be_invited_2032@domain.example.com/res1 in
<presence from='bOb_add_contact_and_be_invited_2032@domain.example.com/res1' to='alice_add_contact_and_be_invited_2032@domain.example.com/res1' xml:lang='en'/>
*** User 2022-05-11 09:04:45.497 ***
alicE_add_contact_and_be_invited_2032@domain.example.com/res1 in
<iq from='alice_add_contact_and_be_invited_2032@domain.example.com' to='alice_add_contact_and_be_invited_2032@domain.example.com/res1' id='push263b5bc5f934ed75' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' name='Bobek' jid='bob_add_contact_and_be_invited_2032@domain.example.com'/>
</query>
</iq>
*** User 2022-05-11 09:04:45.498 ***
alicE_add_contact_and_be_invited_2032@domain.example.com/res1 in
<presence from='bob_add_contact_and_be_invited_2032@domain.example.com' to='alice_add_contact_and_be_invited_2032@domain.example.com/res1' type='subscribed'/>
*** User 2022-05-11 09:04:45.498 ***
bOb_add_contact_and_be_invited_2032@domain.example.com/res1 out
</stream:stream>
*** User 2022-05-11 09:04:45.498 ***
bOb_add_contact_and_be_invited_2032@domain.example.com/res1 in
</stream:stream>
*** User 2022-05-11 09:04:45.498 ***
alicE_add_contact_and_be_invited_2032@domain.example.com/res1 out
</stream:stream>
*** User 2022-05-11 09:04:45.499 ***
alicE_add_contact_and_be_invited_2032@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-05-11 09:04:45
=== successfully completed test case
=== === Returned value: ok