Skip to content

Commit

Permalink
fix haproxy version to 2.6.17
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 5622eb0 commit eaf5a4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion haproxy/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM haproxy:2.6
FROM haproxy:2.6.17

USER root
RUN apt-get update && apt-get install luarocks gettext jq curl -y
Expand Down
5 changes: 2 additions & 3 deletions haproxy/tests/with_mock.bats
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ setup() {
}

@test "should return json with on connection drop" {
run bash -c "curl http:https://127.0.0.1:5984/error/drop"
# assert_success
echo "output = ${output}"
run bash -c "curl -ksm5 http:https://127.0.0.1:5984/error/drop | jq .error"
assert_success
assert_output '"502 Bad Gateway"'
}

0 comments on commit eaf5a4d

Please sign in to comment.