-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: modify clusterpolicyreports in kuttl tests
Signed-off-by: Mariam Fahmy <[email protected]>
- Loading branch information
1 parent
d82ab7e
commit 8b1186a
Showing
9 changed files
with
93 additions
and
42 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...q/namespace-inventory-check/03-cpolr.yaml → ...equire-authorizationpolicy/03-report.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- command: bash ./resource-check.sh | ||
assert: | ||
- report-assert.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
apiVersion: wgpolicyk8s.io/v1alpha2 | ||
kind: ClusterPolicyReport | ||
metadata: | ||
ownerReferences: | ||
- apiVersion: v1 | ||
kind: Namespace | ||
name: istio-reqauthzpol-bad-ns | ||
summary: | ||
error: 0 | ||
fail: 1 | ||
pass: 0 | ||
skip: 0 | ||
warn: 0 | ||
--- | ||
apiVersion: wgpolicyk8s.io/v1alpha2 | ||
kind: ClusterPolicyReport | ||
metadata: | ||
ownerReferences: | ||
- apiVersion: v1 | ||
kind: Namespace | ||
name: istio-reqauthzpol-good-ns | ||
summary: | ||
error: 0 | ||
fail: 0 | ||
pass: 1 | ||
skip: 0 | ||
warn: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
assert: | ||
- report-assert.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
apiVersion: wgpolicyk8s.io/v1alpha2 | ||
kind: ClusterPolicyReport | ||
metadata: | ||
ownerReferences: | ||
- apiVersion: v1 | ||
kind: Namespace | ||
name: inventory-check-ns01 | ||
results: | ||
- result: fail | ||
rule: networkpolicies | ||
- result: pass | ||
rule: resourcequotas | ||
summary: | ||
error: 0 | ||
fail: 1 | ||
pass: 1 | ||
skip: 0 | ||
warn: 0 | ||
--- | ||
apiVersion: wgpolicyk8s.io/v1alpha2 | ||
kind: ClusterPolicyReport | ||
metadata: | ||
ownerReferences: | ||
- apiVersion: v1 | ||
kind: Namespace | ||
name: inventory-check-ns02 | ||
results: | ||
- result: pass | ||
rule: networkpolicies | ||
- result: fail | ||
rule: resourcequotas | ||
summary: | ||
error: 0 | ||
fail: 1 | ||
pass: 1 | ||
skip: 0 | ||
warn: 0 | ||
--- | ||
apiVersion: wgpolicyk8s.io/v1alpha2 | ||
kind: ClusterPolicyReport | ||
metadata: | ||
ownerReferences: | ||
- apiVersion: v1 | ||
kind: Namespace | ||
name: inventory-check-ns03 | ||
results: | ||
- result: pass | ||
rule: networkpolicies | ||
- result: pass | ||
rule: resourcequotas | ||
summary: | ||
error: 0 | ||
fail: 0 | ||
pass: 2 | ||
skip: 0 | ||
warn: 0 |
This file was deleted.
Oops, something went wrong.