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

duong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new 0c707fe4c0 HDDS-9463. Speed up TestSecretKeysApi (#5448)
0c707fe4c0 is described below

commit 0c707fe4c04eed6bcdfa178717cd2c6ecabb1f6b
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Tue Oct 17 01:09:11 2023 +0200

    HDDS-9463. Speed up TestSecretKeysApi (#5448)
---
 .../test/java/org/apache/hadoop/ozone/scm/TestSecretKeysApi.java | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git 
a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/scm/TestSecretKeysApi.java
 
b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/scm/TestSecretKeysApi.java
index faefa388e3..0d73f43772 100644
--- 
a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/scm/TestSecretKeysApi.java
+++ 
b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/scm/TestSecretKeysApi.java
@@ -246,6 +246,8 @@ public final class TestSecretKeysApi {
     ManagedSecretKey nonExisting = secretKeyProtocol.getSecretKey(
         UUID.randomUUID());
     assertNull(nonExisting);
+
+    testSecretKeyAuthorization();
   }
 
   /**
@@ -301,12 +303,7 @@ public final class TestSecretKeysApi {
     }
   }
 
-  @Test
-  public void testSecretKeyAuthorization() throws Exception {
-    enableBlockToken();
-    conf.setBoolean(HADOOP_SECURITY_AUTHORIZATION, true);
-    startCluster(1);
-
+  private void testSecretKeyAuthorization() throws Exception {
     // When HADOOP_SECURITY_AUTHORIZATION is enabled, SecretKey protocol
     // is only available for Datanode and OM, any other authenticated user
     // can't access the protocol.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to