diff --git a/qa/packaging/src/test/java/org/elasticsearch/packaging/test/DockerTests.java b/qa/packaging/src/test/java/org/elasticsearch/packaging/test/DockerTests.java index 3ad4c247a8b9b..04c248c95d49d 100644 --- a/qa/packaging/src/test/java/org/elasticsearch/packaging/test/DockerTests.java +++ b/qa/packaging/src/test/java/org/elasticsearch/packaging/test/DockerTests.java @@ -1178,23 +1178,6 @@ public void test300IronBankImagesHaveLicenseDirectory() { assertThat(ubiLicense, equalTo(distroLicense)); } - /** - * Check that the Iron Bank image doesn't define extra labels - */ - public void test310IronBankImageHasNoAdditionalLabels() throws Exception { - assumeTrue(distribution.packaging == Packaging.DOCKER_IRON_BANK); - - final Map labels = getImageLabels(distribution); - - final Set labelKeys = labels.keySet(); - - // We can't just assert that the labels map is empty, because it can inherit labels from its base. - // This is certainly the case when we build the Iron Bank image using a UBI base. It is unknown - // if that is true for genuine Iron Bank builds. - assertFalse(labelKeys.stream().anyMatch(l -> l.startsWith("org.label-schema."))); - assertFalse(labelKeys.stream().anyMatch(l -> l.startsWith("org.opencontainers."))); - } - /** * Check that the Cloud image contains the required Beats */