Skip to content

Commit

Permalink
Add method to escape secret chars for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jcarranzan committed Aug 21, 2024
1 parent f5534b8 commit 2ab075a
Show file tree
Hide file tree
Showing 54 changed files with 344 additions and 54 deletions.
2 changes: 1 addition & 1 deletion .github/badges/branches.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion .github/badges/jacoco.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions .github/project.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Quarkus QE Test Framework
release:
current-version: 1.5.0.Beta12
next-version: 1.5.0.Beta13
current-version: 1.5.0.Beta13
next-version: 1.5.0.Beta14
2 changes: 1 addition & 1 deletion examples/amq-amqp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkus.qe</groupId>
<artifactId>quarkus-examples-parent</artifactId>
<version>1.5.0.Beta13-SNAPSHOT</version>
<version>1.5.0.Beta14-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<artifactId>examples-amq-amqp</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions examples/amq-tcp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkus.qe</groupId>
<artifactId>quarkus-examples-parent</artifactId>
<version>1.5.0.Beta13-SNAPSHOT</version>
<version>1.5.0.Beta14-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<artifactId>examples-amq-tcp</artifactId>
Expand All @@ -13,7 +13,7 @@
<dependency>
<groupId>io.quarkiverse.artemis</groupId>
<artifactId>quarkus-artemis-jms</artifactId>
<version>3.4.0</version>
<version>3.4.1</version>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
Expand Down
2 changes: 1 addition & 1 deletion examples/blocking-reactive-model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkus.qe</groupId>
<artifactId>quarkus-examples-parent</artifactId>
<version>1.5.0.Beta13-SNAPSHOT</version>
<version>1.5.0.Beta14-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<artifactId>examples-blocking-reactive</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/consul/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkus.qe</groupId>
<artifactId>quarkus-examples-parent</artifactId>
<version>1.5.0.Beta13-SNAPSHOT</version>
<version>1.5.0.Beta14-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<artifactId>examples-consul</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/database-mysql/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkus.qe</groupId>
<artifactId>quarkus-examples-parent</artifactId>
<version>1.5.0.Beta13-SNAPSHOT</version>
<version>1.5.0.Beta14-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<artifactId>examples-database-mysql</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/database-oracle/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkus.qe</groupId>
<artifactId>quarkus-examples-parent</artifactId>
<version>1.5.0.Beta13-SNAPSHOT</version>
<version>1.5.0.Beta14-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<artifactId>examples-database-oracle</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/database-postgresql/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkus.qe</groupId>
<artifactId>quarkus-examples-parent</artifactId>
<version>1.5.0.Beta13-SNAPSHOT</version>
<version>1.5.0.Beta14-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<artifactId>examples-database-postgresql</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/debug/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkus.qe</groupId>
<artifactId>quarkus-examples-parent</artifactId>
<version>1.5.0.Beta13-SNAPSHOT</version>
<version>1.5.0.Beta14-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<artifactId>examples-debug</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/external-applications/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkus.qe</groupId>
<artifactId>quarkus-examples-parent</artifactId>
<version>1.5.0.Beta13-SNAPSHOT</version>
<version>1.5.0.Beta14-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<artifactId>examples-external-applications</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/funqy-knative-events/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkus.qe</groupId>
<artifactId>quarkus-examples-parent</artifactId>
<version>1.5.0.Beta13-SNAPSHOT</version>
<version>1.5.0.Beta14-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<artifactId>examples-funqy-knative-events</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/greetings/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkus.qe</groupId>
<artifactId>quarkus-examples-parent</artifactId>
<version>1.5.0.Beta13-SNAPSHOT</version>
<version>1.5.0.Beta14-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<artifactId>examples-greetings</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/grpc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkus.qe</groupId>
<artifactId>quarkus-examples-parent</artifactId>
<version>1.5.0.Beta13-SNAPSHOT</version>
<version>1.5.0.Beta14-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<artifactId>examples-grpc</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/https/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkus.qe</groupId>
<artifactId>quarkus-examples-parent</artifactId>
<version>1.5.0.Beta13-SNAPSHOT</version>
<version>1.5.0.Beta14-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<artifactId>examples-https</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/infinispan/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkus.qe</groupId>
<artifactId>quarkus-examples-parent</artifactId>
<version>1.5.0.Beta13-SNAPSHOT</version>
<version>1.5.0.Beta14-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<artifactId>examples-infinispan</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/jaeger/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkus.qe</groupId>
<artifactId>quarkus-examples-parent</artifactId>
<version>1.5.0.Beta13-SNAPSHOT</version>
<version>1.5.0.Beta14-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<artifactId>examples-jaeger</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/kafka-registry/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkus.qe</groupId>
<artifactId>quarkus-examples-parent</artifactId>
<version>1.5.0.Beta13-SNAPSHOT</version>
<version>1.5.0.Beta14-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<artifactId>examples-kafka-registry</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/kafka-streams/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkus.qe</groupId>
<artifactId>quarkus-examples-parent</artifactId>
<version>1.5.0.Beta13-SNAPSHOT</version>
<version>1.5.0.Beta14-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<artifactId>examples-Kafka-streams</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/kafka/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkus.qe</groupId>
<artifactId>quarkus-examples-parent</artifactId>
<version>1.5.0.Beta13-SNAPSHOT</version>
<version>1.5.0.Beta14-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<artifactId>examples-kafka</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/keycloak/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkus.qe</groupId>
<artifactId>quarkus-examples-parent</artifactId>
<version>1.5.0.Beta13-SNAPSHOT</version>
<version>1.5.0.Beta14-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<artifactId>examples-keycloak</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/management/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkus.qe</groupId>
<artifactId>quarkus-examples-parent</artifactId>
<version>1.5.0.Beta13-SNAPSHOT</version>
<version>1.5.0.Beta14-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<artifactId>examples-management</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/microprofile/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkus.qe</groupId>
<artifactId>quarkus-examples-parent</artifactId>
<version>1.5.0.Beta13-SNAPSHOT</version>
<version>1.5.0.Beta14-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<artifactId>examples-microprofile</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/picocli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkus.qe</groupId>
<artifactId>quarkus-examples-parent</artifactId>
<version>1.5.0.Beta13-SNAPSHOT</version>
<version>1.5.0.Beta14-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<artifactId>examples-picocli</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/pingpong/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkus.qe</groupId>
<artifactId>quarkus-examples-parent</artifactId>
<version>1.5.0.Beta13-SNAPSHOT</version>
<version>1.5.0.Beta14-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<artifactId>examples-pingpong</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkus.qe</groupId>
<artifactId>quarkus-test-parent</artifactId>
<version>1.5.0.Beta13-SNAPSHOT</version>
<version>1.5.0.Beta14-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<artifactId>quarkus-examples-parent</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/quarkus-cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkus.qe</groupId>
<artifactId>quarkus-examples-parent</artifactId>
<version>1.5.0.Beta13-SNAPSHOT</version>
<version>1.5.0.Beta14-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<artifactId>examples-quarkus-cli</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
package io.quarkus.qe;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import jakarta.inject.Inject;

