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:10 UTC

[incubator-heron] 09/10: [K8s] removed tests for Host Path.

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 d42740896af1761959fa5d3dc2a6c68b7b6ec501
Author: Saad Ur Rahman <sa...@apache.org>
AuthorDate: Sat Apr 30 12:05:31 2022 -0400

    [K8s] removed tests for Host Path.
---
 .../apache/heron/scheduler/kubernetes/VolumesTests.java    | 14 --------------
 1 file changed, 14 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 111ca35a97a..2609e70f177 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
@@ -34,18 +34,4 @@ public class VolumesTests {
     final V1Volume volume = Volumes.get().create(config);
     Assert.assertNull(volume);
   }
-
-  @Test
-  public void testHostPathVolume() {
-    final String path = "/test/dir1";
-    final Config config = Config.newBuilder()
-        .put(KubernetesContext.KUBERNETES_VOLUME_TYPE, "hostPath")
-        .put(KubernetesContext.KUBERNETES_VOLUME_HOSTPATH_PATH, path)
-        .build();
-
-    final V1Volume volume = Volumes.get().create(config);
-    Assert.assertNotNull(volume);
-    Assert.assertNotNull(volume.getHostPath());
-    Assert.assertEquals(volume.getHostPath().getPath(), path);
-  }
 }