From 28782c5c9931d1b42723bf18d71ff8de2f818d39 Mon Sep 17 00:00:00 2001 From: Alexandre Dutra Date: Tue, 11 Jun 2024 18:34:12 +0200 Subject: [PATCH] Catalog tests: disable token refresh (#8786) --- .../server/catalog/auth/ITBearerTokenIcebergCatalogS3.java | 1 + .../server/catalog/auth/ITBearerTokenIcebergCatalogS3N.java | 1 + .../server/catalog/auth/ITOAuthIcebergCatalogS3.java | 1 + .../server/catalog/auth/ITOAuthIcebergCatalogS3N.java | 1 + 4 files changed, 4 insertions(+) diff --git a/servers/quarkus-server/src/intTest/java/org/projectnessie/server/catalog/auth/ITBearerTokenIcebergCatalogS3.java b/servers/quarkus-server/src/intTest/java/org/projectnessie/server/catalog/auth/ITBearerTokenIcebergCatalogS3.java index 862db5c62b9..9711941474d 100644 --- a/servers/quarkus-server/src/intTest/java/org/projectnessie/server/catalog/auth/ITBearerTokenIcebergCatalogS3.java +++ b/servers/quarkus-server/src/intTest/java/org/projectnessie/server/catalog/auth/ITBearerTokenIcebergCatalogS3.java @@ -46,6 +46,7 @@ protected Map catalogOptions() { Map options = new HashMap<>(); options.put(OAuth2Properties.SCOPE, "email"); options.put(OAuth2Properties.TOKEN, accessToken.getPayload()); + options.put(OAuth2Properties.TOKEN_REFRESH_ENABLED, "false"); return options; } diff --git a/servers/quarkus-server/src/intTest/java/org/projectnessie/server/catalog/auth/ITBearerTokenIcebergCatalogS3N.java b/servers/quarkus-server/src/intTest/java/org/projectnessie/server/catalog/auth/ITBearerTokenIcebergCatalogS3N.java index 43a62b63673..86f9b32fc96 100644 --- a/servers/quarkus-server/src/intTest/java/org/projectnessie/server/catalog/auth/ITBearerTokenIcebergCatalogS3N.java +++ b/servers/quarkus-server/src/intTest/java/org/projectnessie/server/catalog/auth/ITBearerTokenIcebergCatalogS3N.java @@ -46,6 +46,7 @@ protected Map catalogOptions() { Map options = new HashMap<>(); options.put(OAuth2Properties.SCOPE, "email"); options.put(OAuth2Properties.TOKEN, accessToken.getPayload()); + options.put(OAuth2Properties.TOKEN_REFRESH_ENABLED, "false"); return options; } diff --git a/servers/quarkus-server/src/intTest/java/org/projectnessie/server/catalog/auth/ITOAuthIcebergCatalogS3.java b/servers/quarkus-server/src/intTest/java/org/projectnessie/server/catalog/auth/ITOAuthIcebergCatalogS3.java index 1b80f4ccc9b..e9b3fd8a8f3 100644 --- a/servers/quarkus-server/src/intTest/java/org/projectnessie/server/catalog/auth/ITOAuthIcebergCatalogS3.java +++ b/servers/quarkus-server/src/intTest/java/org/projectnessie/server/catalog/auth/ITOAuthIcebergCatalogS3.java @@ -31,6 +31,7 @@ protected Map catalogOptions() { options.put(OAuth2Properties.SCOPE, "email"); options.put(OAuth2Properties.OAUTH2_SERVER_URI, tokenEndpoint.toString()); options.put(OAuth2Properties.CREDENTIAL, clientId + ":" + clientSecret); + options.put(OAuth2Properties.TOKEN_REFRESH_ENABLED, "false"); return options; } diff --git a/servers/quarkus-server/src/intTest/java/org/projectnessie/server/catalog/auth/ITOAuthIcebergCatalogS3N.java b/servers/quarkus-server/src/intTest/java/org/projectnessie/server/catalog/auth/ITOAuthIcebergCatalogS3N.java index bcc99536f2f..3cb337079a1 100644 --- a/servers/quarkus-server/src/intTest/java/org/projectnessie/server/catalog/auth/ITOAuthIcebergCatalogS3N.java +++ b/servers/quarkus-server/src/intTest/java/org/projectnessie/server/catalog/auth/ITOAuthIcebergCatalogS3N.java @@ -31,6 +31,7 @@ protected Map catalogOptions() { options.put(OAuth2Properties.SCOPE, "email"); options.put(OAuth2Properties.OAUTH2_SERVER_URI, tokenEndpoint.toString()); options.put(OAuth2Properties.CREDENTIAL, clientId + ":" + clientSecret); + options.put(OAuth2Properties.TOKEN_REFRESH_ENABLED, "false"); return options; }