From f8a52a964aa89588aed3cc2b2fb3adbdf91a5ea9 Mon Sep 17 00:00:00 2001 From: Vault Automation Date: Tue, 9 Jun 2026 09:12:14 -0600 Subject: [PATCH] Fix PKI test compilation error (#15300) (#15312) The test was using invalid Go syntax: new(string("87600h")) Changed to create a variable and use its address instead. Error: string("87600h") is not a type Co-authored-by: hashigator <280075563+hashigator@users.noreply.github.com> --- vault/external_tests/blackbox/secrets/secrets_pki_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vault/external_tests/blackbox/secrets/secrets_pki_test.go b/vault/external_tests/blackbox/secrets/secrets_pki_test.go index 0e0ff4d21e..2bc26e13dc 100644 --- a/vault/external_tests/blackbox/secrets/secrets_pki_test.go +++ b/vault/external_tests/blackbox/secrets/secrets_pki_test.go @@ -16,8 +16,9 @@ func testPKISecretsCreate(t *testing.T, v *blackbox.Session) { v.MustEnableSecretsEngine("pki-create", &api.MountInput{Type: "pki"}) // Configure max TTL for the mount + maxLeaseTTL := "87600h" err := v.Client.Sys().TuneMountAllowNilWithContext(t.Context(), "pki-create", api.TuneMountConfigInput{ - MaxLeaseTTL: new(string("87600h")), + MaxLeaseTTL: &maxLeaseTTL, }) if err != nil { t.Fatalf("Failed to tune PKI mount: %v: %v", err, v.Client.Address())