Skip to content

Commit

Permalink
chore: move e2e tests to integration-test module
Browse files Browse the repository at this point in the history
  • Loading branch information
jeqo committed Nov 28, 2024
1 parent acccbb0 commit 40cb2de
Show file tree
Hide file tree
Showing 15 changed files with 20 additions and 20 deletions.
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,32 +31,32 @@ checkstyle:
build: build/distributions/tiered-storage-for-apache-kafka-$(VERSION).tgz storage/s3/build/distributions/s3-$(VERSION).tgz storage/gcs/build/distributions/gcs-$(VERSION).tgz storage/azure/build/distributions/azure-$(VERSION).tgz

build/distributions/tiered-storage-for-apache-kafka-$(VERSION).tgz:
./gradlew build distTar -x test -x integrationTest -x e2e:test
./gradlew build distTar -x test -x integrationTest

storage/s3/build/distributions/s3-$(VERSION).tgz:
./gradlew build :storage:s3:distTar -x test -x integrationTest -x e2e:test
./gradlew build :storage:s3:distTar -x test -x integrationTest

storage/gcs/build/distributions/gcs-$(VERSION).tgz:
./gradlew build :storage:gcs:distTar -x test -x integrationTest -x e2e:test
./gradlew build :storage:gcs:distTar -x test -x integrationTest

storage/azure/build/distributions/azure-$(VERSION).tgz:
./gradlew build :storage:azure:distTar -x test -x integrationTest -x e2e:test
./gradlew build :storage:azure:distTar -x test -x integrationTest

.PHONY: docs
docs:
./gradlew :docs:genConfigsDocs
./gradlew :docs:genMetricsDocs

test: build
./gradlew test -x e2e:test
./gradlew test

integration_test: build
./gradlew integrationTest
./gradlew integrationTest -x :e2e:integrationTest

E2E_TEST=LocalSystem

e2e_test: build
./gradlew e2e:test --tests $(E2E_TEST)*
./gradlew :e2e:integrationTest --tests $(E2E_TEST)*

.PHONY: docker_image
docker_image: build
Expand Down
26 changes: 13 additions & 13 deletions e2e/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,26 @@
*/

dependencies {
testImplementation "org.apache.kafka:kafka-clients:$kafkaVersion"
testImplementation "org.apache.kafka:kafka-server-common:$kafkaVersion"
testImplementation "org.apache.kafka:kafka-storage:$kafkaVersion"
testImplementation "org.apache.kafka:kafka-storage-api:$kafkaVersion"
integrationTestImplementation "org.apache.kafka:kafka-clients:$kafkaVersion"
integrationTestImplementation "org.apache.kafka:kafka-server-common:$kafkaVersion"
integrationTestImplementation "org.apache.kafka:kafka-storage:$kafkaVersion"
integrationTestImplementation "org.apache.kafka:kafka-storage-api:$kafkaVersion"

testImplementation "commons-io:commons-io:$apacheCommonsIOVersion"
testImplementation("software.amazon.awssdk:s3:$awsSdkVersion") {
integrationTestImplementation "commons-io:commons-io:$apacheCommonsIOVersion"
integrationTestImplementation("software.amazon.awssdk:s3:$awsSdkVersion") {
exclude group: "org.slf4j"
}
implementation "com.google.cloud:google-cloud-storage:$gcpSdkVersion"
integrationTestImplementation "com.google.cloud:google-cloud-storage:$gcpSdkVersion"

testImplementation "org.testcontainers:junit-jupiter:$testcontainersVersion"
testImplementation "org.testcontainers:kafka:$testcontainersVersion"
integrationTestImplementation "org.testcontainers:junit-jupiter:$testcontainersVersion"
integrationTestImplementation "org.testcontainers:kafka:$testcontainersVersion"

testImplementation "io.aiven:testcontainers-fake-gcs-server:$testcontainersFakeGcsServerVersion"
integrationTestImplementation "io.aiven:testcontainers-fake-gcs-server:$testcontainersFakeGcsServerVersion"

testImplementation platform("com.azure:azure-sdk-bom:$azureSdkVersion")
testImplementation "com.azure:azure-storage-blob"
integrationTestImplementation platform("com.azure:azure-sdk-bom:$azureSdkVersion")
integrationTestImplementation "com.azure:azure-storage-blob"

testRuntimeOnly "org.slf4j:slf4j-log4j12:$slf4jVersion"
integrationTestRuntimeOnly "org.slf4j:slf4j-log4j12:$slf4jVersion"
}

tasks.named('test') {
Expand Down
File renamed without changes.

0 comments on commit 40cb2de

Please sign in to comment.