Skip to content

Commit

Permalink
Migrated Docker based integration tests to TestContainers
Browse files Browse the repository at this point in the history
  • Loading branch information
ok2c committed Oct 15, 2024
1 parent cc69017 commit 666ca73
Show file tree
Hide file tree
Showing 32 changed files with 1,622 additions and 1,222 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ jobs:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Build with Maven
run: mvn -V --file pom.xml --no-transfer-progress -DtrimStackTrace=false -P-use-toolchains
run: mvn -V --file pom.xml --no-transfer-progress -DtrimStackTrace=false -P-use-toolchains,docker
16 changes: 0 additions & 16 deletions httpclient5-testing/docker/.dockerignore

This file was deleted.

45 changes: 0 additions & 45 deletions httpclient5-testing/docker/apache-httpd/Dockerfile

This file was deleted.

32 changes: 0 additions & 32 deletions httpclient5-testing/docker/docker-compose.yml

This file was deleted.

29 changes: 0 additions & 29 deletions httpclient5-testing/docker/squid/Dockerfile

This file was deleted.

35 changes: 35 additions & 0 deletions httpclient5-testing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,43 @@
<artifactId>rxjava</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>testcontainers</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<profiles>
<profile>
<id>docker</id>
<build>
<plugins>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${hc.surefire.version}</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
</build>
</profile>
</profiles>

<reporting>
<plugins>
<plugin>
Expand Down
Loading

0 comments on commit 666ca73

Please sign in to comment.