From bd6e7baa2d22a5708824859ff33962d91aac11dc Mon Sep 17 00:00:00 2001 From: Nitya Dhanushkodi Date: Tue, 12 Sep 2023 10:10:28 -0700 Subject: [PATCH] remove test case that's no longer valid' --- agent/consul/leader_connect_ca_test.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/agent/consul/leader_connect_ca_test.go b/agent/consul/leader_connect_ca_test.go index 7ec5b9c6609eb..b3e8fdc9d0edb 100644 --- a/agent/consul/leader_connect_ca_test.go +++ b/agent/consul/leader_connect_ca_test.go @@ -1312,11 +1312,6 @@ func TestCAManager_AuthorizeAndSignCertificate(t *testing.T) { Namespace: "ns1", Service: "test-service", }.URI() - workloadIdentityURL := connect.SpiffeIDWorkloadIdentity{ - Namespace: "ns1", - WorkloadIdentity: "test-wl-identity", - TrustDomain: "test-domain", - }.URI() meshURL := connect.SpiffeIDMeshGateway{ Datacenter: conf.PrimaryDatacenter, Host: "test-host", @@ -1329,15 +1324,6 @@ func TestCAManager_AuthorizeAndSignCertificate(t *testing.T) { getCSR func() *x509.CertificateRequest authAllow bool }{ - { - name: "err_workload_identity_not_allowed", - expectErr: "Permission denied", - getCSR: func() *x509.CertificateRequest { - return &x509.CertificateRequest{ - URIs: []*url.URL{workloadIdentityURL}, - } - }, - }, { name: "err_not_one_uri", expectErr: "CSR SAN contains an invalid number of URIs",