fix(apikey): use HMAC-SHA256 for FIPS mode API keys BE-11936 (#980)

pull/11179/merge
andres-portainer 2025-08-05 13:09:35 -03:00 committed by GitHub
parent d00d71ecbf
commit 6c47598cd9
1 changed files with 1 additions and 1 deletions

View File

@ -36,6 +36,7 @@ func Test_getSystemVersion(t *testing.T) {
// setup services
jwtService, err := jwt.NewService("1h", store)
is.NoError(err, "Error initiating jwt service")
apiKeyService := apikey.NewAPIKeyService(store.APIKeyRepository(), store.User())
requestBouncer := security.NewRequestBouncer(store, jwtService, apiKeyService)
@ -45,7 +46,6 @@ func Test_getSystemVersion(t *testing.T) {
jwt, _, _ := jwtService.GenerateToken(&portainer.TokenData{ID: adminUser.ID, Username: adminUser.Username, Role: adminUser.Role})
t.Run("Display Edition", func(t *testing.T) {
req := httptest.NewRequest(http.MethodGet, "/system/version", nil)
testhelpers.AddTestSecurityCookie(req, jwt)