Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, String> labels = getImageLabels(distribution);

final Set<String> 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
*/
Expand Down