=== Test case: graphql_domain_SUITE:domain_not_found_error_formatting_after_mutation_enable_domain/1 (click for source code)

=== Config value:

    [{watchdog,<0.17376.0>},
     {schema_endpoint,admin},
     {listener_opts,[{password,<<"secret">>},
                     {schema_endpoint,<<"admin">>},
                     {username,<<"admin">>}]},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/graphql_domain_SUITE_data"},
     {preset,"pgsql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@a072b68d2bee.2022-03-18_10.50.04/big_tests.tests.graphql_domain_SUITE.logs/run.2022-03-18_10.53.00/graphql_domain_suite.domain_not_found_error_formatting_after_mutation_enable_domain.html"},
     {tc_group_properties,[{suite,graphql_domain_SUITE},
                           {name,domain_handler},
                           sequence]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/graphql_domain_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@a072b68d2bee.2022-03-18_10.50.04/big_tests.tests.graphql_domain_SUITE.logs/run.2022-03-18_10.53.00/log_private/"}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@a072b68d2bee.2022-03-18_10.50.04"

=== Started at 2022-03-18 10:53:00


*** CT 2022-03-18 10:53:00.889 *** View log from node mongooseim@localhost when started mongooseim@localhost_799.html
*** CT 2022-03-18 10:53:00.889 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_437.html

*** User 2022-03-18 10:53:00.893 ***
REST request:
Code: 200
Req: {<0.17475.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"204a49c33f0a57a5">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"variables\":{\"domain\":\"NonExistingDomain\"},\"query\":\"mutation M1($domain: String!)\\n           {domains\\n               {enableDomain(domain: $domain)\\n                   {\\n                       enabled\\n                       domain\\n                   }\\n               }\\n           }\",\"operationName\":\"M1\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"vary">>,<<"accept">>},
          {<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 18 Mar 2022 10:53:00 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"199">>}],
         <<"{\"errors\":[{\"path\":[\"domains\",\"enableDomain\"],\"message\":\"Given domain does not exist\",\"extensions\":{\"domain\":\"NonExistingDomain\",\"code\":\"domain_not_found\"}}],\"data\":{\"domains\":{\"enableDomain\":null}}}">>,
         338,1749}
Params: #{body =>
              <<"{\"variables\":{\"domain\":\"NonExistingDomain\"},\"query\":\"mutation M1($domain: String!)\\n           {domains\\n               {enableDomain(domain: $domain)\\n                   {\\n                       enabled\\n                       domain\\n                   }\\n               }\\n           }\",\"operationName\":\"M1\"}">>,
          creds => {<<"admin">>,<<"secret">>},
          method => <<"POST">>,path => <<"/api/graphql">>,port => 5551,
          return_headers => true,return_maps => true,
          role => {graphql,<<"admin">>},
          server => #{node => mongooseim@localhost}}

*** CT 2022-03-18 10:53:00.895 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_437.html
*** CT 2022-03-18 10:53:00.895 *** View log from node mongooseim@localhost when finished mongooseim@localhost_799.html



=== Ended at 2022-03-18 10:53:00
=== successfully completed test case
=== === Returned value: ok


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