From: ilanap Date: Wed, 6 Feb 2019 09:36:35 +0000 (+0200) Subject: Fixes to docker run X-Git-Tag: 1.4.0~126 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=b551a05893bcf6ac1ff3679d3354ba106fef24bb;p=sdc.git Fixes to docker run with summary report for cucumber to be inserted into emails Change-Id: I2b65410a7dddf7cfe2f897db43d77809eaf9cb9e Issue-ID: SDC-2028 Signed-off-by: ilanap --- diff --git a/cucumber-js-test-apis-ci/cucumber.js b/cucumber-js-test-apis-ci/cucumber.js index 4ade9b1cb3..0eb79d3ac5 100644 --- a/cucumber-js-test-apis-ci/cucumber.js +++ b/cucumber-js-test-apis-ci/cucumber.js @@ -1,3 +1,3 @@ module.exports = { - "default" : "--require stepDefinitions -f summary -r ./features -f json:report/report.json" + "default" : "--require stepDefinitions -f summary -r ./features -f summary:report/summary.txt -f json:report/report.json --format-options '{\"colorsEnabled\": false}'" }; \ No newline at end of file diff --git a/cucumber-js-test-apis-ci/docker_run.sh b/cucumber-js-test-apis-ci/docker_run.sh index 0bfbd11d54..95cdab302a 100644 --- a/cucumber-js-test-apis-ci/docker_run.sh +++ b/cucumber-js-test-apis-ci/docker_run.sh @@ -23,14 +23,11 @@ then TEST_CI_BE_HOST="$(ifconfig 'eth0' | sed -n '2p' | awk '{print $2}' | sed 's/addr://g')" TEST_CI_BE_PORT=8081 TEST_CI_CATALOG_HOST=$TEST_CI_BE_HOST - TEST_CI_AP_HOST=$TEST_CI_BE_HOST - TEST_CI_AP_PORT=8080 fi if [ -z "$TEST_CI_CATALOG_PORT" ] then TEST_CI_CATALOG_PORT=8080 fi - echo "host $TEST_CI_BE_HOST" if [ -e "$WORKSPACE/data" ] @@ -69,9 +66,6 @@ sed -i "s/onboarding.user/cs0008/g" $WORKSPACE/data/environments/dockerConfig.js sed -i "s/CatalogBE.port/$TEST_CI_CATALOG_PORT/g" $WORKSPACE/data/environments/dockerConfig.json sed -i "s/CatalogBE.server/$TEST_CI_CATALOG_HOST/g" $WORKSPACE/data/environments/dockerConfig.json sed -i "s/CatalogBE.user/cs0008/g" $WORKSPACE/data/environments/dockerConfig.json -sed -i "s/activity_spec.port/$TEST_CI_AP_PORT/g" $WORKSPACE/data/environments/dockerConfig.json -sed -i "s/activity_spec.server/$TEST_CI_AP_HOST/g" $WORKSPACE/data/environments/dockerConfig.json -sed -i "s/activity_spec.user/cs0008/g" $WORKSPACE/data/environments/dockerConfig.json cat $WORKSPACE/data/environments/dockerConfig.json diff --git a/cucumber-js-test-apis-ci/plugins/README.md b/cucumber-js-test-apis-ci/plugins/README.md index 956fe77276..a57d61b1bb 100644 --- a/cucumber-js-test-apis-ci/plugins/README.md +++ b/cucumber-js-test-apis-ci/plugins/README.md @@ -7,7 +7,7 @@ The Modules on the left contains all steps for particalar aress and/or explanati
  • Copy the config.json to devConfig.json
  • Replace the server and user values with the correct values

    How to run with Maven

    -
  • "mvn install" will install npm if needed, download all modules and create the documentation under the "docs" folder +
  • "mvn clean install -f dev_pom.xml" will install npm if needed, download all modules and create the documentation under the "docs" folder
  • "mvn test-and-report" will run all tests in the features folder and create an HTML report under the "reports" folder

    How to develop tests

    You can open the project in IntelliJ and Webstorm to run and develop scenarios.
    @@ -21,3 +21,9 @@ You can open the project in IntelliJ and Webstorm to run and develop scenarios.<
  • More on Cucumber
  • More on Gherkin
  • More on Cucumber-js +
    +

    How to run the docker

    +
  • "mvn clean install -P docker" will create the docker images +
  • the "docker_run.sh" script will start all ONAP images and run the cucumber docker against them +
  • environment variables that can be set to change the server/version: IMAGES_TAG (default 1.4-STAGING-latest), TEST_CI_BE_HOST (deafult - machine IP), TEST_CI_CATALOG_PORT (default 8080) +