From f92ea8cd4cfbf67e6005b506dcd512e2131d96b8 Mon Sep 17 00:00:00 2001 From: Kubeshop <174873053+ed382@users.noreply.github.com> Date: Wed, 21 Aug 2024 17:50:57 +0200 Subject: [PATCH] fix: kubepug integration test --- .../kubepug/pkg/runner/runner_test.go | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/contrib/executor/kubepug/pkg/runner/runner_test.go b/contrib/executor/kubepug/pkg/runner/runner_test.go index aac948245d9..39034a34888 100644 --- a/contrib/executor/kubepug/pkg/runner/runner_test.go +++ b/contrib/executor/kubepug/pkg/runner/runner_test.go @@ -14,6 +14,8 @@ import ( "github.com/kubeshop/testkube/pkg/utils/test" ) +const validateAgainstKubernetesVersion string = "v1.28.3" + func TestRunString_Integration(t *testing.T) { test.IntegrationTest(t) t.Parallel() @@ -40,6 +42,8 @@ func TestRunString_Integration(t *testing.T) { execution.Command = []string{"kubepug"} execution.Args = []string{ "--format=json", + "--k8s-version", + validateAgainstKubernetesVersion, "--input-file", "", } @@ -85,6 +89,8 @@ metadata: execution.Command = []string{"kubepug"} execution.Args = []string{ "--format=json", + "--k8s-version", + validateAgainstKubernetesVersion, "--input-file", "", } @@ -173,6 +179,8 @@ spec: execution.Command = []string{"kubepug"} execution.Args = []string{ "--format=json", + "--k8s-version", + validateAgainstKubernetesVersion, "--input-file", "", } @@ -208,6 +216,8 @@ func TestRunFileURI_Integration(t *testing.T) { execution.Command = []string{"kubepug"} execution.Args = []string{ "--format=json", + "--k8s-version", + validateAgainstKubernetesVersion, "--input-file", "", } @@ -244,6 +254,8 @@ func TestRunFileURI_Integration(t *testing.T) { execution.Command = []string{"kubepug"} execution.Args = []string{ "--format=json", + "--k8s-version", + validateAgainstKubernetesVersion, "--input-file", "", } @@ -287,6 +299,8 @@ func TestRunGitFile_Integration(t *testing.T) { execution.Command = []string{"kubepug"} execution.Args = []string{ "--format=json", + "--k8s-version", + validateAgainstKubernetesVersion, "--input-file", "", } @@ -323,6 +337,8 @@ func TestRunGitFile_Integration(t *testing.T) { execution.Command = []string{"kubepug"} execution.Args = []string{ "--format=json", + "--k8s-version", + validateAgainstKubernetesVersion, "--input-file", "", } @@ -370,6 +386,8 @@ func TestRunGitDirectory_Integration(t *testing.T) { execution.Command = []string{"kubepug"} execution.Args = []string{ "--format=json", + "--k8s-version", + validateAgainstKubernetesVersion, "--input-file", "", } @@ -478,6 +496,8 @@ spec: execution.Command = []string{"kubepug"} execution.Args = []string{ "--format=json", + "--k8s-version", + validateAgainstKubernetesVersion, "--input-file", "", } @@ -566,6 +586,8 @@ spec: execution.Command = []string{"kubepug"} execution.Args = []string{ "--format=json", + "--k8s-version", + validateAgainstKubernetesVersion, "--input-file", "", "--k8s-version=v1.7.0", // last version apps/v1beta2/Deployment was valid