diff --git a/k6/performance-tests/graphql/DataCubeComponents.js b/k6/performance-tests/graphql/DataCubeComponents.js index 63ce4cba0a..16bdc31519 100644 --- a/k6/performance-tests/graphql/DataCubeComponents.js +++ b/k6/performance-tests/graphql/DataCubeComponents.js @@ -52,4 +52,8 @@ export default function Components() { if (!check(res, { "Status code must be 200": (res) => res.status == 200 })) { fail("Status code was *not* 200!"); } + + if (res.error) { + fail("Error: " + res.error); + } } diff --git a/k6/performance-tests/graphql/DataCubeMetadata.js b/k6/performance-tests/graphql/DataCubeMetadata.js index 5c10525b23..8f2c7090c1 100644 --- a/k6/performance-tests/graphql/DataCubeMetadata.js +++ b/k6/performance-tests/graphql/DataCubeMetadata.js @@ -52,4 +52,8 @@ export default function Components() { if (!check(res, { "Status code must be 200": (res) => res.status == 200 })) { fail("Status code was *not* 200!"); } + + if (res.error) { + fail("Error: " + res.error); + } } diff --git a/k6/performance-tests/graphql/DataCubeObservations.js b/k6/performance-tests/graphql/DataCubeObservations.js index a22548a2fe..0dd60d3b2f 100644 --- a/k6/performance-tests/graphql/DataCubeObservations.js +++ b/k6/performance-tests/graphql/DataCubeObservations.js @@ -113,4 +113,8 @@ export default function Observations() { if (!check(res, { "Status code must be 200": (res) => res.status == 200 })) { fail("Status code was *not* 200!"); } + + if (res.error) { + fail("Error: " + res.error); + } } diff --git a/k6/performance-tests/graphql/DataCubePreview.js b/k6/performance-tests/graphql/DataCubePreview.js index cf347c1936..57f14818e0 100644 --- a/k6/performance-tests/graphql/DataCubePreview.js +++ b/k6/performance-tests/graphql/DataCubePreview.js @@ -53,4 +53,8 @@ export default function Components() { if (!check(res, { "Status code must be 200": (res) => res.status == 200 })) { fail("Status code was *not* 200!"); } + + if (res.error) { + fail("Error: " + res.error); + } }