Skip to content

Commit 2d1a3ce

Browse files
committed
Add cert for ap-waf-grpc test
1 parent d2e31aa commit 2d1a3ce

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

hack/tls-cert-gen/certs.go

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ var yamlSecrets = []yamlSecret{
7171
"/examples/ingress-resources/proxy-set-headers/standard-ingress/cafe-secret.yaml",
7272
"/examples/ingress-resources/rate-limit/cafe-secret.yaml",
7373
"/examples/ingress-resources/security-monitoring/cafe-secret.yaml",
74-
"/tests/data/ap-waf-grpc/tls-secret.yaml",
7574
"/tests/data/appprotect/appprotect-secret.yaml",
7675
"/tests/data/common/app/secure/secret/app-tls-secret.yaml",
7776
"/tests/data/dos/tls-secret.yaml",
@@ -256,4 +255,25 @@ var yamlSecrets = []yamlSecret{
256255
valid: secretShouldHaveValidTLSCrt,
257256
symlinks: []string{},
258257
},
258+
259+
{
260+
secretName: "tls-secret",
261+
fileName: "tls-secret.yaml",
262+
templateData: templateData{
263+
country: []string{"IE"},
264+
organization: []string{"F5 NGINX"},
265+
organizationalUnit: []string{"NGINX Ingress Controller"},
266+
locality: []string{"Cork"},
267+
province: []string{"Cork"},
268+
commonName: "virtual-server.example.com",
269+
dnsNames: []string{"virtual-server.example.com"},
270+
},
271+
valid: secretShouldHaveValidTLSCrt,
272+
symlinks: []string{
273+
"/tests/data/ap-waf-grpc/tls-secret.yaml",
274+
},
275+
usedIn: []string{
276+
"suite/test_app_protect_waf_policies_grpc.py::TestAppProtectVSGrpc - needed for the common name",
277+
},
278+
},
259279
}

0 commit comments

Comments
 (0)