From 8ad61b4e29a8403ec49691b2f0a2c11187d56385 Mon Sep 17 00:00:00 2001 From: DanStough Date: Tue, 11 Jul 2023 10:55:57 -0400 Subject: [PATCH] test: fix FIPS inline cert test message --- agent/structs/config_entry_inline_certificate_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/agent/structs/config_entry_inline_certificate_test.go b/agent/structs/config_entry_inline_certificate_test.go index 8c7754013106..b95f3b0e9694 100644 --- a/agent/structs/config_entry_inline_certificate_test.go +++ b/agent/structs/config_entry_inline_certificate_test.go @@ -162,7 +162,9 @@ func TestInlineCertificate(t *testing.T) { PrivateKey: tooShortPrivateKey, Certificate: "foo", }, - validateErr: "key length must be at least 2048 bits", + // non-FIPS: "key length must be at least 2048 bits" + // FIPS: "key length invalid: only RSA lengths of 2048, 3072, and 4096 are allowed in FIPS mode" + validateErr: "key length", }, "mismatched certificate": { entry: &InlineCertificateConfigEntry{