=== Test case: rest_client_SUITE:add_contact_and_be_invited/1 (click for source code)
=== Config value:
[{watchdog,<0.26880.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@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.rest_client_SUITE.logs/run.2022-01-27_12.36.44/rest_client_suite.add_contact_and_be_invited.109955.html"},
{tc_group_properties,[{name,roster},{repeat_until_all_ok,3},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@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.rest_client_SUITE.logs/run.2022-01-27_12.36.44/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@998557c7e1d1.2022-01-27_12.27.57"
=== Started at 2022-01-27 12:36:48
*** User 2022-01-27 12:36:48.084 ***
alicE_add_contact_and_be_invited_1776@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-01-27 12:36:48.084 ***
alicE_add_contact_and_be_invited_1776@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5b45ef5d8ef3b60f' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:48.084 ***
alicE_add_contact_and_be_invited_1776@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-01-27 12:36:48.084 ***
alicE_add_contact_and_be_invited_1776@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzE3NzYAbWF0eWdyeXNh</auth>
*** User 2022-01-27 12:36:48.085 ***
alicE_add_contact_and_be_invited_1776@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:36:48.086 ***
alicE_add_contact_and_be_invited_1776@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-01-27 12:36:48.086 ***
alicE_add_contact_and_be_invited_1776@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='30ab27b6b12f740e' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:48.086 ***
alicE_add_contact_and_be_invited_1776@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-01-27 12:36:48.086 ***
alicE_add_contact_and_be_invited_1776@domain.example.com/res1 out
<iq type='set' id='7890542ba769c320847cc089e81c5886'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:36:48.086 ***
alicE_add_contact_and_be_invited_1776@domain.example.com/res1 in
<iq id='7890542ba769c320847cc089e81c5886' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_add_contact_and_be_invited_1776@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:36:48.087 ***
alicE_add_contact_and_be_invited_1776@domain.example.com/res1 out
<iq type='set' id='153a4f4bb0e0b381ebd3d1ca89d7703e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:48.087 ***
alicE_add_contact_and_be_invited_1776@domain.example.com/res1 in
<iq type='result' id='153a4f4bb0e0b381ebd3d1ca89d7703e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:48.087 ***
alicE_add_contact_and_be_invited_1776@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:36:48.090 ***
alicE_add_contact_and_be_invited_1776@domain.example.com/res1 in
<presence from='alicE_add_contact_and_be_invited_1776@domain.example.com/res1' to='alice_add_contact_and_be_invited_1776@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:36:48.091 ***
bOb_add_contact_and_be_invited_1776@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-01-27 12:36:48.091 ***
bOb_add_contact_and_be_invited_1776@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e59fcb5a9962ccfd' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:48.091 ***
bOb_add_contact_and_be_invited_1776@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-01-27 12:36:48.091 ***
bOb_add_contact_and_be_invited_1776@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfYmVfaW52aXRlZF8xNzc2AG1ha3JvbGlrYQ==</auth>
*** User 2022-01-27 12:36:48.093 ***
bOb_add_contact_and_be_invited_1776@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:36:48.093 ***
bOb_add_contact_and_be_invited_1776@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-01-27 12:36:48.094 ***
bOb_add_contact_and_be_invited_1776@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='717e64df8bcb3621' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:48.094 ***
bOb_add_contact_and_be_invited_1776@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-01-27 12:36:48.094 ***
bOb_add_contact_and_be_invited_1776@domain.example.com/res1 out
<iq type='set' id='f6549854cbd83f3f0a91acbfe919c9c0'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:36:48.094 ***
bOb_add_contact_and_be_invited_1776@domain.example.com/res1 in
<iq id='f6549854cbd83f3f0a91acbfe919c9c0' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_add_contact_and_be_invited_1776@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:36:48.094 ***
bOb_add_contact_and_be_invited_1776@domain.example.com/res1 out
<iq type='set' id='b2bae0d2b5b6ff06496fbb24a556d4c8'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:48.095 ***
bOb_add_contact_and_be_invited_1776@domain.example.com/res1 in
<iq type='result' id='b2bae0d2b5b6ff06496fbb24a556d4c8'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:48.095 ***
bOb_add_contact_and_be_invited_1776@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:36:48.101 ***
bOb_add_contact_and_be_invited_1776@domain.example.com/res1 in
<presence from='bOb_add_contact_and_be_invited_1776@domain.example.com/res1' to='bob_add_contact_and_be_invited_1776@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:36:48.135 ***
REST request:
Code: 200
Req: {<0.26969.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"61895c52254336f0">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzE3NzZAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:47 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,21249}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_be_invited_1776@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:48.165 ***
REST request:
Code: 204
Req: {<0.26979.1>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"937ffed4d7e2deb2">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzE3NzZAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_add_contact_and_be_invited_1776@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:47 GMT">>}],
<<>>,80,17120}
Params: #{body =>
<<"{\"jid\":\"alice_add_contact_and_be_invited_1776@domain.example.com\"}">>,
creds =>
{<<"bob_add_contact_and_be_invited_1776@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:48.165 ***
bOb_add_contact_and_be_invited_1776@domain.example.com/res1 in
<iq from='bob_add_contact_and_be_invited_1776@domain.example.com' to='bob_add_contact_and_be_invited_1776@domain.example.com/res1' id='pushe17c38314a65f05a' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_contact_and_be_invited_1776@domain.example.com'/>
</query>
</iq>
*** User 2022-01-27 12:36:48.184 ***
REST request:
Code: 200
Req: {<0.27008.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"12e6d5abea2228bf">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzE3NzZAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:47 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"103">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_1776@domain.example.com\",\"ask\":\"none\"}]">>,
228,3964}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_be_invited_1776@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:48.185 ***
alicE_add_contact_and_be_invited_1776@domain.example.com/res1 out
<iq type='set' id='06e2bda907b1bee2c7a85c422874c5fe'>
<query xmlns='jabber:iq:roster'>
<item jid='bOb_add_contact_and_be_invited_1776@domain.example.com' name='Bobek'/>
</query>
</iq>
*** User 2022-01-27 12:36:48.201 ***
alicE_add_contact_and_be_invited_1776@domain.example.com/res1 in
<iq from='alicE_add_contact_and_be_invited_1776@domain.example.com' to='alicE_add_contact_and_be_invited_1776@domain.example.com/res1' id='push8d40644911cdbb46' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bobek' jid='bob_add_contact_and_be_invited_1776@domain.example.com'/>
</query>
</iq>
*** User 2022-01-27 12:36:48.201 ***
alicE_add_contact_and_be_invited_1776@domain.example.com/res1 in
<iq from='alicE_add_contact_and_be_invited_1776@domain.example.com' to='alicE_add_contact_and_be_invited_1776@domain.example.com/res1' id='06e2bda907b1bee2c7a85c422874c5fe' type='result'/>
*** User 2022-01-27 12:36:48.202 ***
alicE_add_contact_and_be_invited_1776@domain.example.com/res1 out
<presence type='subscribe' to='bOb_add_contact_and_be_invited_1776@domain.example.com'/>
*** User 2022-01-27 12:36:48.241 ***
alicE_add_contact_and_be_invited_1776@domain.example.com/res1 in
<iq from='alicE_add_contact_and_be_invited_1776@domain.example.com' to='alicE_add_contact_and_be_invited_1776@domain.example.com/res1' id='push20333e7cdb67c391' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' name='Bobek' jid='bob_add_contact_and_be_invited_1776@domain.example.com'/>
</query>
</iq>
*** User 2022-01-27 12:36:48.241 ***
bOb_add_contact_and_be_invited_1776@domain.example.com/res1 in
<presence from='alicE_add_contact_and_be_invited_1776@domain.example.com' to='bOb_add_contact_and_be_invited_1776@domain.example.com/res1' xml:lang='en' type='subscribe'/>
*** User 2022-01-27 12:36:48.257 ***
REST request:
Code: 200
Req: {<0.27066.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a14a5f57eed9a0d8">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzE3NzZAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:47 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"101">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_1776@domain.example.com\",\"ask\":\"in\"}]">>,
226,3626}
Params: #{body => <<>>,
creds =>
{<<"bob_add_contact_and_be_invited_1776@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:48.278 ***
REST request:
Code: 204
Req: {<0.27088.1>,
<<"/api/contacts/alice_add_contact_and_be_invited_1776@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4729e6897f8c72d7">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzE3NzZAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<"{\"action\":\"accept\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:48 GMT">>}],
<<>>,80,11657}
Params: #{body => <<"{\"action\":\"accept\"}">>,
creds =>
{<<"bob_add_contact_and_be_invited_1776@domain.example.com">>,
<<"makrolika">>},
method => <<"PUT">>,
path =>
<<"/api/contacts/alice_add_contact_and_be_invited_1776@domain.example.com">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:48.278 ***
bOb_add_contact_and_be_invited_1776@domain.example.com/res1 in
<iq from='bob_add_contact_and_be_invited_1776@domain.example.com' to='bob_add_contact_and_be_invited_1776@domain.example.com/res1' id='push7cfc4b8dfabf09ba' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_add_contact_and_be_invited_1776@domain.example.com'/>
</query>
</iq>
*** User 2022-01-27 12:36:48.278 ***
alicE_add_contact_and_be_invited_1776@domain.example.com/res1 in
<presence from='bOb_add_contact_and_be_invited_1776@domain.example.com/res1' to='alice_add_contact_and_be_invited_1776@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:36:48.278 ***
alicE_add_contact_and_be_invited_1776@domain.example.com/res1 in
<iq from='alice_add_contact_and_be_invited_1776@domain.example.com' to='alice_add_contact_and_be_invited_1776@domain.example.com/res1' id='push2549de9a96e568b2' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' name='Bobek' jid='bob_add_contact_and_be_invited_1776@domain.example.com'/>
</query>
</iq>
*** User 2022-01-27 12:36:48.278 ***
alicE_add_contact_and_be_invited_1776@domain.example.com/res1 in
<presence from='bob_add_contact_and_be_invited_1776@domain.example.com' to='alice_add_contact_and_be_invited_1776@domain.example.com/res1' type='subscribed'/>
*** User 2022-01-27 12:36:48.279 ***
bOb_add_contact_and_be_invited_1776@domain.example.com/res1 out
</stream:stream>
*** User 2022-01-27 12:36:48.279 ***
bOb_add_contact_and_be_invited_1776@domain.example.com/res1 in
</stream:stream>
*** User 2022-01-27 12:36:48.279 ***
alicE_add_contact_and_be_invited_1776@domain.example.com/res1 out
</stream:stream>
*** User 2022-01-27 12:36:48.280 ***
alicE_add_contact_and_be_invited_1776@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-01-27 12:36:48
=== successfully completed test case
=== === Returned value: ok