Add metrics for invalid unrestricted UAK

This commit is contained in:
Chris Eager authored and Chris Eager committed 2026-04-16 13:18:56 -05:00
1 parent 5e1338a571
commit 0281756c01
2 files changed
+25 -3

No files matched your search

@@ -48,6 +48,7 @@ import java.util.stream.Stream;
import org.glassfish.jersey.server.ServerProperties;
import org.glassfish.jersey.test.grizzly.GrizzlyWebTestContainerFactory;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Assumptions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
@@ -781,6 +782,9 @@ class AccountControllerTest {
@MethodSource
void testSetAccountAttributesUnrestrictedUnidentifiedAccess(final boolean unrestrictedUnidentifiedAccess, final byte[] unidentifiedAccessKey, final int expectedStatus) {
// This test is only valid when validations are enforced
Assumptions.assumeTrue(AccountAttributes.ENFORCE_VALID_UNRESTRICTED_UAK);
try (final Response response = resources.getJerseyTest()
.target("/v1/accounts/attributes/")
.request()