Skip to content

Commit

Permalink
test: Add test for CertificateSigningRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
stepanstipl committed Jun 11, 2021
1 parent fe175eb commit db7dfb5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions fixtures/certificatesigningrequest-v1beta1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: certificates.k8s.io/v1beta1
kind: CertificateSigningRequest
metadata:
name: example.com
spec:
request: aGVsbG9YWAo=
usages:
- key encipherment
- server auth
1 change: 1 addition & 0 deletions test/rules_122_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ func TestRego122(t *testing.T) {
{"Ingress", []string{"../fixtures/ingress-v1beta1.yaml"}, []string{"Ingress"}},
{"IngressClass", []string{"../fixtures/ingressclass-v1beta1.yaml"}, []string{"IngressClass"}},
{"Lease", []string{"../fixtures/lease-v1beta1.yaml"}, []string{"Lease"}},
{"CertificateSigningRequest", []string{"../fixtures/certificatesigningrequest-v1beta1.yaml"}, []string{"CertificateSigningRequest"}},
}

for _, tc := range testCases {
Expand Down

0 comments on commit db7dfb5

Please sign in to comment.