Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
Signed-off-by: Simar <simar@linux.com>
  • Loading branch information
simar7 committed Oct 30, 2024
1 parent f64f00e commit 5a990bc
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 130 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"Class": "config",
"Type": "dockerfile",
"MisconfSummary": {
"Successes": 27,
"Successes": 28,
"Failures": 2,
"Exceptions": 0
},
Expand Down
30 changes: 0 additions & 30 deletions integration/testdata/dockerfile-namespace-exception.json.golden

This file was deleted.

58 changes: 0 additions & 58 deletions integration/testdata/dockerfile-rule-exception.json.golden

This file was deleted.

2 changes: 1 addition & 1 deletion integration/testdata/dockerfile.json.golden
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"Class": "config",
"Type": "dockerfile",
"MisconfSummary": {
"Successes": 26,
"Successes": 27,
"Failures": 1,
"Exceptions": 0
},
Expand Down
2 changes: 1 addition & 1 deletion integration/testdata/dockerfile_file_pattern.json.golden
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"Class": "config",
"Type": "dockerfile",
"MisconfSummary": {
"Successes": 26,
"Successes": 27,
"Failures": 1,
"Exceptions": 0
},
Expand Down

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions integration/testdata/fixtures/repo/rule-exception/Dockerfile

This file was deleted.

This file was deleted.

5 changes: 3 additions & 2 deletions integration/testdata/helm.json.golden
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"Class": "config",
"Type": "helm",
"MisconfSummary": {
"Successes": 80,
"Successes": 79,
"Failures": 14,
"Exceptions": 0
},
Expand Down Expand Up @@ -890,10 +890,11 @@
"Namespace": "builtin.kubernetes.KSV117",
"Query": "data.builtin.kubernetes.KSV117.deny",
"Resolution": "Do not map the container ports to privileged host ports when starting a container.",
"Severity": "HIGH",
"Severity": "MEDIUM",
"PrimaryURL": "https://avd.aquasec.com/misconfig/ksv117",
"References": [
"https://kubernetes.io/docs/concepts/security/pod-security-standards/",
"https://www.stigviewer.com/stig/kubernetes/2022-12-02/finding/V-242414",
"https://avd.aquasec.com/misconfig/ksv117"
],
"Status": "FAIL",
Expand Down
9 changes: 5 additions & 4 deletions integration/testdata/helm_testchart.json.golden
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"Class": "config",
"Type": "helm",
"MisconfSummary": {
"Successes": 90,
"Successes": 89,
"Failures": 4,
"Exceptions": 0
},
Expand Down Expand Up @@ -318,10 +318,11 @@
"Namespace": "builtin.kubernetes.KSV117",
"Query": "data.builtin.kubernetes.KSV117.deny",
"Resolution": "Do not map the container ports to privileged host ports when starting a container.",
"Severity": "HIGH",
"Severity": "MEDIUM",
"PrimaryURL": "https://avd.aquasec.com/misconfig/ksv117",
"References": [
"https://kubernetes.io/docs/concepts/security/pod-security-standards/",
"https://www.stigviewer.com/stig/kubernetes/2022-12-02/finding/V-242414",
"https://avd.aquasec.com/misconfig/ksv117"
],
"Status": "FAIL",
Expand All @@ -341,7 +342,7 @@
"Class": "config",
"Type": "helm",
"MisconfSummary": {
"Successes": 61,
"Successes": 60,
"Failures": 0,
"Exceptions": 0
}
Expand All @@ -351,7 +352,7 @@
"Class": "config",
"Type": "helm",
"MisconfSummary": {
"Successes": 60,
"Successes": 59,
"Failures": 0,
"Exceptions": 0
}
Expand Down
9 changes: 5 additions & 4 deletions integration/testdata/helm_testchart.overridden.json.golden
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"Class": "config",
"Type": "helm",
"MisconfSummary": {
"Successes": 88,
"Successes": 87,
"Failures": 6,
"Exceptions": 0
},
Expand Down Expand Up @@ -545,10 +545,11 @@
"Namespace": "builtin.kubernetes.KSV117",
"Query": "data.builtin.kubernetes.KSV117.deny",
"Resolution": "Do not map the container ports to privileged host ports when starting a container.",
"Severity": "HIGH",
"Severity": "MEDIUM",
"PrimaryURL": "https://avd.aquasec.com/misconfig/ksv117",
"References": [
"https://kubernetes.io/docs/concepts/security/pod-security-standards/",
"https://www.stigviewer.com/stig/kubernetes/2022-12-02/finding/V-242414",
"https://avd.aquasec.com/misconfig/ksv117"
],
"Status": "FAIL",
Expand All @@ -568,7 +569,7 @@
"Class": "config",
"Type": "helm",
"MisconfSummary": {
"Successes": 61,
"Successes": 60,
"Failures": 0,
"Exceptions": 0
}
Expand All @@ -578,7 +579,7 @@
"Class": "config",
"Type": "helm",
"MisconfSummary": {
"Successes": 60,
"Successes": 59,
"Failures": 0,
"Exceptions": 0
}
Expand Down

0 comments on commit 5a990bc

Please sign in to comment.