mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
ci: add integration test for graceful Gateway shutdown (#10077)
Signed-off-by: Thomas Eizinger <thomas@eizinger.io>
This commit is contained in:
1
.github/workflows/_integration_tests.yml
vendored
1
.github/workflows/_integration_tests.yml
vendored
@@ -102,6 +102,7 @@ jobs:
|
||||
test:
|
||||
- name: direct-curl-api-down
|
||||
- name: direct-curl-api-restart
|
||||
- name: direct-curl-gateway-restart
|
||||
- name: direct-curl-ecn
|
||||
- name: direct-download-packet-loss
|
||||
- name: direct-dns-api-down
|
||||
|
||||
@@ -384,7 +384,7 @@ services:
|
||||
apk add --no-cache ethtool
|
||||
ethtool -K eth0 tx off
|
||||
|
||||
firezone-headless-client
|
||||
exec firezone-headless-client
|
||||
init: true
|
||||
build:
|
||||
target: ${DOCKER_BUILD_TARGET:-debug}
|
||||
@@ -455,7 +455,7 @@ services:
|
||||
ethtool -K eth1 tx off
|
||||
ethtool -K eth2 tx off
|
||||
|
||||
firezone-gateway
|
||||
exec firezone-gateway
|
||||
init: true
|
||||
build:
|
||||
target: ${DOCKER_BUILD_TARGET:-debug}
|
||||
|
||||
11
scripts/tests/direct-curl-gateway-restart.sh
Executable file
11
scripts/tests/direct-curl-gateway-restart.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source "./scripts/tests/lib.sh"
|
||||
|
||||
client_curl_resource "172.20.0.100/get"
|
||||
client_curl_resource "[172:20:0::100]/get"
|
||||
|
||||
docker compose restart gateway
|
||||
|
||||
client_curl_resource "172.20.0.100/get"
|
||||
client_curl_resource "[172:20:0::100]/get"
|
||||
@@ -19,7 +19,7 @@ function relay2() {
|
||||
}
|
||||
|
||||
function client_curl_resource() {
|
||||
client curl --connect-timeout 30 --fail "$1" >/dev/null
|
||||
client curl --connect-timeout 10 --fail "$1" >/dev/null
|
||||
}
|
||||
|
||||
function client_ping_resource() {
|
||||
|
||||
Reference in New Issue
Block a user