From 4eaeffa227b2c9798dc9fe8a5ab3c100cbc44503 Mon Sep 17 00:00:00 2001 From: Shubham Gupta Date: Tue, 12 Sep 2023 21:45:43 +0530 Subject: [PATCH] fix e2e check Signed-off-by: Shubham Gupta --- .../test_data/teststep-assert/00-create.yaml | 21 +++---------------- .../test_data/teststep-assert/hello1-pod.yaml | 8 +++++++ .../teststep-assert/hello2/hello2-pod.yaml | 8 +++++++ 3 files changed, 19 insertions(+), 18 deletions(-) create mode 100644 pkg/test/test_data/teststep-assert/hello1-pod.yaml create mode 100644 pkg/test/test_data/teststep-assert/hello2/hello2-pod.yaml diff --git a/pkg/test/test_data/teststep-assert/00-create.yaml b/pkg/test/test_data/teststep-assert/00-create.yaml index 3137032c..0eb60fe0 100644 --- a/pkg/test/test_data/teststep-assert/00-create.yaml +++ b/pkg/test/test_data/teststep-assert/00-create.yaml @@ -1,24 +1,9 @@ -apiVersion: v1 -kind: Pod -metadata: - name: hello2 -spec: - containers: - - image: alpine - name: test ---- -apiVersion: v1 -kind: Pod -metadata: - name: hello -spec: - containers: - - image: alpine - name: test ---- # using assert from TestStep from multiple folder locations apiVersion: kuttl.dev/v1beta1 kind: TestStep +apply: + - hello1-pod.yaml + - hello2/hello2-pod.yaml assert: - hello1-assert.yaml - hello2/hello2-assert.yaml \ No newline at end of file diff --git a/pkg/test/test_data/teststep-assert/hello1-pod.yaml b/pkg/test/test_data/teststep-assert/hello1-pod.yaml new file mode 100644 index 00000000..df6b4ec4 --- /dev/null +++ b/pkg/test/test_data/teststep-assert/hello1-pod.yaml @@ -0,0 +1,8 @@ +apiVersion: v1 +kind: Pod +metadata: + name: hello +spec: + containers: + - image: alpine + name: test \ No newline at end of file diff --git a/pkg/test/test_data/teststep-assert/hello2/hello2-pod.yaml b/pkg/test/test_data/teststep-assert/hello2/hello2-pod.yaml new file mode 100644 index 00000000..2394699d --- /dev/null +++ b/pkg/test/test_data/teststep-assert/hello2/hello2-pod.yaml @@ -0,0 +1,8 @@ +apiVersion: v1 +kind: Pod +metadata: + name: hello2 +spec: + containers: + - image: alpine + name: test \ No newline at end of file