ci: add integration test for graceful Gateway shutdown (#10077)

Signed-off-by: Thomas Eizinger <thomas@eizinger.io>
This commit is contained in:
Thomas Eizinger
2025-09-10 23:41:55 +00:00
committed by GitHub
parent d1d46fdfb4
commit 83171d3a2d
4 changed files with 15 additions and 3 deletions

View File

@@ -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

View File

@@ -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}

View 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"

View File

@@ -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() {