From 6ae1f6a8f41d5d69ea447fccf19582644d3e0a0a Mon Sep 17 00:00:00 2001 From: Jeffrey Bevill Date: Wed, 23 Jan 2019 13:45:06 -0700 Subject: [PATCH] Fix Unit Test for PR (#3211) - ADDSSLKeys API - Remove mandatory SKI/AKI Test has been updated to reflect that rootCA is included in certificate chain output. --- traffic_ops/traffic_ops_golang/deliveryservice/keys_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/traffic_ops/traffic_ops_golang/deliveryservice/keys_test.go b/traffic_ops/traffic_ops_golang/deliveryservice/keys_test.go index 1bc2bd250a..659d221814 100644 --- a/traffic_ops/traffic_ops_golang/deliveryservice/keys_test.go +++ b/traffic_ops/traffic_ops_golang/deliveryservice/keys_test.go @@ -227,7 +227,7 @@ func TestVerifyAndEncodeCertificate(t *testing.T) { certs := strings.SplitAfter(dat, PemCertEndMarker) length := len(certs) - 1 - if length != 2 { + if length != 3 { // rootCA now included in certChain t.Errorf("Test failure: expected 2 certs from verifyCertificate(), got: %d ", length) } }