adobe / helix-run-query

service that executes queries on BigQuery datasets generated by Helix-Logging
Apache License 2.0
6 stars 11 forks source link

Fix post deploy tests #1146

Closed lydiapuric closed 5 months ago

lydiapuric commented 5 months ago

Description Post deploy tests fail with following error:

@adobe/helix-run-query@3.28.5 test-postdeploy mocha -g 'Post-Deploy' --exit

(node:207) ExperimentalWarning: --experimental-loader may be removed in the future; instead use register(): --import 'data:text/javascript,import { register } from "node:module"; import { pathToFileURL } from "node:url"; register("esmock", pathToFileURL("./"));' (Use node --trace-warnings ... to show where the warning was created) Forcing HTTP/1.1 for Helix-Fetch (node:207) [DEP0151] DeprecationWarning: Package /home/circleci/project/node_modules/chai-http/ has a "main" field set to "./index", excluding the full filename and extension to the resolved file at "index.js", imported from /home/circleci/project/test/post-deploy.test.js. Automatic extension resolution of the "main" field is deprecated for ES modules. (Use node --trace-deprecation ... to show where the warning was created)

Post-Deploy Tests (AWS) https://**********.execute-api.*********.amazonaws.com/helix-services/run-query/ci7770 testing https://**********.execute-api.*********.amazonaws.com/helix-services/run-query/ci7770/rum-dashboard 1) RUM Dashboard testing https://**********.execute-api.*********.amazonaws.com/helix-services/run-query/ci7770/rum-pageviews?url=www.theplayers.com&offset=1 2) Daily Pageviews testing https://**********.execute-api.*********.amazonaws.com/helix-services/run-query/ci7770/_status_check/healthcheck.json 3) Service reports status

0 passing (6ms) 3 failing

1) Post-Deploy Tests (AWS) https://**********.execute-api.*********.amazonaws.com/helix-services/run-query/ci7770 RUM Dashboard: TypeError: request is not a function at Context. (file:///home/circleci/project/test/post-deploy.test.js:31:13) at process.processImmediate (node:internal/timers:478:21)

2) Post-Deploy Tests (AWS) https://**********.execute-api.*********.amazonaws.com/helix-services/run-query/ci7770 Daily Pageviews: TypeError: request is not a function at Context. (file:///home/circleci/project/test/post-deploy.test.js:50:13) at process.processImmediate (node:internal/timers:478:21)

3) Post-Deploy Tests (AWS) https://**********.execute-api.*********.amazonaws.com/helix-services/run-query/ci7770 Service reports status: TypeError: request is not a function at Context. (file:///home/circleci/project/test/post-deploy.test.js:66:13) at process.processImmediate (node:internal/timers:478:21)

Exited with code exit status 3

To Reproduce Steps to reproduce the behavior: Run npm run test-postdeploy

Expected behavior Tests should pass.

Screenshots N/A

Version: v3

Additional context Add any other context about the problem here.