From 6d02ef7694200df4173dc7e6f5b2e5dfdcbd8ebf Mon Sep 17 00:00:00 2001 From: BJ Cardon Date: Thu, 23 Jul 2020 06:59:07 -0600 Subject: [PATCH] tests: add NA test case for e_tls_server_cert_valid_time_longer_than_398_days (#457) --- ...int_e_server_cert_valid_time_longer_than_398_days_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/v2/lints/apple/lint_e_server_cert_valid_time_longer_than_398_days_test.go b/v2/lints/apple/lint_e_server_cert_valid_time_longer_than_398_days_test.go index 46dee4a7c..a748684d5 100644 --- a/v2/lints/apple/lint_e_server_cert_valid_time_longer_than_398_days_test.go +++ b/v2/lints/apple/lint_e_server_cert_valid_time_longer_than_398_days_test.go @@ -39,6 +39,11 @@ func TestServerCertValidityTooLong(t *testing.T) { testCert: "eeServerCertValidOver398.pem", expected: lint.Error, }, + { + // Cert containing CA basic constraint, should be Not Applicable + testCert: "caBasicConstCrit.pem", + expected: lint.NA, + }, } for _, tc := range testCases {