This is an automated email from the ASF dual-hosted git repository.

asf-gitbox-commits pushed a commit to branch graphql-ws-auth-review-followups
in repository https://gitbox.apache.org/repos/asf/unomi.git

commit 00952f6c020fabc00c2288d28dab53cc5b9318ac
Author: Serge Huber <[email protected]>
AuthorDate: Mon Sep 21 21:45:31 2026 +0200

    Grant the lowercase Basic-scheme unit test the role and system access it 
needs.
---
 .../unomi/graphql/servlet/auth/GraphQLServletSecurityValidatorTest.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/graphql/cxs-impl/src/test/java/org/apache/unomi/graphql/servlet/auth/GraphQLServletSecurityValidatorTest.java
 
b/graphql/cxs-impl/src/test/java/org/apache/unomi/graphql/servlet/auth/GraphQLServletSecurityValidatorTest.java
index 58c4b450b..a05d09193 100644
--- 
a/graphql/cxs-impl/src/test/java/org/apache/unomi/graphql/servlet/auth/GraphQLServletSecurityValidatorTest.java
+++ 
b/graphql/cxs-impl/src/test/java/org/apache/unomi/graphql/servlet/auth/GraphQLServletSecurityValidatorTest.java
@@ -243,6 +243,8 @@ class GraphQLServletSecurityValidatorTest {
     /** HTTP authentication scheme names are case-insensitive. */
     @Test
     void validateWebSocketUpgrade_withLowercaseScheme_isAccepted() throws 
IOException {
+        givenAdministratorRole();
+        when(securityService.hasSystemAccess()).thenReturn(true);
         
when(request.getHeader("Authorization")).thenReturn(BASIC_AUTH.replaceFirst("Basic",
 "basic"));
         when(tenantService.getTenantByApiKey(any(), 
eq(ApiKey.ApiKeyType.PRIVATE))).thenReturn(null);
 

Reply via email to