=== Test case: graphql_roster_SUITE:domain_admin_subscribe_all_to_all_no_permission/1 (click for source code) === Config value: [{protocol,http}, {domain_admin,{<<"admin@domain.example.com">>,<<"8e45033d293089ce">>}}, {schema_endpoint,domain_admin}, {watchdog,<0.26556.0>}, {{ejabberd_cwd,mongooseim@localhost}, "/home/circleci/project/_build/mim1/rel/mongooseim"}, {preset,"odbc_mssql_mnesia"}, {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@a21fc9dcd843.2024-02-27_10.07.42/big_tests.tests.graphql_roster_SUITE.logs/run.2024-02-27_10.13.20/graphql_roster_suite.domain_admin_subscribe_all_to_all_no_permission.html"}, {tc_group_properties,[{name,domain_admin_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@a21fc9dcd843.2024-02-27_10.07.42/big_tests.tests.graphql_roster_SUITE.logs/run.2024-02-27_10.13.20/log_private/"}, {{saved_modules,mongooseim@localhost,<<"test type">>}, #{mod_vcard => #{matches => 30, host => {prefix,<<"vjud.">>}, search => true,backend => rdbms,iqdisc => parallel}, mod_roster => #{backend => rdbms,iqdisc => one_queue,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_presence => #{}, mod_disco => #{iqdisc => one_queue,users_can_see_hidden_services => false, server_info => [],extra_domains => []}, mod_adhoc => #{iqdisc => one_queue,report_commands_node => false}, mod_stream_management => #{buffer => true,ack => true,backend => mnesia,buffer_max => 100, ack_freq => 1, stale_h => #{enabled => false,repeat_after => 1800,geriatric => 3600}, resume_timeout => 600}, mod_bosh => #{backend => mnesia,inactivity => 30,max_pause => 120, max_wait => infinity,server_acks => false}, mod_cache_users => #{strategy => fifo,number_of_segments => 5,time_to_live => 2}, mod_carboncopy => #{iqdisc => no_queue}}}] === Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@a21fc9dcd843.2024-02-27_10.07.42" === Started at 2024-02-27 10:13:44
*** User 2024-02-27 10:13:44.980 ***🔗 alicE_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.org/res1 out <stream:stream to='domain.example.org' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-27 10:13:44.980 ***🔗 alicE_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.org/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='90125c03aa1e47cb' from='domain.example.org' version='1.0' xml:lang='en'>
*** User 2024-02-27 10:13:44.980 ***🔗 alicE_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.org/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-02-27 10:13:44.981 ***🔗 alicE_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.org/res1 out <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2RvbWFpbl9hZG1pbl9zdWJzY3JpYmVfYWxsX3RvX2FsbF9ub19wZXJtaXNzaW9uXzEyMjcAbWF0eWdyeXNh</auth>
*** User 2024-02-27 10:13:44.982 ***🔗 alicE_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.org/res1 in <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-27 10:13:44.982 ***🔗 alicE_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.org/res1 out <stream:stream to='domain.example.org' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-27 10:13:44.982 ***🔗 alicE_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.org/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6cb9e7f8c0402a4c' from='domain.example.org' version='1.0' xml:lang='en' to='alice_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.org'>
*** User 2024-02-27 10:13:44.982 ***🔗 alicE_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.org/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-02-27 10:13:44.982 ***🔗 alicE_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.org/res1 out <iq type='set' id='c65cdd10018c7feb35a899d0f38990a8'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <resource>res1</resource> </bind> </iq>
*** User 2024-02-27 10:13:44.983 ***🔗 alicE_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.org/res1 in <iq id='c65cdd10018c7feb35a899d0f38990a8' type='result'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <jid>alice_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.org/res1</jid> </bind> </iq>
*** User 2024-02-27 10:13:44.983 ***🔗 alice_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.org/res1 out <iq type='set' id='0fd207f908557bd4c5aee259c06ae75a'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-02-27 10:13:44.983 ***🔗 alice_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.org/res1 in <iq from='domain.example.org' to='alice_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.org/res1' id='0fd207f908557bd4c5aee259c06ae75a' type='result'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-02-27 10:13:44.984 ***🔗 alice_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.org/res1 out <presence/>
*** User 2024-02-27 10:13:44.985 ***🔗 alice_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.org/res1 in <presence from='alice_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.org/res1' to='alice_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.org/res1'/>
*** User 2024-02-27 10:13:44.986 ***🔗 bOb_domain_admin_subscribe_all_to_all_no_permission_1227@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 2024-02-27 10:13:44.986 ***🔗 bOb_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='353b655a4430e0d2' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-02-27 10:13:44.986 ***🔗 bOb_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/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-02-27 10:13:44.986 ***🔗 bOb_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/res1 out <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9kb21haW5fYWRtaW5fc3Vic2NyaWJlX2FsbF90b19hbGxfbm9fcGVybWlzc2lvbl8xMjI3AG1ha3JvbGlrYQ==</auth>
*** User 2024-02-27 10:13:44.988 ***🔗 bOb_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/res1 in <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-27 10:13:44.988 ***🔗 bOb_domain_admin_subscribe_all_to_all_no_permission_1227@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 2024-02-27 10:13:44.988 ***🔗 bOb_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a138c09d1d47b510' from='domain.example.com' version='1.0' xml:lang='en' to='bob_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com'>
*** User 2024-02-27 10:13:44.988 ***🔗 bOb_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/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-02-27 10:13:44.988 ***🔗 bOb_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/res1 out <iq type='set' id='5f62cbf1b5adeeb1ddc150a39285eb6a'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <resource>res1</resource> </bind> </iq>
*** User 2024-02-27 10:13:44.988 ***🔗 bOb_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/res1 in <iq id='5f62cbf1b5adeeb1ddc150a39285eb6a' type='result'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <jid>bob_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/res1</jid> </bind> </iq>
*** User 2024-02-27 10:13:44.989 ***🔗 bob_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/res1 out <iq type='set' id='57d9aead59b439c881c7effa6ad03a71'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-02-27 10:13:44.989 ***🔗 bob_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/res1 in <iq from='domain.example.com' to='bob_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/res1' id='57d9aead59b439c881c7effa6ad03a71' type='result'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-02-27 10:13:44.989 ***🔗 bob_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/res1 out <presence/>
*** User 2024-02-27 10:13:44.991 ***🔗 bob_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/res1 in <presence from='bob_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/res1' to='bob_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/res1'/>
*** User 2024-02-27 10:13:44.991 ***🔗 kate_domain_admin_subscribe_all_to_all_no_permission_1227@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 2024-02-27 10:13:44.992 ***🔗 kate_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='013640d2b0c0ec06' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-02-27 10:13:44.992 ***🔗 kate_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/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-02-27 10:13:44.992 ***🔗 kate_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/res1 out <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfZG9tYWluX2FkbWluX3N1YnNjcmliZV9hbGxfdG9fYWxsX25vX3Blcm1pc3Npb25fMTIyNwBtYWtyb3dlO3A=</auth>
*** User 2024-02-27 10:13:44.993 ***🔗 kate_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/res1 in <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-27 10:13:44.993 ***🔗 kate_domain_admin_subscribe_all_to_all_no_permission_1227@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 2024-02-27 10:13:44.994 ***🔗 kate_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ec6eec8356843b07' from='domain.example.com' version='1.0' xml:lang='en' to='kate_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com'>
*** User 2024-02-27 10:13:44.994 ***🔗 kate_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/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-02-27 10:13:44.994 ***🔗 kate_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/res1 out <iq type='set' id='95522828f9f1e82b10ec8ffff6092083'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <resource>res1</resource> </bind> </iq>
*** User 2024-02-27 10:13:44.994 ***🔗 kate_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/res1 in <iq id='95522828f9f1e82b10ec8ffff6092083' type='result'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <jid>kate_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/res1</jid> </bind> </iq>
*** User 2024-02-27 10:13:44.994 ***🔗 kate_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/res1 out <iq type='set' id='e27737913c71a85b57bd70d531d1ce37'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-02-27 10:13:44.995 ***🔗 kate_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/res1 in <iq from='domain.example.com' to='kate_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/res1' id='e27737913c71a85b57bd70d531d1ce37' type='result'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-02-27 10:13:44.995 ***🔗 kate_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/res1 out <presence/>
*** User 2024-02-27 10:13:44.996 ***🔗 kate_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/res1 in <presence from='kate_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/res1' to='kate_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/res1'/>
*** User 2024-02-27 10:13:45.006 ***🔗 REST request fails: Code: 401 Req: {<0.26825.0>,<<"/api/graphql">>,<<"POST">>, [{<<"Content-Type">>,<<"application/json">>}, {<<"Request-Id">>,<<"d300c143281374c2">>}, {<<"authorization">>, <<"Basic YWRtaW5AZG9tYWluLmV4YW1wbGUuY29tOjhlNDUwMzNkMjkzMDg5Y2U=">>}], <<"{\"query\":\"mutation ($contacts: [ContactInput!]!) { roster { subscribeAllToAll(contacts: $contacts) } }\",\"variables\":{\"contacts\":[{\"groups\":[\"Family\"],\"jid\":\"alice_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.org\",\"name\":\"alice_domain_admin_subscribe_all_to_all_no_permission_1227\"},{\"groups\":[\"Family\"],\"jid\":\"bob_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com\",\"name\":\"bob_domain_admin_subscribe_all_to_all_no_permission_1227\"},{\"groups\":[\"Family\"],\"jid\":\"kate_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com\",\"name\":\"kate_domain_admin_subscribe_all_to_all_no_permission_1227\"}]}}">>} Result: {{<<"401">>,<<"Unauthorized">>}, [{<<"vary">>,<<"accept">>}, {<<"server">>,<<"Cowboy">>}, {<<"date">>,<<"Tue, 27 Feb 2024 10:13:44 GMT">>}, {<<"content-type">>,<<"application/json">>}, {<<"content-length">>,<<"215">>}], <<"{\"errors\":[{\"extensions\":{\"code\":\"no_permissions\"},\"path\":[\"ROOT\",\"roster\",\"subscribeAllToAll\"],\"message\":\"Cannot execute query ROOT without permissions to the given domain. Args with invalid value: contacts.jid\"}]}">>, 364,8361} Params: #{port => 5541,path => <<"/api/graphql">>, server => #{node => mongooseim@localhost}, method => <<"POST">>, creds => {<<"admin@domain.example.com">>,<<"8e45033d293089ce">>}, body => <<"{\"query\":\"mutation ($contacts: [ContactInput!]!) { roster { subscribeAllToAll(contacts: $contacts) } }\",\"variables\":{\"contacts\":[{\"groups\":[\"Family\"],\"jid\":\"alice_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.org\",\"name\":\"alice_domain_admin_subscribe_all_to_all_no_permission_1227\"},{\"groups\":[\"Family\"],\"jid\":\"bob_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com\",\"name\":\"bob_domain_admin_subscribe_all_to_all_no_permission_1227\"},{\"groups\":[\"Family\"],\"jid\":\"kate_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com\",\"name\":\"kate_domain_admin_subscribe_all_to_all_no_permission_1227\"}]}}">>, role => {graphql,domain_admin}, return_maps => true,return_headers => true}
*** User 2024-02-27 10:13:45.006 ***🔗 kate_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/res1 out </stream:stream>
*** User 2024-02-27 10:13:45.007 ***🔗 kate_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/res1 in </stream:stream>
*** User 2024-02-27 10:13:45.007 ***🔗 bob_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/res1 out </stream:stream>
*** User 2024-02-27 10:13:45.007 ***🔗 bob_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.com/res1 in </stream:stream>
*** User 2024-02-27 10:13:45.007 ***🔗 alice_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.org/res1 out </stream:stream>
*** User 2024-02-27 10:13:45.007 ***🔗 alice_domain_admin_subscribe_all_to_all_no_permission_1227@domain.example.org/res1 in </stream:stream>
=== Ended at 2024-02-27 10:13:45 === successfully completed test case === === Returned value: ok
Test run history | Top level test index | Latest test result