You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by sa...@apache.org on 2022/05/01 00:13:07 UTC
[incubator-heron] 06/10: [K8s] removed tests for NFS.
This is an automated email from the ASF dual-hosted git repository.
saadurrahman pushed a commit to branch 3821-Remove-Deprecated-Volumes-K8s-dev
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git
commit 4f7f72cf14d5df9880983d37316434faa824cea2
Author: Saad Ur Rahman <sa...@apache.org>
AuthorDate: Sat Apr 30 11:52:17 2022 -0400
[K8s] removed tests for NFS.
---
.../apache/heron/scheduler/kubernetes/VolumesTests.java | 17 -----------------
1 file changed, 17 deletions(-)
diff --git a/heron/schedulers/tests/java/org/apache/heron/scheduler/kubernetes/VolumesTests.java b/heron/schedulers/tests/java/org/apache/heron/scheduler/kubernetes/VolumesTests.java
index b6c2323dc6f..111ca35a97a 100644
--- a/heron/schedulers/tests/java/org/apache/heron/scheduler/kubernetes/VolumesTests.java
+++ b/heron/schedulers/tests/java/org/apache/heron/scheduler/kubernetes/VolumesTests.java
@@ -48,21 +48,4 @@ public class VolumesTests {
Assert.assertNotNull(volume.getHostPath());
Assert.assertEquals(volume.getHostPath().getPath(), path);
}
-
- @Test
- public void testNfsVolume() {
- final String path = "/test/dir1";
- final String server = "10.10.10.10";
- final Config config = Config.newBuilder()
- .put(KubernetesContext.KUBERNETES_VOLUME_TYPE, "nfs")
- .put(KubernetesContext.KUBERNETES_VOLUME_NFS_PATH, path)
- .put(KubernetesContext.KUBERNETES_VOLUME_NFS_SERVER, server)
- .build();
-
- final V1Volume volume = Volumes.get().create(config);
- Assert.assertNotNull(volume);
- Assert.assertNotNull(volume.getNfs());
- Assert.assertEquals(volume.getNfs().getPath(), path);
- Assert.assertEquals(volume.getNfs().getServer(), server);
- }
}