Skip to content

Commit 69c02c8

Browse files
committed
TEST/MINOR: e2e: swap kill -SIGUSR with kill -s 12 invocations
1 parent e62e2cf commit 69c02c8

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ stages:
44
- e2e
55
variables:
66
DOCKER_HOST: tcp://docker:2375
7-
DOCKER_BASE_IMAGE: $CI_REGISTRY_GO/haproxy-alpine
7+
DOCKER_BASE_IMAGE: haproxytech/haproxy-debian
88
BATS_VERSION: v1.4.1
99
GO_VERSION: '1.21'
1010

e2e/libs/haproxy_config_setup.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ setup() {
7272
assert_success
7373
fi
7474

75-
run dpa_docker_exec 'kill -SIGUSR2 1'
75+
run dpa_docker_exec 'kill -s 12 1'
7676
assert_success
7777

7878
run dpa_docker_exec 'pkill -9 dataplaneapi'
@@ -111,7 +111,7 @@ teardown() {
111111
run docker cp "${E2E_DIR}/fixtures/dataplaneapi.hcl" "${DOCKER_CONTAINER_NAME}:/etc/haproxy/dataplaneapi.hcl"
112112
assert_success
113113

114-
run dpa_docker_exec 'kill -SIGUSR2 1'
114+
run dpa_docker_exec 'kill -s 12 1'
115115
assert_success
116116

117117
run dpa_docker_exec 'pkill -9 dataplaneapi'

e2e/run.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ set -eo pipefail
1919
export BASE_PATH="/v2"
2020

2121
HAPROXY_VERSION=${HAPROXY_VERSION:-2.7}
22-
DOCKER_BASE_IMAGE="${DOCKER_BASE_IMAGE:-haproxytech/haproxy-alpine}:${HAPROXY_VERSION}"
22+
DOCKER_BASE_IMAGE="${DOCKER_BASE_IMAGE:-haproxytech/haproxy-debian}:${HAPROXY_VERSION}"
2323
DOCKER_CONTAINER_NAME="dataplaneapi-e2e"
2424
export DOCKER_CONTAINER_NAME
2525

e2e/tests/set_uid/test.bats

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
load '../../libs/dataplaneapi'
1919

2020
setup() {
21-
run dpa_docker_exec 'kill -SIGUSR2 1'
21+
run dpa_docker_exec 'kill -s 12 1'
2222
assert_success
2323

2424
run dpa_docker_exec 'pkill -9 dataplaneapi'
@@ -48,7 +48,7 @@ teardown() {
4848
run docker cp "${E2E_DIR}/fixtures/dataplaneapi.hcl" "${DOCKER_CONTAINER_NAME}:/usr/local/bin/dataplaneapi.hcl"
4949
assert_success
5050

51-
run dpa_docker_exec 'kill -SIGUSR2 1'
51+
run dpa_docker_exec 'kill -s 12 1'
5252
assert_success
5353

5454
run dpa_docker_exec 'pkill -9 dataplaneapi'

e2e/tests/storage_maps/test.bats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ load 'utils/_helpers'
4141

4242
# sometimes we can't establish a connection to the haproxy stat socket
4343
# forcing haproxy to restart seems to fix that
44-
assert dpa_docker_exec 'kill -SIGUSR2 1'
44+
assert dpa_docker_exec 'kill -s 12 1'
4545
sleep 1
4646

4747
resource_get "$_STORAGE_MAPS_BASE_PATH/"

0 commit comments

Comments
 (0)