diff --git a/dockerfiles/Dockerfile.node b/dockerfiles/Dockerfile.node index 40f7b4788b..9d3da21382 100644 --- a/dockerfiles/Dockerfile.node +++ b/dockerfiles/Dockerfile.node @@ -21,7 +21,7 @@ RUN npm pack --verbose packages/plugin-koa/ RUN npm pack --verbose packages/plugin-restify/ # The maze-runner node tests -FROM 855461928731.dkr.ecr.us-west-1.amazonaws.com/maze-runner-releases:v3.5.1-cli as node-maze-runner +FROM 855461928731.dkr.ecr.us-west-1.amazonaws.com/maze-runner-releases:latest-v3-cli as node-maze-runner WORKDIR /app/ COPY packages/node/ . COPY test/node test/node diff --git a/test/node/features/koa-1x.feature b/test/node/features/koa-1x.feature index e3aec6aa7b..8162208d82 100644 --- a/test/node/features/koa-1x.feature +++ b/test/node/features/koa-1x.feature @@ -58,9 +58,11 @@ Scenario: throwing non-Error error And the exception "type" equals "nodejs" Scenario: A non-5XX error created with ctx.throw() - Then I open the URL "http://koa-1x/ctx-throw-400" - And I wait for 1 second - Then I should receive no requests + When I open the URL "http://koa-1x/ctx-throw-400" + And I wait to receive a request + Then the request is valid for the session reporting API version "1" for the "Bugsnag Node" notifier + And the payload has a valid sessions array + And the sessionCount "sessionsStarted" equals 1 Scenario: A handled error with ctx.bugsnag.notify() Then I open the URL "http://koa-1x/handled" diff --git a/test/node/features/koa.feature b/test/node/features/koa.feature index db876ea57f..3c6edd9ade 100644 --- a/test/node/features/koa.feature +++ b/test/node/features/koa.feature @@ -71,9 +71,11 @@ Scenario: throwing non-Error error And the exception "type" equals "nodejs" Scenario: A non-5XX error created with ctx.throw() - Then I open the URL "http://koa/ctx-throw-400" - And I wait for 1 second - Then I should receive no requests + When I open the URL "http://koa/ctx-throw-400" + And I wait to receive a request + Then the request is valid for the session reporting API version "1" for the "Bugsnag Node" notifier + And the payload has a valid sessions array + And the sessionCount "sessionsStarted" equals 1 Scenario: A handled error with ctx.bugsnag.notify() Then I open the URL "http://koa/handled" diff --git a/test/node/features/restify.feature b/test/node/features/restify.feature index c022821f54..065708e6c4 100644 --- a/test/node/features/restify.feature +++ b/test/node/features/restify.feature @@ -58,9 +58,11 @@ Scenario: throwing non-Error error And the exception "type" equals "nodejs" Scenario: an explicit 404 - Then I open the URL "http://restify/not-found" - And I wait for 1 second - Then I should receive no requests + When I open the URL "http://restify/not-found" + And I wait to receive a request + Then the request is valid for the session reporting API version "1" for the "Bugsnag Node" notifier + And the payload has a valid sessions array + And the sessionCount "sessionsStarted" equals 1 Scenario: an explicit internal server error Then I open the URL "http://restify/internal"