-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'RC-1-11-0' into 'master'
Resolve RC-1-11-0 See merge request automation-toolchain/f5-telemetry!242
- Loading branch information
Showing
137 changed files
with
9,704 additions
and
2,405 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,10 @@ stages: | |
# # | ||
############################################################## | ||
.install_unittest_packages_cmd: &install_unittest_packages_cmd | ||
- echo "Node.js version - $(node --version)" | ||
- if node -e "process.exit(process.version.startsWith('v4.')?0:1);"; then | ||
- npm install --global [email protected] | ||
- fi | ||
- npm run install-test | ||
|
||
.run_unittest_cmd: &run_unittest_cmd | ||
|
@@ -34,7 +38,7 @@ stages: | |
image: ${CICD_CONTAINER_DEPLOY} | ||
tags: | ||
- cm-official-docker-executor | ||
|
||
.run_unittest: | ||
extends: | ||
- .test_job_definition | ||
|
@@ -48,6 +52,44 @@ stages: | |
when: on_failure | ||
expire_in: 3 days | ||
|
||
.base_azure: &base_azure | ||
tags: | ||
- docker-executor | ||
only: | ||
variables: | ||
- $RUN_AZURE_TESTS == "true" | ||
|
||
.deploy_azure: &deploy_azure | ||
extends: | ||
- .base_azure | ||
image: mcr.microsoft.com/azure-cli | ||
stage: deploy | ||
artifacts: | ||
name: ${CI_COMMIT_REF_NAME}_azure | ||
paths: | ||
- deploy_output | ||
- deploy_output_gov | ||
expire_in: 4 days | ||
|
||
.test_azure: &test_azure | ||
extends: | ||
- .base_azure | ||
stage: functional test | ||
artifacts: | ||
name: ${CI_JOB_NAME}_functests_artifacts | ||
paths: | ||
- test/artifacts | ||
when: always | ||
expire_in: 4 days | ||
|
||
# Tear-down Azure environment in separate job, since 'after_script' has a 5min timeout | ||
.teardown_azure: &teardown_azure | ||
extends: | ||
- .base_azure | ||
image: mcr.microsoft.com/azure-cli | ||
stage: teardown | ||
when: always | ||
|
||
############################################################## | ||
# # | ||
# Jobs # | ||
|
@@ -98,6 +140,7 @@ npm_audit: | |
- apt-get install -y jq | ||
# install node modules | ||
- *install_unittest_packages_cmd | ||
- npm list --json | ||
# npm audit - install includes audit, but perform specific check and fail if needed | ||
- audit_report=$(npm audit --json) || echo "" | ||
- echo "$audit_report" | ||
|
@@ -169,7 +212,7 @@ deploy_env: | |
variables: | ||
- $REQ_DEVICE_PIPELINE == "true" | ||
script: | ||
- $SHELL ./scripts/functional-testing/setup.sh | ||
- $SHELL ./scripts/functional_testing/vio/setup.sh | ||
|
||
test_functional: | ||
stage: functional test | ||
|
@@ -196,6 +239,7 @@ test_functional: | |
- npm install [email protected] | ||
- npm run test-functional | ||
|
||
# should be executed manually to remove the harness | ||
teardown_env: | ||
extends: | ||
- .harness_deployment_definition | ||
|
@@ -205,7 +249,65 @@ teardown_env: | |
variables: | ||
- $REQ_DEVICE_PIPELINE == "true" | ||
script: | ||
- $SHELL ./scripts/functional-testing/teardown.sh | ||
- $SHELL ./scripts/functional_testing/vio/teardown.sh | ||
|
||
# Azure Public | ||
deploy_env_azure: | ||
extends: | ||
- .deploy_azure | ||
script: | ||
- mkdir -p './deploy_output' | ||
- source ./scripts/functional_testing/azure/deploy_env.sh | ||
|
||
test_functional_azure: | ||
extends: | ||
- .test_azure | ||
script: | ||
- source ./deploy_output/azure.sh | ||
- echo $AZURE_VM_HOSTNAME | ||
- echo $AZURE_VM_IP | ||
- *install_unittest_packages_cmd | ||
- npm install [email protected] | ||
- npm run test-functional-cloud-azure | ||
needs: | ||
- build_rpm | ||
- deploy_env_azure | ||
|
||
teardown_env_azure: | ||
extends: | ||
- .teardown_azure | ||
script: | ||
- source ./scripts/functional_testing/azure/teardown_env.sh | ||
|
||
|
||
# Azure Gov | ||
deploy_env_azure_gov: | ||
extends: | ||
- .deploy_azure | ||
script: | ||
- mkdir -p './deploy_output_gov' | ||
- source ./scripts/functional_testing/azure/deploy_env.sh 'gov' | ||
|
||
test_functional_azure_gov: | ||
extends: | ||
- .test_azure | ||
script: | ||
- source ./deploy_output_gov/azure_gov.sh | ||
- echo $AZURE_VM_HOSTNAME | ||
- echo $AZURE_VM_IP | ||
- *install_unittest_packages_cmd | ||
- npm install [email protected] | ||
- npm run test-functional-cloud-azure | ||
needs: | ||
- build_rpm | ||
- deploy_env_azure_gov | ||
|
||
|
||
teardown_env_azure_gov: | ||
extends: | ||
- .teardown_azure | ||
script: | ||
- source ./scripts/functional_testing/azure/teardown_env.sh 'gov' | ||
|
||
# Publish to internal artifactory | ||
# Note: Will publish when new tags are pushed and use the current build in dist directory | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.