From b6b67ba8db5ca732f4cd8e70dfd6452a634275f7 Mon Sep 17 00:00:00 2001 From: Moritz Wiesinger Date: Wed, 28 Aug 2024 16:23:20 +0200 Subject: [PATCH] [chore] update package tests with upstream changes Signed-off-by: Moritz Wiesinger --- internal/testbed/linux-services/package-tests.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/testbed/linux-services/package-tests.sh b/internal/testbed/linux-services/package-tests.sh index bb34830e..ef53dc82 100755 --- a/internal/testbed/linux-services/package-tests.sh +++ b/internal/testbed/linux-services/package-tests.sh @@ -52,7 +52,12 @@ trap 'podman rm -fv $container_name >/dev/null 2>&1 || true' EXIT podman build -t "$image_name" --arch "$translated_arch" -f "$SCRIPT_DIR/Dockerfile.test.$pkg_type" "$SCRIPT_DIR" podman rm -fv "$container_name" >/dev/null 2>&1 || true +# test install podman run --name "$container_name" --arch "$translated_arch" -d "$image_name" + +# ensure that the system is up and running by checking if systemctl is running +$container_exec systemctl is-system-running --quiet --wait + podman_cp "$container_name" internal/testbed/linux-services/config.test.yaml /etc/dynatrace-otel-collector/config.yaml install_pkg "$container_name" "$PKG_PATH"