diff --git a/images/cilium/tests/cilium-install.sh b/images/cilium/tests/cilium-install.sh index eb18968975..e6245f37f6 100755 --- a/images/cilium/tests/cilium-install.sh +++ b/images/cilium/tests/cilium-install.sh @@ -2,7 +2,11 @@ set -o errexit -o errtrace -o pipefail -x -v -apk add cilium-cli +# Newer versions of the CLI requires some version symbols +# that our binary is missing. Temporarily use the 0.16.14 +# version of the CLI to avoid this issue. +apk add cilium-cli~0.16.14 + cilium status --wait --wait-duration 2m QUAY_IMAGES=$(cilium status -o json | grep quay.io || true) diff --git a/images/cluster-proportional-autoscaler/tests/main.tf b/images/cluster-proportional-autoscaler/tests/main.tf index 3b23926e48..effa0f3517 100644 --- a/images/cluster-proportional-autoscaler/tests/main.tf +++ b/images/cluster-proportional-autoscaler/tests/main.tf @@ -27,12 +27,15 @@ module "cluster_harness" { module "helm" { source = "../../../tflib/imagetest/helm" + name = "cpa" repo = "https://kubernetes-sigs.github.io/cluster-proportional-autoscaler" chart = "cluster-proportional-autoscaler" + wait = true values = { options = { - target = "deployment/" + target = "deployment/nginx-autoscale-example" + logLevel = 2 } config = { @@ -40,7 +43,7 @@ module "helm" { coresPerReplica = 2 nodesPerReplica = 1 min = 1 - max = 100 + max = 3 preventSinglePointFailure = true includeUnschedulableNodes = true } @@ -59,13 +62,80 @@ resource "imagetest_feature" "basic" { harness = module.cluster_harness.harness steps = [ + { + name = "Deploy nginx-autoscale-example" + cmd = < /dev/null; then + echo "Current logs: $logs" + echo "Expected log not found: $log" + exit 1 + fi + done + EOF + }, + { + name = "Check unexpected logs" + cmd = <