From fcebea12e92e470154d52e07950f2187f72a88fc Mon Sep 17 00:00:00 2001 From: Remigiusz Janeczek Date: Fri, 21 May 2021 14:50:40 +0200 Subject: [PATCH] Add maven profiles and testsuite for helm validator Issue-ID: SDC-3185 Signed-off-by: Remigiusz Janeczek Change-Id: Ic6706c64b887fb589d3638fee5de51bf15f59e23 --- README.md | 10 +++- integration-tests/pom.xml | 58 ++++++++++++++++++++++ .../ci/testSuites/backend/helmValidatorTests.xml | 10 ++++ .../ci/testSuites/frontend/helmValidatorTests.xml | 11 ++++ 4 files changed, 88 insertions(+), 1 deletion(-) create mode 100644 integration-tests/src/test/resources/ci/testSuites/backend/helmValidatorTests.xml create mode 100644 integration-tests/src/test/resources/ci/testSuites/frontend/helmValidatorTests.xml diff --git a/README.md b/README.md index 53f1ad399a..4789fd189c 100644 --- a/README.md +++ b/README.md @@ -162,7 +162,15 @@ There are 2 options to start them: The test suites are located here: * BE: `integration-tests/src/test/resources/ci/testSuites/backend` * FE: `integration-tests/src/test/resources/ci/testSuites/frontend` - + +#### Integration tests with Helm Validator + +Those tests use container built externally in other ONAP repository: [sdc/sdc-helm-validator](https://gerrit.onap.org/r/admin/repos/sdc/sdc-helm-validator) + +You can run those tests same as default integration tests by adding additional profile to maven commands: +`integration-tests-with-helm-validator` +* To start SDC with Helm Validator run: `mvn clean install -P start-sdc,integration-tests-with-helm-validator` +* To execute tests that use Helm Validator use: `mvn clean install -P run-integration-tests,integration-tests-with-helm-validator` ## Accessing SDC UI in Dev Mode (Legacy way) In order to access the SDC UI from your dev environment you need to do the following: diff --git a/integration-tests/pom.xml b/integration-tests/pom.xml index b79547e876..e6e1bba311 100644 --- a/integration-tests/pom.xml +++ b/integration-tests/pom.xml @@ -51,6 +51,8 @@ limitations under the License. /tmp/sdc-integration-tests latest 86.0 + true + 1.2.0 1.6.5 @@ -805,6 +807,32 @@ limitations under the License. + + onap/org.onap.sdc.sdc-helm-validator:${it.helm-validator.version} + helm-validator + + ${it.helm-validator.disabled} + helm-validator + + + + helm-validator + direct + + 8080 + + + + + 8085:8080 + + + custom + sdc-network + helm-validator + + + @@ -882,5 +910,35 @@ limitations under the License. false + + integration-tests-with-helm-validator + + false + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + 1 + true + + + testng.dtd.http + true + + + + src/test/resources/ci/testSuites/backend/onapApiSanity.xml + src/test/resources/ci/testSuites/frontend/onapUiSanity.xml + src/test/resources/ci/testSuites/backend/helmValidatorTests.xml + src/test/resources/ci/testSuites/frontend/helmValidatorTests.xml + + + + + + diff --git a/integration-tests/src/test/resources/ci/testSuites/backend/helmValidatorTests.xml b/integration-tests/src/test/resources/ci/testSuites/backend/helmValidatorTests.xml new file mode 100644 index 0000000000..e69785d397 --- /dev/null +++ b/integration-tests/src/test/resources/ci/testSuites/backend/helmValidatorTests.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/integration-tests/src/test/resources/ci/testSuites/frontend/helmValidatorTests.xml b/integration-tests/src/test/resources/ci/testSuites/frontend/helmValidatorTests.xml new file mode 100644 index 0000000000..ac44641767 --- /dev/null +++ b/integration-tests/src/test/resources/ci/testSuites/frontend/helmValidatorTests.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + -- 2.16.6