=== Test case: graphql_http_upload_SUITE:admin_get_url_test/1 (click for source code)

=== Config value:

    [{watchdog,<0.853.1>},
     {protocol,http},
     {schema_endpoint,admin},
     {listener_opts,#{host => "localhost",module => mongoose_graphql_handler,
                      password => <<"secret">>,path => "/api/graphql",
                      schema_endpoint => admin,sse_idle_timeout => 3600000,
                      username => <<"admin">>}},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {preset,"pgsql_mnesia"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/graphql_http_upload_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@05d1adc98102.2024-03-21_07.34.41/big_tests.tests.graphql_http_upload_SUITE.logs/run.2024-03-21_07.41.03/graphql_http_upload_suite.admin_get_url_test.html"},
     {tc_group_properties,[{name,admin_http_upload}]},
     {tc_group_path,[[{name,admin_http}]]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/graphql_http_upload_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@05d1adc98102.2024-03-21_07.34.41/big_tests.tests.graphql_http_upload_SUITE.logs/run.2024-03-21_07.41.03/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_amp => #{},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_cache_users =>
            #{number_of_segments => 5,strategy => fifo,time_to_live => 2},
        mod_carboncopy => #{iqdisc => no_queue},
        mod_disco =>
            #{extra_domains => [],iqdisc => one_queue,server_info => [],
              users_can_see_hidden_services => false},
        mod_presence => #{},
        mod_register =>
            #{access => register,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}],
              iqdisc => one_queue,password_strength => 0,
              registration_watchers => []},
        mod_roster =>
            #{backend => rdbms,iqdisc => one_queue,store_current_id => false,
              versioning => false},
        mod_sic => #{iqdisc => one_queue},
        mod_stream_management =>
            #{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
              buffer_max => 100,resume_timeout => 600,
              stale_h =>
                  #{enabled => false,geriatric => 3600,repeat_after => 1800}},
        mod_vcard =>
            #{backend => rdbms,
              host => {prefix,<<"vjud.">>},
              iqdisc => parallel,matches => 30,search => true}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@05d1adc98102.2024-03-21_07.34.41"

=== Started at 2024-03-21 07:41:04


*** CT 2024-03-21 07:41:04.502 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2858.html

*** User 2024-03-21 07:41:04.506 ***🔗
REST request:
Code: 200
Req: {<0.861.1>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7a1a3399696b2f4d">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"variables\":{\"timeout\":123,\"size\":123,\"filename\":\"test\",\"domain\":\"localhost\",\"contentType\":\"Test\"},\"query\":\"mutation ($contentType: String, $domain: DomainName!, $filename: NonEmptyString!, $size: PosInt!, $timeout: PosInt!) { httpUpload { getUrl(contentType: $contentType, domain: $domain, filename: $filename, size: $size, timeout: $timeout) { getUrl headers { name value } putUrl } } }\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"vary">>,<<"accept">>},
          {<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:41:04 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"602">>}],
         <<"{\"data\":{\"httpUpload\":{\"getUrl\":{\"putUrl\":\"http://bucket.s3-eu-east-25.example.com/7446db01499bb9e54c11930258e11f6ad79bb7f9b9136cc1331b7490d1df74ed/test?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIAOAONIULXQGMOUA%2F20240321%2Feu-east-25%2Fs3%2Faws4_request&X-Amz-Date=20240321T074104Z&X-Amz-Expires=123&X-Amz-Signature=3c2c3d63b90061c5a9a825bc626f92ddc32b461a4e2d6cb352ae448cbe3d070b&X-Amz-SignedHeaders=content-length%3Bcontent-type%3Bhost%3Bx-amz-acl\",\"headers\":[],\"getUrl\":\"http://bucket.s3-eu-east-25.example.com/7446db01499bb9e54c11930258e11f6ad79bb7f9b9136cc1331b7490d1df74ed/test\"}}}}">>,
         741,1158}
Params: #{body =>
              <<"{\"variables\":{\"timeout\":123,\"size\":123,\"filename\":\"test\",\"domain\":\"localhost\",\"contentType\":\"Test\"},\"query\":\"mutation ($contentType: String, $domain: DomainName!, $filename: NonEmptyString!, $size: PosInt!, $timeout: PosInt!) { httpUpload { getUrl(contentType: $contentType, domain: $domain, filename: $filename, size: $size, timeout: $timeout) { getUrl headers { name value } putUrl } } }\"}">>,
          creds => {<<"admin">>,<<"secret">>},
          method => <<"POST">>,path => <<"/api/graphql">>,port => 5551,
          return_headers => true,return_maps => true,
          role => {graphql,admin},
          server => #{node => mongooseim@localhost}}


*** User 2024-03-21 07:41:04.508 ***🔗
REST request:
Code: 200
Req: {<0.863.1>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"929cd18e7b079341">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"variables\":{\"timeout\":123,\"size\":123,\"filename\":\"test\",\"domain\":\"Localhost\",\"contentType\":\"Test\"},\"query\":\"mutation ($contentType: String, $domain: DomainName!, $filename: NonEmptyString!, $size: PosInt!, $timeout: PosInt!) { httpUpload { getUrl(contentType: $contentType, domain: $domain, filename: $filename, size: $size, timeout: $timeout) { getUrl headers { name value } putUrl } } }\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"vary">>,<<"accept">>},
          {<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:41:04 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"602">>}],
         <<"{\"data\":{\"httpUpload\":{\"getUrl\":{\"putUrl\":\"http://bucket.s3-eu-east-25.example.com/9b6138be8aa3bba9e6986ea17caf0377b670f6426b060ca2e9b8fa65b0fcab98/test?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIAOAONIULXQGMOUA%2F20240321%2Feu-east-25%2Fs3%2Faws4_request&X-Amz-Date=20240321T074104Z&X-Amz-Expires=123&X-Amz-Signature=553fb523dc0825ed4513c63cd8330a8df8f36f5b336a0b72e35593e2c6a16957&X-Amz-SignedHeaders=content-length%3Bcontent-type%3Bhost%3Bx-amz-acl\",\"headers\":[],\"getUrl\":\"http://bucket.s3-eu-east-25.example.com/9b6138be8aa3bba9e6986ea17caf0377b670f6426b060ca2e9b8fa65b0fcab98/test\"}}}}">>,
         741,969}
Params: #{body =>
              <<"{\"variables\":{\"timeout\":123,\"size\":123,\"filename\":\"test\",\"domain\":\"Localhost\",\"contentType\":\"Test\"},\"query\":\"mutation ($contentType: String, $domain: DomainName!, $filename: NonEmptyString!, $size: PosInt!, $timeout: PosInt!) { httpUpload { getUrl(contentType: $contentType, domain: $domain, filename: $filename, size: $size, timeout: $timeout) { getUrl headers { name value } putUrl } } }\"}">>,
          creds => {<<"admin">>,<<"secret">>},
          method => <<"POST">>,path => <<"/api/graphql">>,port => 5551,
          return_headers => true,return_maps => true,
          role => {graphql,admin},
          server => #{node => mongooseim@localhost}}

*** CT 2024-03-21 07:41:04.510 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2858.html



=== Ended at 2024-03-21 07:41:04
=== successfully completed test case
=== === Returned value: ok


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