Skip to content

Commit

Permalink
remove module runner
Browse files Browse the repository at this point in the history
  • Loading branch information
cmendesce committed Feb 27, 2024
1 parent 67c1034 commit 2d637de
Show file tree
Hide file tree
Showing 26 changed files with 507 additions and 585 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Test with Maven
run: |
kubectl cluster-info --context kind-chart-testing
mvn -B compile --file ./resilience-bench/pom.xml
mvn -B compile --file ./resilience-bench/operator/pom.xml
find ./resilience-bench/operator/target/classes/META-INF/fabric8 -type f -name "*-v1.yml" | xargs -I {} kubectl apply -f {}
kubectl get crd
mvn -B test --file ./resilience-bench/pom.xml
mvn -B test --file ./resilience-bench/operator/pom.xml
7 changes: 4 additions & 3 deletions resilience-bench/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
test:
mvn clean compile
mvn clean compile -B operator/pom.xml
find ./operator/target/classes/META-INF/fabric8 -type f -name "*-v1.yml" | xargs -I {} kubectl apply -f {}
mvn test
mvn test -B operator/pom.xml

deploy:
find ./operator/target/classes/META-INF/fabric8 -type f -name "*-v1.yml" | xargs -I {} kubectl apply -f {}
Expand All @@ -10,4 +10,5 @@ deploy:
clean:
@kubectl delete scenario --all --all-namespaces
@kubectl delete job --all --all-namespaces
@kubectl delete queues --all --all-namespaces
@kubectl delete queues --all --all-namespaces
@kubectl delete benchmark --all --all-namespaces
3 changes: 3 additions & 0 deletions resilience-bench/operator/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions resilience-bench/operator/.idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions resilience-bench/operator/.idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions resilience-bench/operator/.idea/jpa-buddy.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions resilience-bench/operator/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions resilience-bench/operator/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

97 changes: 89 additions & 8 deletions resilience-bench/operator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,22 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>br.unifor.ppgia</groupId>
<artifactId>resilience-bench</artifactId>
<version>1.0.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>operator</artifactId>
<groupId>br.unifor.ppgia</groupId>
<artifactId>resilience-bench-operator</artifactId>
<version>1.0.0</version>

<properties>
<operator.version>4.8.0</operator.version>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version>
<maven-surefire-plugin.version>3.2.5</maven-surefire-plugin.version>
<jib-maven-plugin.version>3.4.0</jib-maven-plugin.version>
<fabric8-client.version>6.10.0</fabric8-client.version>
<junit.version>5.10.2</junit.version>
</properties>


<dependencyManagement>
<dependencies>
<dependency>
Expand All @@ -42,12 +44,24 @@
</exclusion>
</exclusions>
</dependency>
<!-- fabric8 -->
<dependency>
<groupId>io.fabric8</groupId>
<artifactId>istio-client</artifactId>
<version>${fabric8-client.version}</version>
</dependency>
<dependency>
<groupId>io.fabric8</groupId>
<artifactId>kubernetes-httpclient-vertx</artifactId>
<version>${fabric8-client.version}</version>
</dependency>
<dependency>
<groupId>io.fabric8</groupId>
<artifactId>crd-generator-apt</artifactId>
<version>${fabric8-client.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
Expand All @@ -65,6 +79,36 @@
<artifactId>operator-framework-junit-5</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.awaitility</groupId>
<artifactId>awaitility</artifactId>
<version>4.2.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>5.10.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>

</dependencies>

Expand All @@ -84,6 +128,43 @@
</to>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<configuration>
<excludes>
<exclude>**/*E2ETest.java</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.12.1</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.2.5</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
<configuration>
<includes>
<include>**/*E2ETest.java</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,6 @@ private void createOrUpdateScenario(Scenario scenario, CustomResourceRepository<
logger.debug("Scenario already exists: {}", scenario.getMetadata().getName());
}
}


}
Loading

0 comments on commit 2d637de

Please sign in to comment.