diff --git a/build-time-analytics/src/test/java/io/quarkus/ts/buildtimeanalytics/AbstractAnalyticsIT.java b/build-time-analytics/src/test/java/io/quarkus/ts/buildtimeanalytics/AbstractAnalyticsIT.java index e87f62c33..f245b8f5e 100644 --- a/build-time-analytics/src/test/java/io/quarkus/ts/buildtimeanalytics/AbstractAnalyticsIT.java +++ b/build-time-analytics/src/test/java/io/quarkus/ts/buildtimeanalytics/AbstractAnalyticsIT.java @@ -142,12 +142,17 @@ private void validateExtensions(QuarkusCliRestService app, JsonPath json) { .map(payloadExtension -> mapToGA(payloadExtension.getGroupId(), payloadExtension.getArtifactId())) .collect(Collectors.toList()); assertEquals(pomDependencyGAs, payloadExtensionGAs); - List extensionsWithMismatchedVersion = payloadExtensions.stream() - .filter(extension -> !QUARKUS_EXTENSION_VERSION_PATTERN.matcher(extension.getVersion()).matches()) - .collect(Collectors.toList()); - assertEquals(0, extensionsWithMismatchedVersion.size(), - String.format("All extensions versions must match pattern: '%s'. Offending extensions: %s", - QUARKUS_EXTENSION_VERSION_PATTERN.pattern(), extensionsWithMismatchedVersion)); + + // RHBQ doesn't guarantee the same version of the platform and core extensions + boolean isRHBQ = QuarkusProperties.getVersion().contains("redhat"); + if (!isRHBQ) { + List extensionsWithMismatchedVersion = payloadExtensions.stream() + .filter(extension -> !QUARKUS_EXTENSION_VERSION_PATTERN.matcher(extension.getVersion()).matches()) + .collect(Collectors.toList()); + assertEquals(0, extensionsWithMismatchedVersion.size(), + String.format("All extensions versions must match pattern: '%s'. Offending extensions: %s", + QUARKUS_EXTENSION_VERSION_PATTERN.pattern(), extensionsWithMismatchedVersion)); + } } private List getPomDependencies(QuarkusCliRestService app) {