Skip to content

Commit

Permalink
Merge pull request #25728 from ia3andy/clean-compat-test
Browse files Browse the repository at this point in the history
Remove RegistrySnapshotCatalogCompatibilityTest
  • Loading branch information
geoand authored May 24, 2022
2 parents 56a7b4d + 1b8d075 commit 4e7e668
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,16 @@
import java.io.IOException;
import java.util.List;

import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

import io.quarkus.devtools.codestarts.quarkus.QuarkusCodestartCatalog;
import io.quarkus.devtools.project.CodestartResourceLoadersBuilder;
import io.quarkus.devtools.project.QuarkusProjectHelper;
import io.quarkus.devtools.testing.PlatformAwareTestBase;
import io.quarkus.platform.catalog.processor.CatalogProcessor;
import io.quarkus.platform.catalog.processor.ExtensionProcessor;
import io.quarkus.platform.catalog.processor.ProcessedCategory;
import io.quarkus.platform.descriptor.loader.json.ResourceLoader;
import io.quarkus.registry.Constants;
import io.quarkus.registry.ExtensionCatalogResolver;
import io.quarkus.registry.RegistryResolutionException;
import io.quarkus.registry.catalog.Extension;
Expand All @@ -25,20 +24,13 @@
import io.quarkus.registry.catalog.PlatformRelease;
import io.quarkus.registry.catalog.PlatformStream;

@Disabled
public class RegistrySnapshotCatalogCompatibilityTest {

private final ExtensionCatalogResolver catalogResolver = QuarkusProjectHelper.getCatalogResolver();

public RegistrySnapshotCatalogCompatibilityTest() throws RegistryResolutionException {
}
public class CatalogCompatibilityTest extends PlatformAwareTestBase {

@Test
public void testRegistrySnapshotPlatformCatalog() throws RegistryResolutionException, IOException {
// TODO Use a local snapshot of the registry for testing
final PlatformCatalog platformCatalog = getRegistryPlatformCatalog();
assertThat(platformCatalog.getMetadata().get(Constants.LAST_UPDATED)).isNotNull();
testPlatformCatalog(catalogResolver, platformCatalog, "io.quarkus.platform");
void testCatalog() throws RegistryResolutionException, IOException {
final ExtensionCatalogResolver catalogResolver = QuarkusProjectHelper.getCatalogResolver();
testPlatformCatalog(catalogResolver, catalogResolver.resolvePlatformCatalog(),
"io.quarkus");
}

static void testPlatformCatalog(ExtensionCatalogResolver catalogResolver, PlatformCatalog platformCatalog,
Expand All @@ -55,7 +47,6 @@ static void testPlatformCatalog(ExtensionCatalogResolver catalogResolver, Platfo
for (PlatformRelease r : s.getReleases()) {
checkPlatformRelease(catalogResolver, r);
}

}
}

Expand Down Expand Up @@ -102,7 +93,4 @@ private static void checkExtensionProcessor(Extension e) {
extensionProcessor.getNonQuarkusBomOnly();
}

private PlatformCatalog getRegistryPlatformCatalog() throws RegistryResolutionException {
return catalogResolver.resolvePlatformCatalog();
}
}

This file was deleted.

0 comments on commit 4e7e668

Please sign in to comment.