import org.apache.maven.artifact.versioning.DefaultArtifactVersion;
import org.apache.maven.model.Dependency;
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;
import io.quarkus.test.scenarios.QuarkusScenario;
import io.quarkus.test.util.DefaultQuarkusCLIAppManager;
import io.quarkus.test.util.IQuarkusCLIAppManager;
import io.quarkus.test.util.QuarkusCLIUtils;

/**
* Example how {@link QuarkusCLIUtils#checkDependenciesUpdate} and {@link IQuarkusCLIAppManager} can be used.
* This class actually creates a quarkus app on stream 3.2, updates it to 3.8 and does an example test.
*/
@Tag("quarkus-cli")
@QuarkusScenario
public class QuarkusCliUtilsExampleIT {
private static final DefaultArtifactVersion oldVersion = new DefaultArtifactVersion("3.2");
private static final DefaultArtifactVersion newVersion = new DefaultArtifactVersion("3.8");
private final IQuarkusCLIAppManager appManager;
@Inject
static QuarkusCliClient cliClient;

public QuarkusCliUtilsExampleIT() {
this.appManager = new DefaultQuarkusCLIAppManager(cliClient, oldVersion, newVersion);
}

@Test
public void exampleDependencyUpdateTest() throws XmlPullParserException, IOException {
List<Dependency> oldDependencies = new ArrayList<>();
oldDependencies.add(new QuarkusCLIUtils.QuarkusDependency("io.quarkus:quarkus-rest-client"));

List<Dependency> newDependencies = new ArrayList<>();
newDependencies.add(new QuarkusCLIUtils.QuarkusDependency("io.quarkus:quarkus-resteasy-client"));

QuarkusCLIUtils.checkDependenciesUpdate(appManager, oldDependencies, newDependencies);
}
}
2 changes: 1 addition & 1 deletion examples/restclient/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkus.qe</groupId>
<artifactId>quarkus-examples-parent</artifactId>
<version>1.5.0.Beta13-SNAPSHOT</version>
<version>1.5.0.Beta14-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<artifactId>examples-restclient</artifactId>
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.quarkus.qe</groupId>
<artifactId>quarkus-test-parent</artifactId>
<version>1.5.0.Beta13-SNAPSHOT</version>
<version>1.5.0.Beta14-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Quarkus - Test Framework - Parent</name>
<description>Quarkus QE Test Framework is a library enabling the developers to easily deploy multiple Quarkus applications across different platforms in a single test.</description>
Expand Down Expand Up @@ -45,7 +45,7 @@
<impsort-maven-plugin.version>1.11.0</impsort-maven-plugin.version>
<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
<quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
<quarkus.platform.version>3.13.0</quarkus.platform.version>
<quarkus.platform.version>3.13.2</quarkus.platform.version>
<exclude.tests.with.tags>quarkus-cli</exclude.tests.with.tags>
<include.tests>**/*IT.java</include.tests>
<exclude.openshift.tests>**/OpenShift*IT.java</exclude.openshift.tests>
Expand Down Expand Up @@ -587,7 +587,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.4</version>
<version>3.2.5</version>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
Expand Down
2 changes: 1 addition & 1 deletion quarkus-test-cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkus.qe</groupId>
<artifactId>quarkus-test-parent</artifactId>
<version>1.5.0.Beta13-SNAPSHOT</version>
<version>1.5.0.Beta14-SNAPSHOT</version>
</parent>
<artifactId>quarkus-test-cli</artifactId>
<name>Quarkus - Test Framework - CLI</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public class QuarkusCliClient {
public static final String COMMAND_LOG_FILE = "quarkus-cli-command.out";
public static final String DEV_MODE_LOG_FILE = "quarkus-cli-dev.out";

private static final String QUARKUS_VERSION_PROPERTY_NAME = "quarkus.version";
private static final String QUARKUS_UPSTREAM_VERSION = "999-SNAPSHOT";
private static final String BUILD = "build";
private static final PropertyLookup COMMAND = new PropertyLookup("ts.quarkus.cli.cmd", "quarkus");
Expand All @@ -52,6 +53,9 @@ public Result run(String... args) {
public Result buildApplicationOnJvm(Path serviceFolder, String... extraArgs) {
List<String> args = new ArrayList<>();
args.add(BUILD);
if (isUpstream()) {
args.add("-D" + QUARKUS_VERSION_PROPERTY_NAME + "=" + QuarkusProperties.getVersion());
}
args.addAll(Arrays.asList(extraArgs));
return runCliAndWait(serviceFolder, args.toArray(new String[args.size()]));
}
Expand All @@ -60,6 +64,9 @@ public Result buildApplicationOnNative(Path serviceFolder, String... extraArgs)
List<String> args = new ArrayList<>();
args.add(BUILD);
args.add("--native");
if (isUpstream()) {
args.add("-D" + QUARKUS_VERSION_PROPERTY_NAME + "=" + QuarkusProperties.getVersion());
}
args.addAll(Arrays.asList(extraArgs));
return runCliAndWait(serviceFolder, args.toArray(new String[args.size()]));
}
Expand Down
Loading

0 comments on commit 2ab075a

Please sign in to comment.