ProvisioningApiKeyBootstrapUnitTest

5

tests

0

failures

0

ignored

0.005s

duration

100%

successful

Tests

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

Standard output

2026-08-10T13:31:31.339Z  INFO 234 --- [    Test worker] n.h.h.c.ProvisioningApiKeyBootstrap      : provisioned the provisioning API-key subject 'hsadminng.provisioning.key' with the global ADMIN role
2026-08-10T13:31:31.341Z  INFO 234 --- [    Test worker] n.h.h.c.ProvisioningApiKeyBootstrap      : the provisioning API-key subject 'hsadminng.provisioning.key' is already provisioned
2026-08-10T13:31:31.343Z  WARN 234 --- [    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