Skip to content

Commit

Permalink
Enable Quarkus CLI tests for RHBQ only
Browse files Browse the repository at this point in the history
Quarkus stream 2.7 is not part of code.quarkus.io anymore, thus tests are failing.
  • Loading branch information
michalvavrik committed Jun 6, 2022
1 parent 8a00c7f commit ef76bcb
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import javax.inject.Inject;

import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledIfSystemProperty;
Expand All @@ -18,6 +19,7 @@
import io.quarkus.test.scenarios.QuarkusScenario;
import io.quarkus.test.scenarios.annotations.DisabledOnQuarkusSnapshot;
import io.quarkus.test.scenarios.annotations.DisabledOnQuarkusVersion;
import io.quarkus.test.scenarios.annotations.EnabledOnQuarkusVersion;
import io.quarkus.test.services.quarkus.model.QuarkusProperties;

/**
Expand All @@ -29,6 +31,7 @@
@QuarkusScenario
@DisabledOnQuarkusVersion(version = "1\\..*", reason = "Quarkus CLI has been reworked in 2.x")
@DisabledIfSystemProperty(named = "profile.id", matches = "native", disabledReason = "Only for JVM verification")
@EnabledOnQuarkusVersion(version = ".*redhat.*", reason = "There is no stream 2.7 in code.quarkus.io anymore")
public class QuarkusCliExtensionsIT {

static final String AGROAL_EXTENSION_NAME = "Agroal - Database connection pool";
Expand All @@ -40,6 +43,11 @@ public class QuarkusCliExtensionsIT {
@Inject
static QuarkusCliClient cliClient;

@BeforeAll
static void useRHBQRegistry() {
cliClient.run("registry", "add", "registry.quarkus.redhat.com");
}

private QuarkusCliClient.Result result;

@Test
Expand Down

0 comments on commit ef76bcb

Please sign in to comment.