=== Test case: graphql_roster_SUITE:user_delete_contacts/1 (click for source code) === Config value: [{schema_endpoint,user}, {watchdog,<0.26131.0>}, {{ejabberd_cwd,mongooseim@localhost}, "/home/circleci/project/_build/mim1/rel/mongooseim"}, {preset,"pgsql_cets"}, {mim_data_dir,"/home/circleci/project/big_tests/tests/graphql_roster_SUITE_data"}, {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@30ac10815d6f.2024-04-09_11.35.49/big_tests.tests.graphql_roster_SUITE.logs/run.2024-04-09_11.39.58/graphql_roster_suite.user_delete_contacts.html"}, {tc_group_properties,[{name,user_roster}]}, {tc_group_path,[]}, {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/graphql_roster_SUITE_data/"}, {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@30ac10815d6f.2024-04-09_11.35.49/big_tests.tests.graphql_roster_SUITE.logs/run.2024-04-09_11.39.58/log_private/"}, {{saved_modules,mongooseim@localhost,<<"localhost">>}, #{mod_vcard => #{matches => 30, host => {prefix,<<"vjud.">>}, search => true,iqdisc => parallel,backend => rdbms}, mod_roster => #{iqdisc => one_queue,backend => rdbms,versioning => false, store_current_id => false}, mod_register => #{access => register,iqdisc => one_queue, registration_watchers => [],password_strength => 0, ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]}, mod_sic => #{iqdisc => one_queue}, mod_amp => #{}, mod_disco => #{iqdisc => one_queue,users_can_see_hidden_services => false, server_info => [],extra_domains => []}, mod_presence => #{}, mod_stream_management => #{buffer => true,ack => true,backend => cets, stale_h => #{enabled => false,repeat_after => 1800,geriatric => 3600}, buffer_max => 100,ack_freq => 1,resume_timeout => 600}, mod_adhoc => #{iqdisc => one_queue,report_commands_node => false}, mod_cache_users => #{strategy => fifo,number_of_segments => 5,time_to_live => 2}, mod_bosh => #{backend => cets,inactivity => 30,max_pause => 120, max_wait => infinity,server_acks => false}, mod_carboncopy => #{iqdisc => no_queue}}}] === Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@30ac10815d6f.2024-04-09_11.35.49" === Started at 2024-04-09 11:39:58
*** User 2024-04-09 11:39:58.654 ***🔗 alicE_user_delete_contacts_1144@localhost/res1 out <stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-09 11:39:58.654 ***🔗 alicE_user_delete_contacts_1144@localhost/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='668851ef17b8291f' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-09 11:39:58.654 ***🔗 alicE_user_delete_contacts_1144@localhost/res1 in <stream:features> <register xmlns='http://jabber.org/features/iq-register'/> <starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/> <mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'> <mechanism>SCRAM-SHA-256</mechanism> <mechanism>PLAIN</mechanism> </mechanisms> <amp xmlns='http://jabber.org/feature/amp'/> <sm xmlns='urn:xmpp:sm:3'/> </stream:features>
*** User 2024-04-09 11:39:58.654 ***🔗 alicE_user_delete_contacts_1144@localhost/res1 out <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VzZXJfZGVsZXRlX2NvbnRhY3RzXzExNDQAbWF0eWdyeXNh</auth>
*** User 2024-04-09 11:39:58.655 ***🔗 alicE_user_delete_contacts_1144@localhost/res1 in <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-09 11:39:58.655 ***🔗 alicE_user_delete_contacts_1144@localhost/res1 out <stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-09 11:39:58.655 ***🔗 alicE_user_delete_contacts_1144@localhost/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6632bb93e3873b4d' from='localhost' version='1.0' xml:lang='en' to='alice_user_delete_contacts_1144@localhost'>
*** User 2024-04-09 11:39:58.655 ***🔗 alicE_user_delete_contacts_1144@localhost/res1 in <stream:features> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/> <register xmlns='http://jabber.org/features/iq-register'/> <amp xmlns='http://jabber.org/feature/amp'/> <sm xmlns='urn:xmpp:sm:3'/> </stream:features>
*** User 2024-04-09 11:39:58.656 ***🔗 alicE_user_delete_contacts_1144@localhost/res1 out <iq type='set' id='1e711e3c42ee90b20040a47f52872321'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <resource>res1</resource> </bind> </iq>
*** User 2024-04-09 11:39:58.656 ***🔗 alicE_user_delete_contacts_1144@localhost/res1 in <iq id='1e711e3c42ee90b20040a47f52872321' type='result'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <jid>alice_user_delete_contacts_1144@localhost/res1</jid> </bind> </iq>
*** User 2024-04-09 11:39:58.656 ***🔗 alice_user_delete_contacts_1144@localhost/res1 out <iq type='set' id='a18ca85bb88af38fe49f8a57ea2a564e'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-04-09 11:39:58.656 ***🔗 alice_user_delete_contacts_1144@localhost/res1 in <iq from='localhost' to='alice_user_delete_contacts_1144@localhost/res1' id='a18ca85bb88af38fe49f8a57ea2a564e' type='result'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-04-09 11:39:58.657 ***🔗 alice_user_delete_contacts_1144@localhost/res1 out <presence/>
*** User 2024-04-09 11:39:58.657 ***🔗 alice_user_delete_contacts_1144@localhost/res1 in <presence from='alice_user_delete_contacts_1144@localhost/res1' to='alice_user_delete_contacts_1144@localhost/res1'/>
*** User 2024-04-09 11:39:58.658 ***🔗 bOb_user_delete_contacts_1144@localhost/res1 out <stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-09 11:39:58.658 ***🔗 bOb_user_delete_contacts_1144@localhost/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6d5fdbc8c21edb5c' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-09 11:39:58.658 ***🔗 bOb_user_delete_contacts_1144@localhost/res1 in <stream:features> <register xmlns='http://jabber.org/features/iq-register'/> <starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/> <mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'> <mechanism>SCRAM-SHA-256</mechanism> <mechanism>PLAIN</mechanism> </mechanisms> <amp xmlns='http://jabber.org/feature/amp'/> <sm xmlns='urn:xmpp:sm:3'/> </stream:features>
*** User 2024-04-09 11:39:58.658 ***🔗 bOb_user_delete_contacts_1144@localhost/res1 out <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl91c2VyX2RlbGV0ZV9jb250YWN0c18xMTQ0AG1ha3JvbGlrYQ==</auth>
*** User 2024-04-09 11:39:58.659 ***🔗 bOb_user_delete_contacts_1144@localhost/res1 in <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-09 11:39:58.659 ***🔗 bOb_user_delete_contacts_1144@localhost/res1 out <stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-09 11:39:58.659 ***🔗 bOb_user_delete_contacts_1144@localhost/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f2a68b3d616aa11c' from='localhost' version='1.0' xml:lang='en' to='bob_user_delete_contacts_1144@localhost'>
*** User 2024-04-09 11:39:58.659 ***🔗 bOb_user_delete_contacts_1144@localhost/res1 in <stream:features> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/> <register xmlns='http://jabber.org/features/iq-register'/> <amp xmlns='http://jabber.org/feature/amp'/> <sm xmlns='urn:xmpp:sm:3'/> </stream:features>
*** User 2024-04-09 11:39:58.659 ***🔗 bOb_user_delete_contacts_1144@localhost/res1 out <iq type='set' id='2c7dacde5268dc5eb987043f02ae816f'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <resource>res1</resource> </bind> </iq>
*** User 2024-04-09 11:39:58.660 ***🔗 bOb_user_delete_contacts_1144@localhost/res1 in <iq id='2c7dacde5268dc5eb987043f02ae816f' type='result'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <jid>bob_user_delete_contacts_1144@localhost/res1</jid> </bind> </iq>
*** User 2024-04-09 11:39:58.660 ***🔗 bob_user_delete_contacts_1144@localhost/res1 out <iq type='set' id='a5019ca79b90c9d0354a7875bc7c768b'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-04-09 11:39:58.660 ***🔗 bob_user_delete_contacts_1144@localhost/res1 in <iq from='localhost' to='bob_user_delete_contacts_1144@localhost/res1' id='a5019ca79b90c9d0354a7875bc7c768b' type='result'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-04-09 11:39:58.660 ***🔗 bob_user_delete_contacts_1144@localhost/res1 out <presence/>
*** User 2024-04-09 11:39:58.661 ***🔗 bob_user_delete_contacts_1144@localhost/res1 in <presence from='bob_user_delete_contacts_1144@localhost/res1' to='bob_user_delete_contacts_1144@localhost/res1'/>
*** User 2024-04-09 11:39:58.668 ***🔗 REST request: Code: 200 Req: {<0.26200.0>,<<"/api/graphql">>,<<"POST">>, [{<<"Content-Type">>,<<"application/json">>}, {<<"Request-Id">>,<<"e0b2e4746e963881">>}, {<<"authorization">>, <<"Basic YWxpY2VfdXNlcl9kZWxldGVfY29udGFjdHNfMTE0NEBsb2NhbGhvc3Q6bWF0eWdyeXNh">>}], <<"{\"variables\":{\"contact\":\"bob_user_delete_contacts_1144@localhost\",\"groups\":[\"Family\"],\"name\":\"bob_user_delete_contacts_1144\"},\"query\":\"mutation ($contact: JID!, $groups: [String!], $name: String) { roster { addContact(contact: $contact, groups: $groups, name: $name) } }\"}">>} Result: {{<<"200">>,<<"OK">>}, [{<<"vary">>,<<"accept">>}, {<<"server">>,<<"Cowboy">>}, {<<"date">>,<<"Tue, 09 Apr 2024 11:39:58 GMT">>}, {<<"content-type">>,<<"application/json">>}, {<<"content-length">>,<<"63">>}], <<"{\"data\":{\"roster\":{\"addContact\":\"Contact added successfully\"}}}">>, 201,6125} Params: #{port => 5561,path => <<"/api/graphql">>, server => #{node => mongooseim@localhost}, creds => {<<"alice_user_delete_contacts_1144@localhost">>, <<"matygrysa">>}, body => <<"{\"variables\":{\"contact\":\"bob_user_delete_contacts_1144@localhost\",\"groups\":[\"Family\"],\"name\":\"bob_user_delete_contacts_1144\"},\"query\":\"mutation ($contact: JID!, $groups: [String!], $name: String) { roster { addContact(contact: $contact, groups: $groups, name: $name) } }\"}">>, role => {graphql,user}, method => <<"POST">>,return_maps => true,return_headers => true}
*** User 2024-04-09 11:39:58.675 ***🔗 REST request: Code: 200 Req: {<0.26202.0>,<<"/api/graphql">>,<<"POST">>, [{<<"Content-Type">>,<<"application/json">>}, {<<"Request-Id">>,<<"dcd55bc315c1f363">>}, {<<"authorization">>, <<"Basic YWxpY2VfdXNlcl9kZWxldGVfY29udGFjdHNfMTE0NEBsb2NhbGhvc3Q6bWF0eWdyeXNh">>}], <<"{\"variables\":{\"contacts\":[\"bob_user_delete_contacts_1144@localhost\",\"abc@abc\"]},\"query\":\"mutation ($contacts: [JID!]!) { roster { deleteContacts(contacts: $contacts) } }\"}">>} Result: {{<<"200">>,<<"OK">>}, [{<<"vary">>,<<"accept">>}, {<<"server">>,<<"Cowboy">>}, {<<"date">>,<<"Tue, 09 Apr 2024 11:39:58 GMT">>}, {<<"content-type">>,<<"application/json">>}, {<<"content-length">>,<<"341">>}], <<"{\"errors\":[{\"path\":[\"roster\",\"deleteContacts\",1],\"message\":\"Cannot remove abc@abc contact that does not exist\",\"extensions\":{\"user\":\"alice_user_delete_contacts_1144@localhost\",\"contact\":\"abc@abc\",\"code\":\"contact_not_found\"}}],\"data\":{\"roster\":{\"deleteContacts\":[\"Contact bob_user_delete_contacts_1144@localhost deleted successfully\",null]}}}">>, 480,5534} Params: #{port => 5561,path => <<"/api/graphql">>, server => #{node => mongooseim@localhost}, creds => {<<"alice_user_delete_contacts_1144@localhost">>, <<"matygrysa">>}, body => <<"{\"variables\":{\"contacts\":[\"bob_user_delete_contacts_1144@localhost\",\"abc@abc\"]},\"query\":\"mutation ($contacts: [JID!]!) { roster { deleteContacts(contacts: $contacts) } }\"}">>, role => {graphql,user}, method => <<"POST">>,return_maps => true,return_headers => true}
*** User 2024-04-09 11:39:58.675 ***🔗 bob_user_delete_contacts_1144@localhost/res1 out </stream:stream>
*** User 2024-04-09 11:39:58.676 ***🔗 bob_user_delete_contacts_1144@localhost/res1 in </stream:stream>
*** User 2024-04-09 11:39:58.676 ***🔗 alice_user_delete_contacts_1144@localhost/res1 out </stream:stream>
*** User 2024-04-09 11:39:58.676 ***🔗 alice_user_delete_contacts_1144@localhost/res1 in </stream:stream>
=== Ended at 2024-04-09 11:39:58 === successfully completed test case === === Returned value: ok
Test run history | Top level test index | Latest test result