Skip to content

Commit

Permalink
log request output
Browse files Browse the repository at this point in the history
Signed-off-by: Diana Barsan <[email protected]>
  • Loading branch information
dianabarsan committed Jun 19, 2024
1 parent 61a04a6 commit 91f7a82
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion haproxy/tests/compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.7"
services:
haproxy:
build:
Expand Down
3 changes: 2 additions & 1 deletion haproxy/tests/with_mock.bats
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ setup() {
}

@test "should return json with on connection drop" {
run bash -c "curl -ksm5 http:https://127.0.0.1:5984/error/drop | jq .error"
run bash -c "curl -ksm5 http:https://127.0.0.1:5984/error/drop"
assert_success
echo "output = ${output}"
assert_output '"502 Bad Gateway"'
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"wdio-local": "export VERSION=$(node ./scripts/build/get-version.js) && ./scripts/build/build-service-images.sh && wdio run ./tests/e2e/default/wdio.conf.js",
"-- CI SCRIPTS ": "-----------------------------------------------------------------------------------------------",
"build": "./scripts/build/build-ci.sh",
"ci-compile": "node scripts/ci/check-versions.js && node scripts/build/cli npmCiModules && npm run lint && npm run build && npm run integration-api && npm run unit && npm run unit-nginx && npm run unit-haproxy && npm run unit-haproxy-healthcheck",
"ci-compile": "node scripts/ci/check-versions.js && node scripts/build/cli npmCiModules && npm run lint && npm run unit-nginx && npm run unit-haproxy && npm run unit-haproxy-healthcheck && npm run build && npm run integration-api && npm run unit",
"ci-integration-all": "mocha --config tests/integration/.mocharc-all.js",
"ci-integration-all-k3d": "mocha --config tests/integration/.mocharc-k3d.js",
"ci-integration-sentinel": "mocha --config tests/integration/.mocharc-sentinel.js",
Expand Down

0 comments on commit 91f7a82

Please sign in to comment.