=== Test case: graphql_gdpr_SUITE:domain_admin_retrieve_user_data_no_permission/1 (click for source code)

=== Config value:

    [{protocol,http},
     {domain_admin,{<<"admin@domain.example.com">>,<<"d50f12ae1a331c67">>}},
     {schema_endpoint,domain_admin},
     {watchdog,<0.30753.0>},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {preset,"pgsql_mnesia"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/graphql_gdpr_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@067aff11512c.2024-03-11_11.24.27/big_tests.tests.graphql_gdpr_SUITE.logs/run.2024-03-11_11.30.21/graphql_gdpr_suite.domain_admin_retrieve_user_data_no_permission.html"},
     {tc_group_properties,[{name,domain_admin_gdpr}]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/graphql_gdpr_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@067aff11512c.2024-03-11_11.24.27/big_tests.tests.graphql_gdpr_SUITE.logs/run.2024-03-11_11.30.21/log_private/"}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@067aff11512c.2024-03-11_11.24.27"

=== Started at 2024-03-11 11:30:25


*** CT 2024-03-11 11:30:25.949 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_1858.html

*** User 2024-03-11 11:30:25.953 ***🔗
alicE_domain_admin_retrieve_user_data_no_permission_1382@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-03-11 11:30:25.954 ***🔗
alicE_domain_admin_retrieve_user_data_no_permission_1382@domain.example.org/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='58c89b2a7072e9f2' from='domain.example.org' version='1.0' xml:lang='en'>

*** User 2024-03-11 11:30:25.954 ***🔗
alicE_domain_admin_retrieve_user_data_no_permission_1382@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-03-11 11:30:25.954 ***🔗
alicE_domain_admin_retrieve_user_data_no_permission_1382@domain.example.org/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2RvbWFpbl9hZG1pbl9yZXRyaWV2ZV91c2VyX2RhdGFfbm9fcGVybWlzc2lvbl8xMzgyAG1hdHlncnlzYQ==</auth>



*** User 2024-03-11 11:30:25.955 ***🔗
alicE_domain_admin_retrieve_user_data_no_permission_1382@domain.example.org/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-11 11:30:25.955 ***🔗
alicE_domain_admin_retrieve_user_data_no_permission_1382@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-03-11 11:30:25.956 ***🔗
alicE_domain_admin_retrieve_user_data_no_permission_1382@domain.example.org/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='680832394004febd' from='domain.example.org' version='1.0' xml:lang='en' to='alice_domain_admin_retrieve_user_data_no_permission_1382@domain.example.org'>

*** User 2024-03-11 11:30:25.956 ***🔗
alicE_domain_admin_retrieve_user_data_no_permission_1382@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-03-11 11:30:25.956 ***🔗
alicE_domain_admin_retrieve_user_data_no_permission_1382@domain.example.org/res1 out
<iq type='set' id='b1341d57d4b00006ac19378685978ea7'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-11 11:30:25.957 ***🔗
alicE_domain_admin_retrieve_user_data_no_permission_1382@domain.example.org/res1 in
<iq id='b1341d57d4b00006ac19378685978ea7' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_domain_admin_retrieve_user_data_no_permission_1382@domain.example.org/res1</jid>
	</bind>
</iq>



*** User 2024-03-11 11:30:25.957 ***🔗
alice_domain_admin_retrieve_user_data_no_permission_1382@domain.example.org/res1 out
<iq type='set' id='ef2849bc65c37c7229f118675a8b7c3e'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:30:25.958 ***🔗
alice_domain_admin_retrieve_user_data_no_permission_1382@domain.example.org/res1 in
<iq from='domain.example.org' to='alice_domain_admin_retrieve_user_data_no_permission_1382@domain.example.org/res1' id='ef2849bc65c37c7229f118675a8b7c3e' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:30:25.958 ***🔗
alice_domain_admin_retrieve_user_data_no_permission_1382@domain.example.org/res1 out
<presence/>



*** User 2024-03-11 11:30:25.959 ***🔗
alice_domain_admin_retrieve_user_data_no_permission_1382@domain.example.org/res1 in
<presence from='alice_domain_admin_retrieve_user_data_no_permission_1382@domain.example.org/res1' to='alice_domain_admin_retrieve_user_data_no_permission_1382@domain.example.org/res1'/>



*** User 2024-03-11 11:30:25.967 ***🔗
REST request fails:
Code: 401
Req: {<0.30798.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"48f8dc1027f22835">>},
       {<<"authorization">>,
        <<"Basic YWRtaW5AZG9tYWluLmV4YW1wbGUuY29tOmQ1MGYxMmFlMWEzMzFjNjc=">>}],
      <<"{\"variables\":{\"username\":\"alice_domain_admin_retrieve_user_data_no_permission_1382\",\"resultFilepath\":\"domain_admin_retrieve_user_data_no_permission.1710156625959098730.zip\",\"domain\":\"domain.example.org\"},\"query\":\"query ($domain: DomainName!, $resultFilepath: String!, $username: UserName!) { gdpr { retrievePersonalData(domain: $domain, resultFilepath: $resultFilepath, username: $username) } }\"}">>}
Result: {{<<"401">>,<<"Unauthorized">>},
         [{<<"vary">>,<<"accept">>},
          {<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:30:25 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"210">>}],
         <<"{\"errors\":[{\"path\":[\"ROOT\",\"gdpr\",\"retrievePersonalData\"],\"message\":\"Cannot execute query ROOT without permissions to the given domain. Args with invalid value: domain\",\"extensions\":{\"code\":\"no_permissions\"}}]}">>,
         359,6359}
Params: #{body =>
              <<"{\"variables\":{\"username\":\"alice_domain_admin_retrieve_user_data_no_permission_1382\",\"resultFilepath\":\"domain_admin_retrieve_user_data_no_permission.1710156625959098730.zip\",\"domain\":\"domain.example.org\"},\"query\":\"query ($domain: DomainName!, $resultFilepath: String!, $username: UserName!) { gdpr { retrievePersonalData(domain: $domain, resultFilepath: $resultFilepath, username: $username) } }\"}">>,
          creds => {<<"admin@domain.example.com">>,<<"d50f12ae1a331c67">>},
          method => <<"POST">>,path => <<"/api/graphql">>,port => 5541,
          return_headers => true,return_maps => true,
          role => {graphql,domain_admin},
          server => #{node => mongooseim@localhost}}


*** User 2024-03-11 11:30:25.967 ***🔗
alice_domain_admin_retrieve_user_data_no_permission_1382@domain.example.org/res1 out
</stream:stream>

*** User 2024-03-11 11:30:25.967 ***🔗
alice_domain_admin_retrieve_user_data_no_permission_1382@domain.example.org/res1 in
</stream:stream>
*** CT 2024-03-11 11:30:25.983 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_1858.html



=== Ended at 2024-03-11 11:30:25
=== successfully completed test case
=== === Returned value: ok


Test run history | Top level test index | Latest test result