This is an automated email from the ASF dual-hosted git repository.
adoroszlai 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 8aacdc7e61 HDDS-3429. Remove
TestSecureOzoneRpcClient#testKeyOpFailureWithoutBlockToken (#5444)
8aacdc7e61 is described below
commit 8aacdc7e6154042901559ef5f1ee411ffb4f27b0
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Mon Oct 16 17:39:22 2023 +0200
HDDS-3429. Remove
TestSecureOzoneRpcClient#testKeyOpFailureWithoutBlockToken (#5444)
---
.../ozone/client/rpc/TestSecureOzoneRpcClient.java | 42 ----------------------
1 file changed, 42 deletions(-)
diff --git
a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/TestSecureOzoneRpcClient.java
b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/TestSecureOzoneRpcClient.java
index adb44f9320..e8aece20f4 100644
---
a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/TestSecureOzoneRpcClient.java
+++
b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/TestSecureOzoneRpcClient.java
@@ -64,7 +64,6 @@ import
org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.Status;
import
org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.VolumeInfo;
import org.apache.hadoop.security.UserGroupInformation;
import org.apache.ozone.test.GenericTestUtils;
-import org.apache.ozone.test.tag.Unhealthy;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
@@ -81,7 +80,6 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertNull;
-import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;
/**
@@ -241,46 +239,6 @@ public class TestSecureOzoneRpcClient extends
TestOzoneRpcClient {
.getToken())));
}
- /**
- * Tests failure in following operations when grpc block token is
- * not present.
- * 1. getKey
- * 2. writeChunk
- * */
- @Test
- @Unhealthy("Needs to be moved out of this class as client setup is static")
- public void testKeyOpFailureWithoutBlockToken() throws Exception {
- String volumeName = UUID.randomUUID().toString();
- String bucketName = UUID.randomUUID().toString();
- String value = "sample value";
- store.createVolume(volumeName);
- OzoneVolume volume = store.getVolume(volumeName);
- volume.createBucket(bucketName);
- OzoneBucket bucket = volume.getBucket(bucketName);
-
- for (int i = 0; i < 10; i++) {
- String keyName = UUID.randomUUID().toString();
-
- try (OzoneOutputStream out = bucket.createKey(keyName,
- value.getBytes(UTF_8).length, ReplicationType.RATIS,
- ReplicationFactor.ONE, new HashMap<>())) {
- IOException ioException = assertThrows(IOException.class,
- () -> out.write(value.getBytes(UTF_8)));
- assertTrue(ioException.getMessage()
- .contains("UNAUTHENTICATED: Fail to find any token "));
- }
-
- OzoneKey key = bucket.getKey(keyName);
- assertEquals(keyName, key.getName());
- IOException ioException = assertThrows(IOException.class,
- () -> bucket.readKey(keyName));
- assertTrue(ioException.getMessage()
- .contains("Failed to authenticate with GRPC XceiverServer with " +
- "Ozone block token."));
- }
- }
-
-
@Test
public void testS3Auth() throws Exception {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]