Skip to content

Commit

Permalink
chore: move kyverno tests in a sub folder (#820)
Browse files Browse the repository at this point in the history
Signed-off-by: Charles-Edouard Brétéché <[email protected]>
  • Loading branch information
eddycharly authored Dec 4, 2023
1 parent e266870 commit 88d92ec
Show file tree
Hide file tree
Showing 536 changed files with 242 additions and 242 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Test
metadata:
name: appproject-clusterresourceblacklist
policies:
- appproject-clusterresourceblacklist.yaml
- ../appproject-clusterresourceblacklist.yaml
resources:
- resources.yaml
results:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Test
metadata:
name: deny-all-traffic
policies:
- add-network-policy.yaml
- ../add-network-policy.yaml
resources:
- resource.yaml
results:
Expand Down
2 changes: 1 addition & 1 deletion best-practices/add-network-policy/03-ns.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
apply:
- resource.yaml
- .kyverno-test/resource.yaml
2 changes: 1 addition & 1 deletion best-practices/add-network-policy/04-npolicy.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
assert:
- generatedResource.yaml
- .kyverno-test/generatedResource.yaml
error:
- notGeneratedResource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Test
metadata:
name: add-quota
policies:
- add-ns-quota.yaml
- ../add-ns-quota.yaml
resources:
- resource.yaml
results:
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion best-practices/add-ns-quota/03-ns.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
apply:
- resource.yaml
- .kyverno-test/resource.yaml
4 changes: 2 additions & 2 deletions best-practices/add-ns-quota/04-npolicy.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
assert:
- generatedResourceQuota.yaml
- generatedLimitRange.yaml
- .kyverno-test/generatedResourceQuota.yaml
- .kyverno-test/generatedLimitRange.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Test
metadata:
name: add-safe-to-evict
policies:
- add-safe-to-evict.yaml
- ../add-safe-to-evict.yaml
resources:
- resource.yaml
results:
Expand Down
2 changes: 1 addition & 1 deletion best-practices/add-safe-to-evict/02-manifests.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
apply:
- resource.yaml
- .kyverno-test/resource.yaml
- resource-others.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Test
metadata:
name: check-deprecated-apis
policies:
- check-deprecated-apis.yaml
- ../check-deprecated-apis.yaml
resources:
- resource.yaml
results:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Test
metadata:
name: disallow-cri-sock-mount
policies:
- disallow-cri-sock-mount.yaml
- ../disallow-cri-sock-mount.yaml
resources:
- resource.yaml
results:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Test
metadata:
name: disallow-default-namespace
policies:
- disallow-default-namespace.yaml
- ../disallow-default-namespace.yaml
resources:
- resource.yaml
results:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Test
metadata:
name: disallow-empty-ingress-host
policies:
- disallow-empty-ingress-host.yaml
- ../disallow-empty-ingress-host.yaml
resources:
- resource.yaml
results:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Test
metadata:
name: disallow-helm-tiller
policies:
- disallow-helm-tiller.yaml
- ../disallow-helm-tiller.yaml
resources:
- resource.yaml
results:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Test
metadata:
name: disallow-latest-tag
policies:
- disallow-latest-tag.yaml
- ../disallow-latest-tag.yaml
resources:
- resource.yaml
results:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Test
metadata:
name: require-drop-all
policies:
- require-drop-all.yaml
- ../require-drop-all.yaml
resources:
- resource.yaml
results:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Test
metadata:
name: require-drop-cap-net-raw
policies:
- require-drop-cap-net-raw.yaml
- ../require-drop-cap-net-raw.yaml
resources:
- resource.yaml
results:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Test
metadata:
name: require-labels
policies:
- require-labels.yaml
- ../require-labels.yaml
resources:
- resource.yaml
results:
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Test
metadata:
name: require-requests-limits
policies:
- require-pod-requests-limits.yaml
- ../require-pod-requests-limits.yaml
resources:
- resource.yaml
results:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Test
metadata:
name: require-pod-probes
policies:
- require-probes.yaml
- ../require-probes.yaml
resources:
- resource.yaml
results:
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Test
metadata:
name: require-ro-rootfs
policies:
- require-ro-rootfs.yaml
- ../require-ro-rootfs.yaml
resources:
- resource.yaml
results:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Test
metadata:
name: restrict-image-registries
policies:
- restrict-image-registries.yaml
- ../restrict-image-registries.yaml
resources:
- resource.yaml
results:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Test
metadata:
name: restrict-node-port
policies:
- restrict-node-port.yaml
- ../restrict-node-port.yaml
resources:
- resource.yaml
results:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Test
metadata:
name: restrict-external-ips
policies:
- restrict-service-external-ips.yaml
- ../restrict-service-external-ips.yaml
resources:
- resource.yaml
results:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Test
metadata:
name: add-castai-removal-disabled
policies:
- add-castai-removal-disabled.yaml
- ../add-castai-removal-disabled.yaml
resources:
- resources.yaml
results:
Expand Down
2 changes: 1 addition & 1 deletion castai/add-castai-removal-disabled/02-manifests.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
apply:
- file: resources.yaml
- file: .kyverno-test/resources.yaml
shouldFail: false
4 changes: 2 additions & 2 deletions castai/add-castai-removal-disabled/03-mutated.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
assert:
- patched01.yaml
- patched02.yaml
- .kyverno-test/patched01.yaml
- .kyverno-test/patched02.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Test
metadata:
name: limit_dnsnames
policies:
- limit-dnsnames.yaml
- ../limit-dnsnames.yaml
resources:
- resource.yaml
results:
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Test
metadata:
name: limit-duration
policies:
- limit-duration.yaml
- ../limit-duration.yaml
resources:
- resource.yaml
results:
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Test
metadata:
name: restrict-issuer
policies:
- restrict-issuer.yaml
- ../restrict-issuer.yaml
resources:
- resource.yaml
results:
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Test
metadata:
name: enforce-min-tls-version
policies:
- enforce-min-tls-version.yaml
- ../enforce-min-tls-version.yaml
resources:
- resource.yaml
results:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Test
metadata:
name: add-external-secret-prefix
policies:
- add-external-secret-prefix.yaml
- ../add-external-secret-prefix.yaml
resources:
- resource.yaml
results:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Test
metadata:
name: restrict-virtual-service-wildcard
policies:
- restrict-virtual-service-wildcard.yaml
- ../restrict-virtual-service-wildcard.yaml
resources:
- resources.yaml
results:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Test
metadata:
name: test-add-karpenter-daemonset-priority-class
policies:
- add-karpenter-daemonset-priority-class.yaml
- ../add-karpenter-daemonset-priority-class.yaml
resources:
- daemonset.yaml
results:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Test
metadata:
name: add-karpenter-donot-evict
policies:
- add-karpenter-donot-evict.yaml
- ../add-karpenter-donot-evict.yaml
resources:
- resource.yaml
results:
Expand Down
2 changes: 1 addition & 1 deletion karpenter/add-karpenter-donot-evict/02-resources.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
apply:
- resource.yaml
- .kyverno-test/resource.yaml
- resource-others.yaml
4 changes: 2 additions & 2 deletions karpenter/add-karpenter-donot-evict/03-mutated.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
assert:
- patched01.yaml
- patched02.yaml
- .kyverno-test/patched01.yaml
- .kyverno-test/patched02.yaml
- patched03.yaml
- patched04.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Test
metadata:
name: set-karpenter-non-cpu-limits
policies:
- set-karpenter-non-cpu-limits.yaml
- ../set-karpenter-non-cpu-limits.yaml
resources:
- resources.yaml
results:
Expand Down
2 changes: 1 addition & 1 deletion karpenter/set-karpenter-non-cpu-limits/02-resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ apiVersion: kuttl.dev/v1beta1
kind: TestStep
apply:
- ns.yaml
- resources.yaml
- .kyverno-test/resources.yaml
- podcontroller-resources.yaml
- pod-others.yaml
16 changes: 8 additions & 8 deletions karpenter/set-karpenter-non-cpu-limits/03-mutated.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
assert:
- pod-memory-patched1.yaml
- pod-memory-patched2.yaml
- pod-memory-patched3.yaml
- pod-memory-patched4.yaml
- pod-ephemeral-storage-patched1.yaml
- pod-ephemeral-storage-patched2.yaml
- pod-ephemeral-storage-patched3.yaml
- pod-ephemeral-storage-patched4.yaml
- .kyverno-test/pod-memory-patched1.yaml
- .kyverno-test/pod-memory-patched2.yaml
- .kyverno-test/pod-memory-patched3.yaml
- .kyverno-test/pod-memory-patched4.yaml
- .kyverno-test/pod-ephemeral-storage-patched1.yaml
- .kyverno-test/pod-ephemeral-storage-patched2.yaml
- .kyverno-test/pod-ephemeral-storage-patched3.yaml
- .kyverno-test/pod-ephemeral-storage-patched4.yaml
- podcontroller-patched.yaml
- pod-others-patched.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Test
metadata:
name: kyverno_data_protection_tests
policies:
- k10-3-2-1-backup.yaml
- ../k10-3-2-1-backup.yaml
resources:
- k10-backup-policy.yaml
results:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Test
metadata:
name: kyverno_data_protection_tests
policies:
- k10-data-protection-by-label.yaml
- ../k10-data-protection-by-label.yaml
resources:
- nginx-deployment.yaml
results:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Test
metadata:
name: k10-generate-policy-by-preset-label-test
policies:
- k10-generate-policy-by-preset-label.yaml
- ../k10-generate-policy-by-preset-label.yaml
resources:
- test-resource.yaml
results:
Expand Down
Loading

0 comments on commit 88d92ec

Please sign in to comment.