Skip to content

Commit

Permalink
changed the test dir
Browse files Browse the repository at this point in the history
Signed-off-by: Ved Ratan <[email protected]>
  • Loading branch information
VedRatan committed Feb 17, 2024
1 parent 6e4681f commit 1f92d42
Show file tree
Hide file tree
Showing 15 changed files with 26 additions and 35 deletions.
29 changes: 0 additions & 29 deletions internal/controller/tests/np-creation/chainsaw-test.yaml

This file was deleted.

File renamed without changes.
20 changes: 20 additions & 0 deletions tests/controllers/np-creation/chainsaw-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
name: np-creation
spec:
timeouts:
assert: 10s
steps:
- try:
# first operation: create the config map
- apply:
# file is relative to the test folder
file: ../../../examples/namespaced/dns-manipulation-si-sib.yaml
# second operation: verify the config map exists and contains the expected data
- assert:
# file is relative to the test folder
file: ../../../examples/namespaced/dns-manipulation-si-sib.yaml
- assert:
file: nimbus-policy.yaml

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ spec:
try:
- apply:
# file is relative to the test folder
file: ../../../../examples/namespaced/dns-manipulation-si-sib.yaml
file: ../../../examples/namespaced/dns-manipulation-si-sib.yaml
- assert:
file: ../../../../examples/namespaced/dns-manipulation-si-sib.yaml
file: ../../../examples/namespaced/dns-manipulation-si-sib.yaml
- name: step-02
try:
- apply:
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ spec:
try:
- apply:
# file is relative to the test folder
file: ../../../../examples/namespaced/dns-manipulation-si-sib.yaml
file: ../../../examples/namespaced/dns-manipulation-si-sib.yaml
- assert:
file: ../../../../examples/namespaced/dns-manipulation-si-sib.yaml
file: ../../../examples/namespaced/dns-manipulation-si-sib.yaml
- name: step-02
try:
- script:
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ spec:
try:
- apply:
# file is relative to the test folder
file: ../../../../examples/namespaced/dns-manipulation-si-sib.yaml
file: ../../../examples/namespaced/dns-manipulation-si-sib.yaml
- assert:
file: ../../../../examples/namespaced/dns-manipulation-si-sib.yaml
file: ../../../examples/namespaced/dns-manipulation-si-sib.yaml
- name: step-02
try:
- apply:
Expand Down

0 comments on commit 1f92d42

Please sign in to comment.