diff --git a/.gitignore b/.gitignore index fcb6807..1aab28c 100644 --- a/.gitignore +++ b/.gitignore @@ -32,4 +32,7 @@ build/ .DS_Store ### Others ### -**.*kubeconfig \ No newline at end of file +**.*kubeconfig + +### Operator install files ### +operator-install-files/ \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..15a4fc0 --- /dev/null +++ b/README.md @@ -0,0 +1,40 @@ +# STREAMS-E2E + +Test suite for verify interoperability of streams components like kafka, flink, etc... managed by operators on kubernetes. + +## Use latest released upstream operators install files +Run maven with profile `get-operator-files` to download all operators install files which will be used in test suite. + +```bash +$ ./mvnw install -P get-operator-files +``` +All operator install files are download into `operator-install-files` folder + +## Use operators from operator catalog +TODO + +## Use own install files +TDOD + +## Use own operator metadata bundle-container +TODO + +## Run tests +Run all tests. +```bash +$ ./mvnw verify +``` + +Run specific tag. +```bash +$ ./mvnw verify -Dgroups=smoke +``` + +Run specific test class or test +```bash +$ ./mvnw verify -Dit.tests=io.streams.e2e.dummy.DummyST +$ ./mvnw verify -Dit.tests=io.streams.e2e.dummy.DummyST#dummyTest +``` + +## Test configuration +TODO diff --git a/pom.xml b/pom.xml index 00009f6..3cb5a4a 100644 --- a/pom.xml +++ b/pom.xml @@ -31,14 +31,15 @@ 5.10.3 1.10.3 - 3.3.0 - 3.13.0 - 3.3.0 + 3.3.1 4.8.6 4.8.6.2 3.4.0 + 3.13.0 + 3.7.0 + 1.9.0 @@ -264,4 +265,49 @@ + + + get-operator-files + + false + + + + + com.googlecode.maven-download-plugin + download-maven-plugin + ${maven.download.plugin.version} + + + get-strimzi + generate-sources + + wget + + + https://github.com/strimzi/strimzi-kafka-operator/releases/download/0.42.0/strimzi-0.42.0.tar.gz + ${basedir}/operator-install-files/ + strimzi.tar.gz + true + + + ^strimzi-\d+.\d+.\d+ + strimzi-kafka-operator + + + + + + + true + false + true + 2 + + + + + + + diff --git a/src/test/java/io/streams/e2e/Abstract.java b/src/test/java/io/streams/e2e/Abstract.java index b24ba18..95c5686 100644 --- a/src/test/java/io/streams/e2e/Abstract.java +++ b/src/test/java/io/streams/e2e/Abstract.java @@ -2,9 +2,12 @@ import io.skodjob.testframe.annotations.ResourceManager; import io.skodjob.testframe.annotations.TestVisualSeparator; +import io.skodjob.testframe.resources.DeploymentType; +import io.skodjob.testframe.resources.InstallPlanType; import io.skodjob.testframe.resources.KubeResourceManager; import io.skodjob.testframe.resources.NamespaceType; import io.skodjob.testframe.resources.OperatorGroupType; +import io.skodjob.testframe.resources.ServiceType; import io.skodjob.testframe.resources.SubscriptionType; import io.skodjob.testframe.utils.KubeUtils; import io.streams.constants.TestConstants; @@ -21,7 +24,10 @@ public class Abstract { KubeResourceManager.getInstance().setResourceTypes( new NamespaceType(), new SubscriptionType(), - new OperatorGroupType() + new OperatorGroupType(), + new DeploymentType(), + new InstallPlanType(), + new ServiceType() ); KubeResourceManager.getInstance().addCreateCallback(r -> { if (r.getKind().equals("Namespace")) {