Skip to content

Commit

Permalink
Fix small typos in PCA unit tests (#5478)
Browse files Browse the repository at this point in the history
Signed-off-by: Faisal Memon <fymemon@yahoo.com>
  • Loading branch information
faisal-memon authored Sep 8, 2024
1 parent 67b86c0 commit b21a7ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/server/plugin/upstreamauthority/awspca/pca_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ func TestMintX509CA(t *testing.T) {
config: successConfig,
csr: makeCSR("spiffe://example.com/foo"),
preferredTTL: 300 * time.Second,
getCertificateCert: "no a certificate",
getCertificateCert: "not a certificate",
getCertificateCertChain: encodedCertChain.String(),
expectCode: codes.Internal,
expectMsgPrefix: "upstreamauthority(aws_pca): failed to parse certificate from response: no PEM blocks",
Expand All @@ -377,7 +377,7 @@ func TestMintX509CA(t *testing.T) {
csr: makeCSR("spiffe://example.com/foo"),
preferredTTL: 300 * time.Second,
getCertificateCert: encodedCert.String(),
getCertificateCertChain: "no a cert chain",
getCertificateCertChain: "not a cert chain",
expectCode: codes.Internal,
expectMsgPrefix: "upstreamauthority(aws_pca): failed to parse certificate chain from response: no PEM blocks",
},
Expand Down

0 comments on commit b21a7ff

Please sign in to comment.