ProvisioningApiKeyBootstrapUnitTest

5

tests

0

failures

0

ignored

0.007s

duration

100%

successful

Tests

Test Duration Result
aMissingConfiguredApiKeyHashIsIgnored() 0.001s passed
anInvalidConfiguredApiKeyHashFailsTheApplicationStart() 0.001s passed
keepsTheStoredApiKeyIfADifferentApiKeyIsStored() 0.001s passed
keepsTheStoredApiKeyIfTheConfiguredHashIsAlreadyStored() 0.001s passed
provisionsTheApiKeySubjectIfNoApiKeyIsStoredYet() 0.003s passed

Standard output

2026-08-10T14:40:59.142Z  INFO 233 --- [    Test worker] n.h.h.c.ProvisioningApiKeyBootstrap      : provisioned the provisioning API-key subject 'hsadminng.provisioning.key' with the global ADMIN role
2026-08-10T14:40:59.145Z  INFO 233 --- [    Test worker] n.h.h.c.ProvisioningApiKeyBootstrap      : the provisioning API-key subject 'hsadminng.provisioning.key' is already provisioned
2026-08-10T14:40:59.148Z  WARN 233 --- [    Test worker] n.h.h.c.ProvisioningApiKeyBootstrap      : the configured provisioning API-key hash differs from the API-key stored for subject 'hsadminng.provisioning.key'; the stored API-key takes precedence and remains valid