From b7576b91eff88dfdf67b325c318edfa274a00a58 Mon Sep 17 00:00:00 2001 From: Quintus van Houdt Date: Mon, 23 Sep 2024 23:39:21 +0200 Subject: [PATCH] Add missing examples. --- .../lookup_crd_noprovider_test.yaml.snap | 4 ++++ .../lookup_noprovider_test.yaml.snap | 9 +++++++++ .../tests/lookup_crd_noprovider_test.yaml | 10 ++++++++++ .../tests/lookup_noprovider_test.yaml | 18 ++++++++++++++++++ 4 files changed, 41 insertions(+) create mode 100644 test/data/v3/with-k8s-fake-client/tests/__snapshot__/lookup_crd_noprovider_test.yaml.snap create mode 100644 test/data/v3/with-k8s-fake-client/tests/__snapshot__/lookup_noprovider_test.yaml.snap create mode 100644 test/data/v3/with-k8s-fake-client/tests/lookup_crd_noprovider_test.yaml create mode 100644 test/data/v3/with-k8s-fake-client/tests/lookup_noprovider_test.yaml diff --git a/test/data/v3/with-k8s-fake-client/tests/__snapshot__/lookup_crd_noprovider_test.yaml.snap b/test/data/v3/with-k8s-fake-client/tests/__snapshot__/lookup_crd_noprovider_test.yaml.snap new file mode 100644 index 000000000..d8f5400e0 --- /dev/null +++ b/test/data/v3/with-k8s-fake-client/tests/__snapshot__/lookup_crd_noprovider_test.yaml.snap @@ -0,0 +1,4 @@ +manifest should match snapshot: + 1: | + backup_exists: {} + backup_not_exists: {} diff --git a/test/data/v3/with-k8s-fake-client/tests/__snapshot__/lookup_noprovider_test.yaml.snap b/test/data/v3/with-k8s-fake-client/tests/__snapshot__/lookup_noprovider_test.yaml.snap new file mode 100644 index 000000000..8249c0a64 --- /dev/null +++ b/test/data/v3/with-k8s-fake-client/tests/__snapshot__/lookup_noprovider_test.yaml.snap @@ -0,0 +1,9 @@ +manifest should match snapshot: + 1: | + ingress_exists: {} + ingress_not_exists: {} + namespace_exists: {} + namespace_not_exists: {} + namespaces: {} + pod_exists: {} + pod_not_exists: {} diff --git a/test/data/v3/with-k8s-fake-client/tests/lookup_crd_noprovider_test.yaml b/test/data/v3/with-k8s-fake-client/tests/lookup_crd_noprovider_test.yaml new file mode 100644 index 000000000..02ac04ba1 --- /dev/null +++ b/test/data/v3/with-k8s-fake-client/tests/lookup_crd_noprovider_test.yaml @@ -0,0 +1,10 @@ +templates: + - templates/lookup_crd.yaml +tests: + - it: manifest should match snapshot + asserts: + - matchSnapshot: {} + - isNullOrEmpty: + path: backup_exists + - isNullOrEmpty: + path: backup_not_exists diff --git a/test/data/v3/with-k8s-fake-client/tests/lookup_noprovider_test.yaml b/test/data/v3/with-k8s-fake-client/tests/lookup_noprovider_test.yaml new file mode 100644 index 000000000..9cd09eea5 --- /dev/null +++ b/test/data/v3/with-k8s-fake-client/tests/lookup_noprovider_test.yaml @@ -0,0 +1,18 @@ +templates: + - templates/lookup.yaml +tests: + - it: manifest should match snapshot + asserts: + - matchSnapshot: {} + - isNullOrEmpty: + path: pod_exists + - isNullOrEmpty: + path: ingress_exists + - isNullOrEmpty: + path: namespace_exists + - isNullOrEmpty: + path: pod_not_exists + - isNullOrEmpty: + path: ingress_not_exists + - isNullOrEmpty: + path: namespace_not_exists