From 15dbe4b3b551fa7c442f8316fd4c27c0b1f7e849 Mon Sep 17 00:00:00 2001 From: Rene Groeschke Date: Wed, 8 Oct 2025 13:53:07 +0200 Subject: [PATCH] [9.0][Build]Remove superflous ironbank docker test (#136170) This is related to https://github.com/elastic/elasticsearch/pull/135668 (cherry picked from commit 59775887db8bd2dfc60f447838294110f79c4624) --- .../packaging/test/DockerTests.java | 17 ----------------- 1 file changed, 17 deletions(-) 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 8cb8354eb5d71..f2b335dc726d3 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 @@ -1180,23 +1180,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 */