Skip to content

Commit

Permalink
rebase and fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
patilpankaj212 authored and Yusuf Kanchwala committed Jan 15, 2021
1 parent 73a1169 commit 6530dc8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions pkg/iac-providers/kubernetes/v1/normalize_test.go
Expand Up @@ -68,7 +68,9 @@ kind: CRD
metadata:
generateName: myapp-pod-prefix-
annotations:
terrascanSkip: [accurics.kubernetes.IAM.109]
terrascanSkip:
- rule: accurics.kubernetes.IAM.109
comment: reason to skip the rule
spec:
containers:
- name: myapp-container
Expand Down Expand Up @@ -242,7 +244,7 @@ func TestK8sV1Normalize(t *testing.T) {
},
},
},
SkipRules: []string{testRule},
SkipRules: []output.SkipRule{testSkipRule},
},
},
{
Expand All @@ -263,7 +265,10 @@ func TestK8sV1Normalize(t *testing.T) {
"kind": "CRD",
"metadata": map[string]interface{}{
"annotations": map[string]interface{}{
terrascanSkip: []interface{}{testRule},
terrascanSkip: []interface{}{map[string]interface{}{
"rule": testRule,
"comment": testComment,
}},
},
"generateName": "myapp-pod-prefix-",
},
Expand Down

0 comments on commit 6530dc8

Please sign in to comment.