Skip to content

Commit

Permalink
remove test case that's no longer valid'
Browse files Browse the repository at this point in the history
  • Loading branch information
ndhanushkodi committed Sep 12, 2023
1 parent 61e236c commit bd6e7ba
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions agent/consul/leader_connect_ca_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit bd6e7ba

Please sign in to comment.