Skip to content

Commit

Permalink
Add quarkus-cli tag to update test and expect redhat version only wit…
Browse files Browse the repository at this point in the history
…h RHBQ (#1969)
  • Loading branch information
mocenas committed Sep 3, 2024
1 parent f8e76c8 commit 30af9f9
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import org.apache.http.HttpStatus;
import org.apache.maven.artifact.versioning.DefaultArtifactVersion;
import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;

import io.quarkus.test.bootstrap.QuarkusCliClient;
Expand All @@ -27,6 +28,7 @@

@QuarkusScenario
@DisabledOnNative // Only for JVM verification
@Tag("quarkus-cli")
public abstract class AbstractQuarkusCliUpdateIT {
@Inject
static QuarkusCliClient cliClient;
Expand Down Expand Up @@ -68,9 +70,11 @@ public void versionUpdateTest() throws IOException, XmlPullParserException {
"Major version for app updated to " + newVersionStream + "should be " + newVersionStream.getMajorVersion());
assertEquals(newVersionStream.getMinorVersion(), updatedVersion.getMinorVersion(),
"Minor version for app updated to " + newVersionStream + " should be " + newVersionStream.getMinorVersion());
// check that updated app is using RHBQ
assertTrue(updatedVersion.toString().contains("redhat"),
"Updated app is not using \"redhat\" version. Found version: " + updatedVersion);
// check that updated app is using RHBQ, if we're testing with RHBQ
if (QuarkusProperties.getVersion().contains("redhat")) {
assertTrue(updatedVersion.toString().contains("redhat"),
"Updated app is not using \"redhat\" version. Found version: " + updatedVersion);
}

Log.info("Starting updated app");
// start the updated app and verify that basic /hello endpoint works
Expand Down

0 comments on commit 30af9f9

Please sign in to comment.