This is an automated email from the ASF dual-hosted git repository. saadurrahman pushed a commit to branch saadurrahman/3821-Remove-Deprecated-Volumes-K8s-dev in repository https://gitbox.apache.org/repos/asf/incubator-heron.git
commit 25c7c257a174e48564784522be9c712d82ec627e Author: Saad Ur Rahman <[email protected]> AuthorDate: Sat Apr 30 11:48:45 2022 -0400 [K8s] removed tests for EBS. --- .../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 401c97f9f64..b6c2323dc6f 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 @@ -65,21 +65,4 @@ public class VolumesTests { Assert.assertEquals(volume.getNfs().getPath(), path); Assert.assertEquals(volume.getNfs().getServer(), server); } - - @Test - public void testAwsEbsVolume() { - final String volumeId = "aws-ebs-1"; - final String fsType = "ext4"; - final Config config = Config.newBuilder() - .put(KubernetesContext.KUBERNETES_VOLUME_TYPE, "awsElasticBlockStore") - .put(KubernetesContext.KUBERNETES_VOLUME_AWS_EBS_VOLUME_ID, volumeId) - .put(KubernetesContext.KUBERNETES_VOLUME_AWS_EBS_FS_TYPE, fsType) - .build(); - - final V1Volume volume = Volumes.get().create(config); - Assert.assertNotNull(volume); - Assert.assertNotNull(volume.getAwsElasticBlockStore()); - Assert.assertEquals(volume.getAwsElasticBlockStore().getVolumeID(), volumeId); - Assert.assertEquals(volume.getAwsElasticBlockStore().getFsType(), fsType); - } }
