diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index bd4f2f12..00000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,1003 +0,0 @@ -image: ${ARTIFACTORY_SERVER}/ecosystems-cloudsolutions-docker-dev/dewdrop:$DEWDROP_IMAGE_ID - -services: - - ${ARTIFACTORY_SERVER}/dockerhub-remote/docker:dind - -stages: - - smoke-tests - - sprinkle-tests - - release - - post-release-tests - - publish - - monitors - - droplets - - admin - -variables: - GIT_SUBMODULE_STRATEGY: recursive - -# release prep - updates runtime-init location used for testing -# placeholder for aws v2 - -# validate CloudFormation templates with cfn-lint -run_cfn_lint: - image: ${ARTIFACTORY_SERVER}/dockerhub-remote/python:3.7-alpine - stage: smoke-tests - tags: - - docker-executor - except: - refs: - - schedules - - triggers - - pipelines - script: - - cd cloud-tools/cfn-lint - - pip install -r requirements.txt - - cfn-lint --template ../../examples/**/*.yaml --override-spec override_propagate.json - -# validate README file(s) only contain links that respond with 200 OK -# this pre-release job only checks internal links to avoid failures -# when tag version is unpublished -run_link_checker: - image: ${ARTIFACTORY_SERVER}/dockerhub-remote/node:10 - stage: smoke-tests - tags: - - docker-executor - only: - refs: - # run only on release branch and develop - - /^R.*/ - - develop - except: - refs: - - schedules - - triggers - - pipelines - variables: - - $RELEASE_RUNTIME_INIT_TESTS == "true" - script: - - make link_check - allow_failure: true - -# validate test policy parameters are present -run_test_param_checker: - image: ${ARTIFACTORY_SERVER}/dockerhub-remote/python:3.7 - stage: smoke-tests - tags: - - docker-executor - except: - refs: - - schedules - - triggers - - pipelines - variables: - - $RELEASE_RUNTIME_INIT_TESTS == "true" - script: - - make test_policy_check - -# validate parameters match style guide -verify_parameters_match_style_guide: - image: ${ARTIFACTORY_SERVER}/dockerhub-remote/python:3.7-alpine - stage: smoke-tests - tags: - - docker-executor - except: - refs: - - schedules - - triggers - - pipelines - script: - - apk add --no-cache build-base - - apk add --no-cache bash - - make run_compare_parameters - - make run_expected_diff - artifacts: - paths: - - cloud-tools/parameter-parser/parameters_diff.yaml - - cloud-tools/parameter-parser/parameters_config.yaml - when: always - expire_in: 1 week - -# validate outputs match style guide -verify_outputs_match_style_guide: - image: ${ARTIFACTORY_SERVER}/dockerhub-remote/python:3.7-alpine - stage: smoke-tests - tags: - - docker-executor - except: - refs: - - schedules - - triggers - - pipelines - script: - - apk add --no-cache build-base - - apk add --no-cache bash - - make run_compare_outputs - - make run_expected_outputs_diff - artifacts: - paths: - - cloud-tools/parameter-parser/outputs_diff.yaml - - cloud-tools/parameter-parser/outputs_config.yaml - when: always - expire_in: 1 week - -# AWS Template Modules Tests -# This job passes in the test plan to the sprinkler.py script that parses the plan and triggers the dewdrop_test_run -# This job is to be scheduled once the plan has been solidified -# Environment variables: -# TEST_POLICY: path to test plan, this gets set under the scheduling in gitlab -# STACK_TYPE: index for elastic search logging, this is set under the scheduling in gitlab -# DAILY_TEST_TOKEN: token used to trigger git pipeline from the sprinkler script -# CI_COMMIT_REF_NAME: branch name - -# Module: AWS Network Template -aws_network_module_test_job: - image: ${ARTIFACTORY_SERVER}/dockerhub-remote/python:3.7-alpine - stage: sprinkle-tests - when: manual - tags: - - docker-executor - only: - refs: - - branches - changes: - - automated-test-scripts/data/f5-aws-cloudformation-v2/examples/modules/network/* - - automated-test-scripts/f5-aws-cloudformation-v2/examples/modules/network/* - - examples/modules/network/network.yaml - except: - refs: - - schedules - - triggers - - pipelines - variables: - - $RELEASE_RUNTIME_INIT_TESTS == "true" - - $CI_COMMIT_MESSAGE =~ /smart:init/ - variables: - TEST_POLICY: automated-test-scripts/data/f5-aws-cloudformation-v2/examples/modules/network/test_policy.yaml - STACK_TYPE: dewdrop-preproduction - script: - - pip install -r cloud-tools/master-job/requirements.txt - - cloud-tools/master-job/sprinkler.py --test-plan $TEST_POLICY --token $CI_JOB_TOKEN --branch $CI_COMMIT_REF_NAME --stack-type $STACK_TYPE --project-id $CI_PROJECT_ID - retry: - max: 2 - when: - - runner_system_failure - - stuck_or_timeout_failure - -# Module: AWS Function Template -aws_function_module_test_job: - image: ${ARTIFACTORY_SERVER}/dockerhub-remote/python:3.7-alpine - stage: sprinkle-tests - when: manual - tags: - - docker-executor - only: - refs: - - branches - changes: - - automated-test-scripts/data/f5-aws-cloudformation-v2/examples/modules/function/* - - automated-test-scripts/f5-aws-cloudformation-v2/examples/modules/function/* - - examples/modules/function/function.yaml - except: - refs: - - schedules - - triggers - - pipelines - variables: - - $RELEASE_RUNTIME_INIT_TESTS == "true" - - $CI_COMMIT_MESSAGE =~ /smart:init/ - variables: - TEST_POLICY: automated-test-scripts/data/f5-aws-cloudformation-v2/examples/modules/function/test_policy.yaml - STACK_TYPE: dewdrop-preproduction - script: - - pip install -r cloud-tools/master-job/requirements.txt - - cloud-tools/master-job/sprinkler.py --test-plan $TEST_POLICY --token $CI_JOB_TOKEN --branch $CI_COMMIT_REF_NAME --stack-type $STACK_TYPE --project-id $CI_PROJECT_ID - retry: - max: 2 - when: - - runner_system_failure - - stuck_or_timeout_failure - -# Module: AWS access Template -aws_access_module_test_job: - image: ${ARTIFACTORY_SERVER}/dockerhub-remote/python:3.7-alpine - stage: sprinkle-tests - when: manual - tags: - - docker-executor - only: - refs: - - branches - changes: - - automated-test-scripts/data/f5-aws-cloudformation-v2/examples/modules/access/* - - automated-test-scripts/f5-aws-cloudformation-v2/examples/modules/access/* - - examples/modules/access/access.yaml - except: - refs: - - schedules - - triggers - - pipelines - variables: - - $RELEASE_RUNTIME_INIT_TESTS == "true" - - $CI_COMMIT_MESSAGE =~ /smart:init/ - variables: - TEST_POLICY: automated-test-scripts/data/f5-aws-cloudformation-v2/examples/modules/access/test_policy.yaml - STACK_TYPE: dewdrop-preproduction - script: - - pip install -r cloud-tools/master-job/requirements.txt - - cloud-tools/master-job/sprinkler.py --test-plan $TEST_POLICY --token $CI_JOB_TOKEN --branch $CI_COMMIT_REF_NAME --stack-type $STACK_TYPE --project-id $CI_PROJECT_ID - retry: - max: 2 - when: - - runner_system_failure - - stuck_or_timeout_failure - -# Module: AWS DAG Template -aws_dag_module_test_job: - image: ${ARTIFACTORY_SERVER}/dockerhub-remote/python:3.7-alpine - stage: sprinkle-tests - when: manual - tags: - - docker-executor - only: - refs: - - branches - changes: - - automated-test-scripts/data/f5-aws-cloudformation-v2/examples/modules/dag/**/* - - automated-test-scripts/f5-aws-cloudformation-v2/examples/modules/dag/**/* - - examples/modules/dag/dag.yaml - except: - refs: - - schedules - - triggers - - pipelines - variables: - - $RELEASE_RUNTIME_INIT_TESTS == "true" - - $CI_COMMIT_MESSAGE =~ /smart:init/ - variables: - TEST_POLICY: automated-test-scripts/data/f5-aws-cloudformation-v2/examples/modules/dag/test_policy.yaml - STACK_TYPE: dewdrop-preproduction - script: - - pip install -r cloud-tools/master-job/requirements.txt - - cloud-tools/master-job/sprinkler.py --test-plan $TEST_POLICY --token $CI_JOB_TOKEN --branch $CI_COMMIT_REF_NAME --stack-type $STACK_TYPE --project-id $CI_PROJECT_ID - retry: - max: 2 - when: - - runner_system_failure - - stuck_or_timeout_failure - -# Module: Application Template -aws_application_module_test_job: - image: ${ARTIFACTORY_SERVER}/dockerhub-remote/python:3.7-alpine - stage: sprinkle-tests - when: manual - tags: - - docker-executor - only: - refs: - - branches - changes: - - automated-test-scripts/data/f5-aws-cloudformation-v2/examples/modules/application/**/* - - automated-test-scripts/f5-aws-cloudformation-v2/examples/modules/application/**/* - - examples/modules/application/application.yaml - except: - refs: - - schedules - - triggers - - pipelines - variables: - - $RELEASE_RUNTIME_INIT_TESTS == "true" - - $CI_COMMIT_MESSAGE =~ /smart:init/ - variables: - TEST_POLICY: automated-test-scripts/data/f5-aws-cloudformation-v2/examples/modules/application/test_policy.yaml - STACK_TYPE: dewdrop-preproduction - script: - - pip install -r cloud-tools/master-job/requirements.txt - - cloud-tools/master-job/sprinkler.py --test-plan $TEST_POLICY --token $CI_JOB_TOKEN --branch $CI_COMMIT_REF_NAME --stack-type $STACK_TYPE --project-id $CI_PROJECT_ID - retry: - max: 2 - when: - - runner_system_failure - - stuck_or_timeout_failure - -# Module: Bastion Template -aws_bastion_module_test_job: - image: ${ARTIFACTORY_SERVER}/dockerhub-remote/python:3.7-alpine - stage: sprinkle-tests - when: manual - tags: - - docker-executor - only: - refs: - - branches - changes: - - automated-test-scripts/data/f5-aws-cloudformation-v2/examples/modules/bastion/**/* - - automated-test-scripts/f5-aws-cloudformation-v2/examples/modules/bastion/**/* - - examples/modules/bastion/bastion.yaml - except: - refs: - - schedules - - triggers - - pipelines - variables: - - $RELEASE_RUNTIME_INIT_TESTS == "true" - - $CI_COMMIT_MESSAGE =~ /smart:init/ - variables: - TEST_POLICY: automated-test-scripts/data/f5-aws-cloudformation-v2/examples/modules/bastion/test_policy.yaml - STACK_TYPE: dewdrop-preproduction - script: - - pip install -r cloud-tools/master-job/requirements.txt - - cloud-tools/master-job/sprinkler.py --test-plan $TEST_POLICY --token $CI_JOB_TOKEN --branch $CI_COMMIT_REF_NAME --stack-type $STACK_TYPE --project-id $CI_PROJECT_ID - retry: - max: 2 - when: - - runner_system_failure - - stuck_or_timeout_failure - -# Module: AWS Telemetry Template -aws_telemetry_module_test_job: - image: ${ARTIFACTORY_SERVER}/dockerhub-remote/python:3.7-alpine - stage: sprinkle-tests - when: manual - tags: - - docker-executor - only: - refs: - - branches - changes: - - automated-test-scripts/data/f5-aws-cloudformation-v2/examples/modules/telemetry/* - - automated-test-scripts/f5-aws-cloudformation-v2/examples/modules/telemetry/* - - examples/modules/telemetry/telemetry.yaml - except: - refs: - - schedules - - triggers - - pipelines - variables: - - $RELEASE_RUNTIME_INIT_TESTS == "true" - - $CI_COMMIT_MESSAGE =~ /smart:init/ - variables: - TEST_POLICY: automated-test-scripts/data/f5-aws-cloudformation-v2/examples/modules/telemetry/test_policy.yaml - STACK_TYPE: dewdrop-preproduction - script: - - pip install -r cloud-tools/master-job/requirements.txt - - cloud-tools/master-job/sprinkler.py --test-plan $TEST_POLICY --token $CI_JOB_TOKEN --branch $CI_COMMIT_REF_NAME --stack-type $STACK_TYPE --project-id $CI_PROJECT_ID - retry: - max: 2 - when: - - runner_system_failure - - stuck_or_timeout_failure - -# Module: AWS BIGIP Autoscale Template -aws_bigip_autoscale_module_test_job: - image: ${ARTIFACTORY_SERVER}/dockerhub-remote/python:3.7-alpine - stage: sprinkle-tests - when: manual - tags: - - docker-executor - only: - refs: - - branches - changes: - - automated-test-scripts/data/f5-aws-cloudformation-v2/examples/modules/bigip-autoscale/**/* - - automated-test-scripts/f5-aws-cloudformation-v2/examples/modules/bigip-autoscale/**/* - - examples/modules/bigip-autoscale/bigip-autoscale.yaml - except: - refs: - - schedules - - triggers - - pipelines - variables: - - $RELEASE_RUNTIME_INIT_TESTS == "true" - - $CI_COMMIT_MESSAGE =~ /smart:init/ - variables: - TEST_POLICY: automated-test-scripts/data/f5-aws-cloudformation-v2/examples/modules/bigip-autoscale/test_policy.yaml - STACK_TYPE: dewdrop-preproduction - script: - - pip install -r cloud-tools/master-job/requirements.txt - - cloud-tools/master-job/sprinkler.py --test-plan $TEST_POLICY --token $CI_JOB_TOKEN --branch $CI_COMMIT_REF_NAME --stack-type $STACK_TYPE --project-id $CI_PROJECT_ID - retry: - max: 2 - when: - - runner_system_failure - - stuck_or_timeout_failure - -# Module: AWS BIGIP Standalone Template -aws_bigip_standalone_module_test_job: - image: ${ARTIFACTORY_SERVER}/dockerhub-remote/python:3.7-alpine - stage: sprinkle-tests - when: manual - tags: - - docker-executor - only: - refs: - - branches - changes: - - automated-test-scripts/data/f5-aws-cloudformation-v2/examples/modules/bigip-standalone/**/* - - automated-test-scripts/f5-aws-cloudformation-v2/examples/modules/bigip-standalone/**/* - - examples/modules/bigip-standalone/bigip-standalone.yaml - except: - refs: - - schedules - - triggers - - pipelines - variables: - - $RELEASE_RUNTIME_INIT_TESTS == "true" - - $CI_COMMIT_MESSAGE =~ /smart:init/ - variables: - TEST_POLICY: automated-test-scripts/data/f5-aws-cloudformation-v2/examples/modules/bigip-standalone/test_policy.yaml - STACK_TYPE: dewdrop-preproduction - script: - - pip install -r cloud-tools/master-job/requirements.txt - - cloud-tools/master-job/sprinkler.py --test-plan $TEST_POLICY --token $CI_JOB_TOKEN --branch $CI_COMMIT_REF_NAME --stack-type $STACK_TYPE --project-id $CI_PROJECT_ID - retry: - max: 2 - when: - - runner_system_failure - - stuck_or_timeout_failure - -# Example: AWS BIGIP BIGIQ Autoscale Template -aws_autoscale_bigiq_example_test_job: - image: ${ARTIFACTORY_SERVER}/dockerhub-remote/python:3.7-alpine - stage: sprinkle-tests - when: manual - tags: - - docker-executor - only: - refs: - - branches - changes: - - automated-test-scripts/data/f5-aws-cloudformation-v2/examples/autoscale/bigiq/* - - automated-test-scripts/f5-aws-cloudformation-v2/examples/autoscale/bigiq/* - - examples/autoscale/bigiq/autoscale.yaml - - examples/modules/bigip-autoscale/bigip-autoscale.yaml - - examples/modules/access/access.yaml - - examples/modules/application/application.yaml - - examples/modules/bastion/bastion.yaml - - examples/modules/dag/dag.yaml - - examples/modules/function/function.yaml - - examples/modules/network/network.yaml - - examples/modules/telemetry/telemetry.yaml - except: - refs: - - schedules - - triggers - - pipelines - variables: - - $RELEASE_RUNTIME_INIT_TESTS == "true" - - $CI_COMMIT_MESSAGE =~ /smart:init/ - variables: - TEST_POLICY: automated-test-scripts/data/f5-aws-cloudformation-v2/examples/autoscale/bigiq/test_policy_full.yaml - STACK_TYPE: dewdrop-preproduction - script: - - pip install -r cloud-tools/master-job/requirements.txt - - cloud-tools/master-job/sprinkler.py --test-plan $TEST_POLICY --token $CI_JOB_TOKEN --branch $CI_COMMIT_REF_NAME --stack-type $STACK_TYPE --project-id $CI_PROJECT_ID - retry: - max: 2 - when: - - runner_system_failure - - stuck_or_timeout_failure - -# Example: AWS BIGIP BIGIQ Existing Autoscale Template -aws_autoscale_bigiq_existing_test_job: - image: ${ARTIFACTORY_SERVER}/dockerhub-remote/python:3.7-alpine - stage: sprinkle-tests - when: manual - tags: - - docker-executor - only: - refs: - - branches - changes: - - automated-test-scripts/data/f5-aws-cloudformation-v2/examples/autoscale/bigiq/* - - automated-test-scripts/f5-aws-cloudformation-v2/examples/autoscale/bigiq/* - - examples/autoscale/bigiq/autoscale-existing-network.yaml - except: - refs: - - schedules - - triggers - - pipelines - variables: - - $RELEASE_RUNTIME_INIT_TESTS == "true" - - $CI_COMMIT_MESSAGE =~ /smart:init/ - variables: - TEST_POLICY: automated-test-scripts/data/f5-aws-cloudformation-v2/examples/autoscale/bigiq/test_policy_existing.yaml - STACK_TYPE: dewdrop-preproduction - script: - - pip install -r cloud-tools/master-job/requirements.txt - - cloud-tools/master-job/sprinkler.py --test-plan $TEST_POLICY --token $CI_JOB_TOKEN --branch $CI_COMMIT_REF_NAME --stack-type $STACK_TYPE --project-id $CI_PROJECT_ID - retry: - max: 2 - when: - - runner_system_failure - - stuck_or_timeout_failure - -# Example: AWS BIGIP PAYG Autoscale Template -aws_autoscale_payg_example_test_job: - image: ${ARTIFACTORY_SERVER}/dockerhub-remote/python:3.7-alpine - stage: sprinkle-tests - when: manual - tags: - - docker-executor - only: - refs: - - branches - changes: - - automated-test-scripts/data/f5-aws-cloudformation-v2/examples/autoscale/payg/full/* - - automated-test-scripts/f5-aws-cloudformation-v2/examples/autoscale/payg/* - - examples/autoscale/payg/autoscale.yaml - - examples/modules/bigip-autoscale/bigip-autoscale.yaml - - examples/modules/access/access.yaml - - examples/modules/application/application.yaml - - examples/modules/bastion/bastion.yaml - - examples/modules/dag/dag.yaml - - examples/modules/function/function.yaml - - examples/modules/network/network.yaml - - examples/modules/telemetry/telemetry.yaml - except: - refs: - - schedules - - triggers - - pipelines - variables: - - $RELEASE_RUNTIME_INIT_TESTS == "true" - - $CI_COMMIT_MESSAGE =~ /smart:init/ - variables: - TEST_POLICY: automated-test-scripts/data/f5-aws-cloudformation-v2/examples/autoscale/payg/test_policy_full.yaml - STACK_TYPE: dewdrop-preproduction - script: - - pip install -r cloud-tools/master-job/requirements.txt - - cloud-tools/master-job/sprinkler.py --test-plan $TEST_POLICY --token $CI_JOB_TOKEN --branch $CI_COMMIT_REF_NAME --stack-type $STACK_TYPE --project-id $CI_PROJECT_ID - retry: - max: 2 - when: - - runner_system_failure - - stuck_or_timeout_failure - -# Example: AWS BIGIP PAYG Existing Stack Autoscale Template -aws_autoscale_payg_existing_test_job: - image: ${ARTIFACTORY_SERVER}/dockerhub-remote/python:3.7-alpine - stage: sprinkle-tests - when: manual - tags: - - docker-executor - only: - refs: - - branches - changes: - - automated-test-scripts/data/f5-aws-cloudformation-v2/examples/autoscale/payg/existing/* - - automated-test-scripts/f5-aws-cloudformation-v2/examples/autoscale/payg/* - - examples/autoscale/payg/autoscale-existing-network.yaml - except: - refs: - - schedules - - triggers - - pipelines - variables: - - $RELEASE_RUNTIME_INIT_TESTS == "true" - - $CI_COMMIT_MESSAGE =~ /smart:init/ - variables: - TEST_POLICY: automated-test-scripts/data/f5-aws-cloudformation-v2/examples/autoscale/payg/test_policy_existing.yaml - STACK_TYPE: dewdrop-preproduction - script: - - pip install -r cloud-tools/master-job/requirements.txt - - cloud-tools/master-job/sprinkler.py --test-plan $TEST_POLICY --token $CI_JOB_TOKEN --branch $CI_COMMIT_REF_NAME --stack-type $STACK_TYPE --project-id $CI_PROJECT_ID - retry: - max: 2 - when: - - runner_system_failure - - stuck_or_timeout_failure - -# Example: AWS BIGIP PAYG or BYOL Failover Template -aws_failover_example_test_job: - image: ${ARTIFACTORY_SERVER}/dockerhub-remote/python:3.7-alpine - stage: sprinkle-tests - when: manual - tags: - - docker-executor - only: - refs: - - branches - changes: - - automated-test-scripts/data/f5-aws-cloudformation-v2/examples/failover/full/**/* - - automated-test-scripts/f5-aws-cloudformation-v2/examples/failover/payg_byol/**/* - - examples/failover/failover.yaml - - examples/modules/bigip-standalone/bigip-standalone.yaml - - examples/modules/access/access.yaml - - examples/modules/application/application.yaml - - examples/modules/bastion/bastion.yaml - - examples/modules/dag/dag.yaml - - examples/modules/function/function.yaml - - examples/modules/network/network.yaml - except: - refs: - - schedules - - triggers - - pipelines - variables: - - $RELEASE_RUNTIME_INIT_TESTS == "true" - - $CI_COMMIT_MESSAGE =~ /smart:init/ - variables: - TEST_POLICY: automated-test-scripts/data/f5-aws-cloudformation-v2/examples/failover/test_policy.yaml - STACK_TYPE: dewdrop-preproduction - script: - - pip install -r cloud-tools/master-job/requirements.txt - - cloud-tools/master-job/sprinkler.py --test-plan $TEST_POLICY --token $CI_JOB_TOKEN --branch $CI_COMMIT_REF_NAME --stack-type $STACK_TYPE --project-id $CI_PROJECT_ID - retry: - max: 2 - when: - - runner_system_failure - - stuck_or_timeout_failure - -# Example: AWS BIGIP PAYG or BYOL existing stack Failover Template -aws_failover_existing_test_job: - image: ${ARTIFACTORY_SERVER}/dockerhub-remote/python:3.7-alpine - stage: sprinkle-tests - when: manual - tags: - - docker-executor - only: - refs: - - branches - changes: - - automated-test-scripts/data/f5-aws-cloudformation-v2/examples/failover/existing/**/* - - automated-test-scripts/f5-aws-cloudformation-v2/examples/failover/payg_byol/**/* - - examples/failover/failover-existing-network.yaml - except: - refs: - - schedules - - triggers - - pipelines - variables: - - $RELEASE_RUNTIME_INIT_TESTS == "true" - - $CI_COMMIT_MESSAGE =~ /smart:init/ - variables: - TEST_POLICY: automated-test-scripts/data/f5-aws-cloudformation-v2/examples/failover/test_policy_existing.yaml - STACK_TYPE: dewdrop-preproduction - script: - - pip install -r cloud-tools/master-job/requirements.txt - - cloud-tools/master-job/sprinkler.py --test-plan $TEST_POLICY --token $CI_JOB_TOKEN --branch $CI_COMMIT_REF_NAME --stack-type $STACK_TYPE --project-id $CI_PROJECT_ID - retry: - max: 2 - when: - - runner_system_failure - - stuck_or_timeout_failure - -# Example: AWS Quickstart Template -aws_quickstart_example_test_job: - image: ${ARTIFACTORY_SERVER}/dockerhub-remote/python:3.7-alpine - stage: sprinkle-tests - when: manual - tags: - - docker-executor - only: - refs: - - branches - changes: - - automated-test-scripts/data/f5-aws-cloudformation-v2/examples/quickstart/payg/**/* - - automated-test-scripts/f5-aws-cloudformation-v2/examples/quickstart/payg_byol/**/* - - examples/quickstart/quickstart.yaml - - examples/modules/bigip-standalone/bigip-standalone.yaml - - examples/modules/application/application.yaml - - examples/modules/bastion/bastion.yaml - - examples/modules/dag/dag.yaml - - examples/modules/function/function.yaml - - examples/modules/network/network.yaml - except: - refs: - - schedules - - triggers - - pipelines - variables: - - $RELEASE_RUNTIME_INIT_TESTS == "true" - - $CI_COMMIT_MESSAGE =~ /smart:init/ - variables: - TEST_POLICY: automated-test-scripts/data/f5-aws-cloudformation-v2/examples/quickstart/test_policy.yaml - STACK_TYPE: dewdrop-preproduction - script: - - pip install -r cloud-tools/master-job/requirements.txt - - cloud-tools/master-job/sprinkler.py --test-plan $TEST_POLICY --token $CI_JOB_TOKEN --branch $CI_COMMIT_REF_NAME --stack-type $STACK_TYPE --project-id $CI_PROJECT_ID - retry: - max: 2 - when: - - runner_system_failure - - stuck_or_timeout_failure - -# Example: AWS Quickstart Existing Template -aws_quickstart_existing_test_job: - image: ${ARTIFACTORY_SERVER}/dockerhub-remote/python:3.7-alpine - stage: sprinkle-tests - when: manual - tags: - - docker-executor - only: - refs: - - branches - changes: - - automated-test-scripts/data/f5-aws-cloudformation-v2/examples/quickstart/existing/payg/**/* - - automated-test-scripts/f5-aws-cloudformation-v2/examples/quickstart/payg_byol/**/* - - examples/quickstart/quickstart-existing-network.yaml - - examples/modules/bigip-standalone/bigip-standalone.yaml - - examples/modules/application/application.yaml - - examples/modules/bastion/bastion.yaml - - examples/modules/dag/dag.yaml - - examples/modules/function/function.yaml - - examples/modules/network/network.yaml - except: - refs: - - schedules - - triggers - - pipelines - variables: - - $RELEASE_RUNTIME_INIT_TESTS == "true" - - $CI_COMMIT_MESSAGE =~ /smart:init/ - variables: - TEST_POLICY: automated-test-scripts/data/f5-aws-cloudformation-v2/examples/quickstart/test_policy_existing.yaml - STACK_TYPE: dewdrop-preproduction - script: - - pip install -r cloud-tools/master-job/requirements.txt - - cloud-tools/master-job/sprinkler.py --test-plan $TEST_POLICY --token $CI_JOB_TOKEN --branch $CI_COMMIT_REF_NAME --stack-type $STACK_TYPE --project-id $CI_PROJECT_ID - retry: - max: 2 - when: - - runner_system_failure - - stuck_or_timeout_failure - -# end of AWS Template Modules Tests - -# Scheduled BIG-IQ creator -create_bigiq_job: - image: ${ARTIFACTORY_SERVER}/dockerhub-remote/python:3.7-alpine - stage: publish - tags: - - docker-executor - only: - variables: - - $CREATE_BIGIQ == "true" - except: - refs: - - triggers - - pipelines - variables: - TEST_POLICY: automated-test-scripts/data/f5-aws-cloudformation-v2/bigiq/test_policy.yaml - STACK_TYPE: dewdrop-preproduction - script: - - pip install -r cloud-tools/master-job/requirements.txt - - cloud-tools/master-job/sprinkler.py --test-plan $TEST_POLICY --token $CI_JOB_TOKEN --branch $CI_COMMIT_REF_NAME --stack-type $STACK_TYPE --project-id $CI_PROJECT_ID - retry: - max: 2 - when: - - runner_system_failure - - stuck_or_timeout_failure - -pre_release_test_job: - image: ${ARTIFACTORY_SERVER}/dockerhub-remote/python:3.7-alpine - stage: sprinkle-tests - tags: - - docker-executor - only: - refs: - - main - except: - refs: - - schedules - - triggers - - pipelines - variables: - TEST_POLICY: automated-test-scripts/data/test_policies/pre_release_test.yaml - STACK_TYPE: dewdrop-preproduction - script: - - pip install -r cloud-tools/master-job/requirements.txt - - cloud-tools/master-job/sprinkler.py --test-plan $TEST_POLICY --token $CI_JOB_TOKEN --branch $CI_COMMIT_REF_NAME --stack-type $STACK_TYPE --project-id $CI_PROJECT_ID - retry: - max: 2 - when: - - runner_system_failure - - stuck_or_timeout_failure - -post_release_test_job: - image: ${ARTIFACTORY_SERVER}/dockerhub-remote/python:3.7-alpine - stage: sprinkle-tests - tags: - - docker-executor - only: - - schedules - except: - variables: - - $CREATE_BIGIQ == "true" - - $UPDATE_SCHEDULES == "true" - variables: - TEST_POLICY: automated-test-scripts/data/test_policies/post_release_test.yaml - STACK_TYPE: dewdrop-preproduction - # Added a manual trigger for now so that this job doesn't get triggered after every commit - when: manual - script: - - pip install -r cloud-tools/master-job/requirements.txt - - cloud-tools/master-job/sprinkler.py --test-plan $TEST_POLICY --token $CI_JOB_TOKEN --branch $CI_COMMIT_REF_NAME --stack-type $STACK_TYPE --project-id $CI_PROJECT_ID - retry: - max: 2 - when: - - runner_system_failure - - stuck_or_timeout_failure - -execute_test_job: - image: ${ARTIFACTORY_SERVER}/dockerhub-remote/python:3.7-alpine - stage: sprinkle-tests - tags: - - docker-executor - only: - - schedules - except: - variables: - - $CREATE_BIGIQ == "true" - - $UPDATE_SCHEDULES == "true" - variables: - TEST_POLICY: set in schedule! - STACK_TYPE: dewdrop-production - script: - - pip install -r cloud-tools/master-job/requirements.txt - - cloud-tools/master-job/sprinkler.py --test-plan $TEST_POLICY --token $CI_JOB_TOKEN --branch $CI_COMMIT_REF_NAME --stack-type $STACK_TYPE --project-id $CI_PROJECT_ID - retry: - max: 2 - when: - - runner_system_failure - - stuck_or_timeout_failure - -### Monitors -scheduled_daily_test_monitor: - image: ${ARTIFACTORY_SERVER}/dockerhub-remote/python:3.7-alpine - stage: monitors - only: - refs: - - schedules - variables: - - $MONITORS == "true" - tags: - - docker-executor - script: - - pip install -r cloud-tools/monitors/licenses/requirements.txt - - python cloud-tools/monitors/licenses/check_counts.py $LIC_COUNT_TRESHOLD - retry: - max: 2 - when: - - runner_system_failure - - stuck_or_timeout_failure - -# This job gets triggered by the sprinkler.py script that get ran by the 'master_test_job' it ingests TEMPLATE_URL -# and TEMPLATE_PARAMETERS which are passed down by the sprinkler.py script. Using the variables runs dewdrop with -# the set environment variables -dewdrop_test_run: - image: ${ARTIFACTORY_SERVER}/ecosystems-cloudsolutions-docker-dev/dewdrop:$DEWDROP_IMAGE_ID - stage: droplets - tags: - - docker-executor - variables: - SSH_KEY: "$SSH_KEY" - AWS_DEFAULT_REGION: "$AWS_DEFAULT_REGION" - AWS_ACCESS_KEY_ID: "$AWS_ACCESS_KEY_ID" - AWS_SECRET_ACCESS_KEY: "$AWS_SECRET_ACCESS_KEY" - TEMPLATE_URL: "$TEMPLATE_URL" - TEMPLATE_PARAMETERS: "$TEMPLATE_PARAMETERS" - STACK_TYPE: "$STACK_TYPE" - GITLAB_JOB_URL: "$CI_JOB_URL" - only: - variables: - - $RUN_SCHEDULED_DEWDROP_TEST == "true" - script: - # the dewdrop image itself does not contain any test files, so ensure dewdrop - # is run from the known location where test policies expect it to be - # location: root of the cloud factory repository - - if [ "$CLOUD_PROVIDER_ENVIRONMENT" == "aws_china" ]; then - - AWS_DEFAULT_REGION=$AWS_CHINA_DEFAULT_REGION - - AWS_ACCESS_KEY_ID=$AWS_CHINA_ACCESS_KEY_ID - - AWS_SECRET_ACCESS_KEY=$AWS_CHINA_SECRET_ACCESS_KEY - - fi - - python /dewdrop/dewdrop-docker.py - -verify_reg_key_counts: - image: ${ARTIFACTORY_SERVER}/dockerhub-remote/python:3.7-alpine - stage: droplets - only: - variables: - - $VERIFY_REGKEY_COUNT == "true" - tags: - - docker-executor - script: - - pip install -r build/regkey-count-job/requirements.txt - - build/regkey-count-job/regkey-count-checker.py - -publish_to_github: - image: ${ARTIFACTORY_SERVER}/dockerhub-remote/node:14 - stage: release - only: - - /(^publish-(v\d*[1-9]*\.)(\d).(\d).(\d))/ - script: - # install jq - - apt-get update - - apt-get install -y jq - # Execute Release script to push source to github repo - - ./cloud-tools/release-tool/publish_github.sh "$ALLOWED_DIRS" "$ALLOWED_FILES" - variables: - ALLOWED_DIRS: "examples .github images" - ALLOWED_FILES: ".gitignore .gitattributes README.md" - GITLAB_API_URL: "$AWS_V2_URL" - GITHUB_API_TOKEN: "$AWS_V2_GITHUB_API_TOKEN" - GITLAB_PRIVATE_TOKEN: "$AWS_V2_GITLAB_API_TOKEN" - -# validate README file(s) only contain links that respond with 200 OK -run_link_checker_release: - image: ${ARTIFACTORY_SERVER}/dockerhub-remote/node:10 - stage: post-release-tests - tags: - - docker-executor - only: - # run only after release has been published - - /(^publish-(v\d*[1-9]*\.)(\d).(\d).(\d))/ - except: - refs: - - schedules - - triggers - - pipelines - variables: - - $RELEASE_RUNTIME_INIT_TESTS == "true" - script: - - make link_check_release - allow_failure: true - -# Check template version, then push the examples/ folder to S3 when a tag in the form of "aws-v1.1.0.0" is added to the main branch -publish_aws_modules_s3: - image: ${ARTIFACTORY_SERVER}/dockerhub-remote/python:3 - stage: publish - only: - - /(^publish-(v\d*[1-9]*\.)(\d).(\d).(\d))/ - script: - - curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt-get install -yq nodejs build-essential - - npm install -g npm - - apt-get install -y jq - - pip3 install yq awscli - - VERSION=$(echo ${CI_COMMIT_REF_NAME} | cut -c 9-) - - echo "Tag version:${VERSION}" - - TEMPLATE_VERSION=$(cat cloud-tools/parameter-parser/golden_parameters.yaml | yq -r .artifactLocation.Default | awk -F[/,] '{print $2}') - - echo "Template version:${TEMPLATE_VERSION}" - - if [[ ${VERSION} != ${TEMPLATE_VERSION} ]]; then exit 1; fi - - aws s3 cp --recursive --acl public-read examples s3://f5-cft-v2/f5-aws-cloudformation-v2/${VERSION}/examples --metadata-directive REPLACE - tags: - - cm-official-docker-executor - -# verifies all examples use the latest AT Components versions -# temporarily allowing failure due to bug with DO 1.29.0 -check_at_components_metadata: - stage: smoke-tests - image: ${ARTIFACTORY_SERVER}/dockerhub-remote/python:3 - except: - refs: - - schedules - - triggers - - pipelines - script: - - curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt-get install -yq nodejs build-essential - - apt-get install -y jq - - pip3 install yq - - if [[ ! -z ${RUNTIME_INIT_PACKAGE_URL} && ! $CI_COMMIT_BRANCH == "main" ]]; then ./cloud-tools/sync-at-components-metadata/sync_at_components_metadata.sh --config-directories examples/autoscale/bigip-configurations,examples/quickstart/bigip-configurations,examples/failover/bigip-configurations --template-directory examples --cloud aws --runtime-init-package-url $RUNTIME_INIT_PACKAGE_URL; fi - - if [[ -z $RUNTIME_INIT_PACKAGE_URL ]]; then ./cloud-tools/sync-at-components-metadata/sync_at_components_metadata.sh --config-directories examples/autoscale/bigip-configurations,examples/quickstart/bigip-configurations,examples/failover/bigip-configurations --template-directory examples --cloud aws; fi - - if git diff | grep 'diff --git'; then exit 1; else exit 0; fi - tags: - - cm-official-docker-executor - allow_failure: true - -# manually scheduled job to enable/disable daily scheduled test jobs -update_daily_test_schedules: - image: ${ARTIFACTORY_SERVER}/dockerhub-remote/node:8 - stage: admin - only: - variables: - - $UPDATE_SCHEDULES == "true" - script: - - apt-get update - - apt-get install -y jq - - ./cloud-tools/scheduler-tool/activate-schedule.sh - variables: - FILTER: "$FILTER" - GIT_LAB_API_URL: "$AWS_V2_URL" - GIT_LAB_PRIVATE_TOKEN: "$AWS_V2_GITLAB_API_TOKEN" - STATE: "$STATE" diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index fc7256d4..00000000 --- a/.gitmodules +++ /dev/null @@ -1,4 +0,0 @@ -[submodule "cloud-tools"] - path = cloud-tools - url = ../../automation-templates/cloud-tools.git - branch = develop diff --git a/Makefile b/Makefile deleted file mode 100644 index e3168d41..00000000 --- a/Makefile +++ /dev/null @@ -1,61 +0,0 @@ -# Cloud factory top-level Makefile - -CUR_DIR := $(cwd) -PROJECT_DIR := . -LINK_CHECK_DIR := cloud-tools/link_checker -POLICY_CHECK_DIR := cloud-tools/test-policy-parser -PARSER_DIR := cloud-tools/parameter-parser -SYNC_AT_DIR := cloud-tools/sync-at-components-metadata -DIFF_VAR :=`diff automated-test-scripts/parameters_diff_expected.yaml ${PARSER_DIR}/parameters_diff.yaml` -DIFF_VAR_OUTPUTS :=`diff automated-test-scripts/outputs_diff_expected.yaml ${PARSER_DIR}/outputs_diff.yaml` - - -.PHONY: help -help: - @echo "Check MakeFile" -link_check: - echo "Running link checker against all markdown files"; - cd ${LINK_CHECK_DIR} && npm install && cd ${CUR_DIR}; - ${LINK_CHECK_DIR}/link_checker.sh ${PROJECT_DIR} "cloud-tools node_modules archived automated-test-scripts" link_checker_config.json - -link_check_release: - echo "Running link checker against all markdown files"; - cd ${LINK_CHECK_DIR} && npm install && cd ${CUR_DIR}; - ${LINK_CHECK_DIR}/link_checker.sh ${PROJECT_DIR} "cloud-tools node_modules archived automated-test-scripts" link_checker_config_release.json - -test_policy_check: - echo "Running parameter checker against all test policy files"; - cd ${POLICY_CHECK_DIR} && pip install -r requirements.txt && cd ${CUR_DIR}; - python ${POLICY_CHECK_DIR}/test_policy_parser.py - -run_sync_at_metadata: - echo "Syncing AT component metadata" - cd ${SYNC_AT_DIR} && ./sync_at_components_metadata.sh --config-directories ../../examples/autoscale/bigip-configurations,../../examples/quickstart/bigip-configurations,../../examples/failover/bigip-configurations --template-directory ../../examples --runtime-init-package-url https://cdn.f5.com/product/cloudsolutions/f5-bigip-runtime-init/v2.0.1/dist/f5-bigip-runtime-init-2.0.1-1.gz.run --cloud aws - -run_parameter_generator: - echo "Generating v2 input parameters files" - cd ${PARSER_DIR} && pip install -r requirements.txt && python generate_parameters.py --cloud aws - -run_parameter_parser: run_parameter_generator - echo "Generating v2 parameter config file" - cd ${PARSER_DIR} && python parameter_parser.py --cloud aws - -run_compare_parameters: run_parameter_parser - echo "Comparing given outputs config file against golden parameters config file" - cd ${PARSER_DIR} && python compare_parameters.py -g golden_parameters.yaml -l 2 && echo '*********' && echo 'The following files have parameters that do not match what is in golden_parameters.yaml' && cat parameters_diff.yaml - -run_expected_diff: - # Need to run run_compare_parser before running expected diff or DIFF_VAR variable will not be correct - if [ -n ${DIFF_VAR} ]; then echo "Diff files for parmaters match!"; else echo "========================================"; echo "Diff files do not match: ${DIFF_VAR}"; exit 1; fi - -run_outputs_parser: - echo "Generating v2 parameter config file" - cd ${PARSER_DIR} && pip install -r requirements.txt && python parameter_parser.py --type outputs --output-file outputs_config.yaml --cloud aws - -run_compare_outputs: run_outputs_parser - echo "Comparing given outputs config file against golden outputs config file" - cd ${PARSER_DIR} && python compare_parameters.py -g golden_outputs.yaml --output-file outputs_diff.yaml --input-parameters-file outputs_config.yaml -l 2 && echo '*********' && echo 'The following files have outputs that do not match what is in golden_outputs.yaml' && cat outputs_diff.yaml - -run_expected_outputs_diff: - # Need to run run_compare_parser before running expected diff or DIFF_VAR variable will not be correct - if [ -n ${DIFF_VAR_OUTPUTS} ]; then echo "Diff files for outputs match!"; else echo "========================================"; echo "Diff files do not match: ${DIFF_VAR_OUTPUTS}"; exit 1; fi diff --git a/SUPPORT.md b/SUPPORT.md deleted file mode 100644 index 47f1fbda..00000000 --- a/SUPPORT.md +++ /dev/null @@ -1,12 +0,0 @@ -## Support Information - -- Due to the heavy customization requirements of external cloud resources and BIG-IP configurations in these solutions, F5 does not provide technical support for deploying, customizing, or troubleshooting the templates themselves. -- Issues found with the templates deployed as-is should be reported using a GitHub issue. -- The various underlying products and components used (for example: [F5 BIG-IP Virtual Edition](https://clouddocs.f5.com/cloud/public/v1/), [F5 BIG-IP Runtime Init](https://github.com/F5Networks/f5-bigip-runtime-init), [F5 Automation Toolchain](https://www.f5.com/pdf/products/automation-toolchain-overview.pdf) extensions, and [Cloud Failover Extension (CFE)](https://clouddocs.f5.com/products/extensions/f5-cloud-failover/latest/)) in the solutions located here are F5-supported and capable of being deployed with other orchestration tools. -- For help with authoring and support for custom CST2 templates, we recommend engaging F5 Professional Services (PS). - - -### Providing feedback on F5 cloud templates - -- Use the [Issues](https://github.com/F5Networks/f5-aws-cloudformation-v2/issues) link on the GitHub menu bar in this repository for items such as enhancement or feature requests, and non-urgent bug fixes. Tell us as much as you can about what you found and how you found it. -- Contact us at [solutionsfeedback@f5.com](mailto:solutionsfeedback@f5.com?subject=GitHub%20Feedback) for general feedback or enhancement requests. \ No newline at end of file diff --git a/automated-test-scripts/.gitattributes b/automated-test-scripts/.gitattributes deleted file mode 100644 index be212b4e..00000000 --- a/automated-test-scripts/.gitattributes +++ /dev/null @@ -1,14 +0,0 @@ -# Use lf for text files -* text eol=lf - -# Standard to msysgit -*.doc diff=astextplain -*.DOC diff=astextplain -*.docx diff=astextplain -*.DOCX diff=astextplain -*.dot diff=astextplain -*.DOT diff=astextplain -*.pdf diff=astextplain -*.PDF diff=astextplain -*.rtf diff=astextplain -*.RTF diff=astextplain diff --git a/automated-test-scripts/.gitignore b/automated-test-scripts/.gitignore deleted file mode 100644 index bc8a670e..00000000 --- a/automated-test-scripts/.gitignore +++ /dev/null @@ -1 +0,0 @@ -.idea/* \ No newline at end of file diff --git a/automated-test-scripts/Makefile b/automated-test-scripts/Makefile deleted file mode 100644 index 1a39acd8..00000000 --- a/automated-test-scripts/Makefile +++ /dev/null @@ -1,54 +0,0 @@ -#!make -current_dir := $(shell pwd) -# Create an environmental script and refernce it here (.gitignore set to ignore env.sh) -# example: export GOOGLE_PROJECT_ID=my_project_id -# option 1 all env variables refrenced in rules need be defined in env.sh -# option 2 have env vars set prior to running make rule -include env.sh -.PHONY: help -help: - @echo "Please use \`make ' where is one of" - @echo " 'aws_network_mod' using dewdrop docker image:stable, runs network module test defined in env varable AWS_TEMPLATE_TEST_URL/AWS_TEMPLATE_TEST_PARMS" - @echo " 'aws_autoscale2_payg' using dewdrop docker image:stable, runs autoscale test defined in env varable AWS_TEMPLATE_TEST_URL_API/AWS_TEMPLATE_TEST_PARAMS_API" - @echo " 'aws_quickstart_payg' using dewdrop docker image:stable, runs quickstart test defined in env varable AWS_TEMPLATE_TEST_URL_LB/AWS_TEMPLATE_TEST_PARAMS_LB" - -.PHONY: gce -env: - env -# AWS V2 -aws_failover_byol: - docker run -it -v ${current_dir}:/automated-test-scripts -v ${current_dir}/../examples:/examples -e SSH_KEY="${DEWPT_PRIVATE_KEY}" -e AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID}" -e AWS_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY}" -e STACK_TYPE="${STACK_TYPE}" -e TEMPLATE_URL="${AWS_TEMPLATE_TEST_URL_FAILOVER_BYOL}" -e TEMPLATE_PARAMETERS="${AWS_TEMPLATE_TEST_PARAMS_FAILOVER_BYOL}" artifactory.f5net.com/ecosystems-cloudsolutions-docker-dev/dewdrop:stable -aws_failover_payg: - docker run -it -v ${current_dir}:/automated-test-scripts -v ${current_dir}/../examples:/examples -e SSH_KEY="${DEWPT_PRIVATE_KEY}" -e AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID}" -e AWS_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY}" -e STACK_TYPE="${STACK_TYPE}" -e TEMPLATE_URL="${AWS_TEMPLATE_TEST_URL_FAILOVER_PAYG}" -e TEMPLATE_PARAMETERS="${AWS_TEMPLATE_TEST_PARAMS_FAILOVER_PAYG}" artifactory.f5net.com/ecosystems-cloudsolutions-docker-dev/dewdrop:stable -aws_failover_existing_payg: - docker run -it -v ${current_dir}:/automated-test-scripts -v ${current_dir}/../examples:/examples -e SSH_KEY="${DEWPT_PRIVATE_KEY}" -e AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID}" -e AWS_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY}" -e STACK_TYPE="${STACK_TYPE}" -e TEMPLATE_URL="${AWS_TEMPLATE_TEST_URL_FAILOVER_EXISTING_PAYG}" -e TEMPLATE_PARAMETERS="${AWS_TEMPLATE_TEST_PARAMS_FAILOVER_EXISTING_PAYG}" artifactory.f5net.com/ecosystems-cloudsolutions-docker-dev/dewdrop:stable -aws_autoscale2_bigiq: - docker run -it -v ${current_dir}:/automated-test-scripts -v ${current_dir}/../examples:/examples -e SSH_KEY="${DEWPT_PRIVATE_KEY}" -e AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID}" -e AWS_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY}" -e STACK_TYPE="${STACK_TYPE}" -e TEMPLATE_URL="${AWS_TEMPLATE_TEST_URL_AUTOSCALE_V2_BIGIQ}" -e TEMPLATE_PARAMETERS="${AWS_TEMPLATE_TEST_PARAMS_AUTOSCALE_V2_BIGIQ}" artifactory.f5net.com/ecosystems-cloudsolutions-docker-dev/dewdrop:stable -aws_autoscale2_payg: - docker run -it -v ${current_dir}:/automated-test-scripts -v ${current_dir}/../examples:/examples -e SSH_KEY="${DEWPT_PRIVATE_KEY}" -e AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID}" -e AWS_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY}" -e STACK_TYPE="${STACK_TYPE}" -e TEMPLATE_URL="${AWS_TEMPLATE_TEST_URL_AUTOSCALE_V2_PAYG}" -e TEMPLATE_PARAMETERS="${AWS_TEMPLATE_TEST_PARAMS_AUTOSCALE_V2_PAYG}" artifactory.f5net.com/ecosystems-cloudsolutions-docker-dev/dewdrop:stable -aws_network_mod: - docker run -it -v ${current_dir}:/automated-test-scripts -v ${current_dir}/../examples:/examples -e SSH_KEY="${DEWPT_PRIVATE_KEY}" -e AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID}" -e AWS_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY}" -e STACK_TYPE="${STACK_TYPE}" -e TEMPLATE_URL="${AWS_TEMPLATE_TEST_URL_NETWORK_MOD}" -e TEMPLATE_PARAMETERS="${AWS_TEMPLATE_TEST_PARAMS_NETWORK_MOD}" artifactory.f5net.com/ecosystems-cloudsolutions-docker-dev/dewdrop:stable -aws_function_mod: - docker run -it -v ${current_dir}:/automated-test-scripts -v ${current_dir}/../examples:/examples -e SSH_KEY="${DEWPT_PRIVATE_KEY}" -e AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID}" -e AWS_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY}" -e STACK_TYPE="${STACK_TYPE}" -e TEMPLATE_URL="${AWS_TEMPLATE_TEST_URL_FUNCTION_MOD}" -e TEMPLATE_PARAMETERS="${AWS_TEMPLATE_TEST_PARAMS_FUNCTION_MOD}" artifactory.f5net.com/ecosystems-cloudsolutions-docker-dev/dewdrop:stable -aws_dag_mod: - docker run -it -v ${current_dir}:/automated-test-scripts -v ${current_dir}/../examples:/examples -e SSH_KEY="${DEWPT_PRIVATE_KEY}" -e AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID}" -e AWS_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY}" -e STACK_TYPE="${STACK_TYPE}" -e TEMPLATE_URL="${AWS_TEMPLATE_TEST_URL_DAG_MOD}" -e TEMPLATE_PARAMETERS="${AWS_TEMPLATE_TEST_PARAMS_DAG_MOD}" artifactory.f5net.com/ecosystems-cloudsolutions-docker-dev/dewdrop:stable -aws_quickstart_payg: - docker run -it -v ${current_dir}:/automated-test-scripts -v ${current_dir}/../examples:/examples -e SSH_KEY="${DEWPT_PRIVATE_KEY}" -e AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID}" -e AWS_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY}" -e STACK_TYPE="${STACK_TYPE}" -e TEMPLATE_URL="${AWS_TEMPLATE_TEST_URL_QUICKSTART_PAYG}" -e TEMPLATE_PARAMETERS="${AWS_TEMPLATE_TEST_PARAMS_QUICKSTART_PAYG}" artifactory.f5net.com/ecosystems-cloudsolutions-docker-dev/dewdrop:stable -aws_quickstart_byol: - docker run -it -v ${current_dir}:/automated-test-scripts -v ${current_dir}/../examples:/examples -e SSH_KEY="${DEWPT_PRIVATE_KEY}" -e AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID}" -e AWS_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY}" -e STACK_TYPE="${STACK_TYPE}" -e TEMPLATE_URL="${AWS_TEMPLATE_TEST_URL_QUICKSTART_BYOL}" -e TEMPLATE_PARAMETERS="${AWS_TEMPLATE_TEST_PARAMS_QUICKSTART_BYOL}" artifactory.f5net.com/ecosystems-cloudsolutions-docker-dev/dewdrop:stable -aws_bigip_standalone_mod: - docker run -it -v ${current_dir}:/automated-test-scripts -v ${current_dir}/../examples:/examples -e SSH_KEY="${DEWPT_PRIVATE_KEY}" -e AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID}" -e AWS_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY}" -e STACK_TYPE="${STACK_TYPE}" -e TEMPLATE_URL="${AWS_TEMPLATE_TEST_URL_BIGIP_STANDALONE}" -e TEMPLATE_PARAMETERS="${AWS_TEMPLATE_TEST_PARAMS_BIGIP_STANDALONE}" artifactory.f5net.com/ecosystems-cloudsolutions-docker-dev/dewdrop:stable -aws_bigip_autoscale_mod: - docker run -it -v ${current_dir}:/automated-test-scripts -v ${current_dir}/../examples:/examples -e SSH_KEY="${DEWPT_PRIVATE_KEY}" -e AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID}" -e AWS_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY}" -e STACK_TYPE="${STACK_TYPE}" -e TEMPLATE_URL="${AWS_TEMPLATE_TEST_URL_BIGIP_AUTOSCALE}" -e TEMPLATE_PARAMETERS="${AWS_TEMPLATE_TEST_PARAMS_BIGIP_AUTOSCALE}" artifactory.f5net.com/ecosystems-cloudsolutions-docker-dev/dewdrop:stable -aws_application_mod: - docker run -it -v ${current_dir}:/automated-test-scripts -v ${current_dir}/../examples:/examples -e SSH_KEY="${DEWPT_PRIVATE_KEY}" -e AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID}" -e AWS_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY}" -e STACK_TYPE="${STACK_TYPE}" -e TEMPLATE_URL="${AWS_TEMPLATE_TEST_URL_APPLICATION_MOD}" -e TEMPLATE_PARAMETERS="${AWS_TEMPLATE_TEST_PARAMS_APPLICATION_MOD}" artifactory.f5net.com/ecosystems-cloudsolutions-docker-dev/dewdrop:stable -aws_application_mod_autoscale: - docker run -it -v ${current_dir}:/automated-test-scripts -v ${current_dir}/../examples:/examples -e SSH_KEY="${DEWPT_PRIVATE_KEY}" -e AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID}" -e AWS_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY}" -e STACK_TYPE="${STACK_TYPE}" -e TEMPLATE_URL="${AWS_TEMPLATE_TEST_URL_APPLICATION_MOD}" -e TEMPLATE_PARAMETERS="${AWS_TEMPLATE_TEST_PARAMS_APPLICATION_MOD_AUTOSCALE}" artifactory.f5net.com/ecosystems-cloudsolutions-docker-dev/dewdrop:stable -aws_access_mod: - docker run -it -v ${current_dir}:/automated-test-scripts -v ${current_dir}/../examples:/examples -e SSH_KEY="${DEWPT_PRIVATE_KEY}" -e AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID}" -e AWS_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY}" -e STACK_TYPE="${STACK_TYPE}" -e TEMPLATE_URL="${AWS_TEMPLATE_TEST_URL_ACCESS}" -e TEMPLATE_PARAMETERS="${AWS_TEMPLATE_TEST_PARAMS_ACCESS}" artifactory.f5net.com/ecosystems-cloudsolutions-docker-dev/dewdrop:stable -aws_bastion_mod: - docker run -it -v ${current_dir}:/automated-test-scripts -v ${current_dir}/../examples:/examples -e SSH_KEY="${DEWPT_PRIVATE_KEY}" -e AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID}" -e AWS_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY}" -e STACK_TYPE="${STACK_TYPE}" -e TEMPLATE_URL="${AWS_TEMPLATE_TEST_URL_BASTION_MOD}" -e TEMPLATE_PARAMETERS="${AWS_TEMPLATE_TEST_PARAMS_BASTION_MOD}" artifactory.f5net.com/ecosystems-cloudsolutions-docker-dev/dewdrop:stable -aws_quickstart_existing_payg: - docker run -it -v ${current_dir}:/automated-test-scripts -v ${current_dir}/../examples:/examples -e SSH_KEY="${DEWPT_PRIVATE_KEY}" -e AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID}" -e AWS_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY}" -e STACK_TYPE="${STACK_TYPE}" -e TEMPLATE_URL="${AWS_TEMPLATE_TEST_URL_QUICKSTART_EXISTING_PAYG}" -e TEMPLATE_PARAMETERS="${AWS_TEMPLATE_TEST_PARAMS_QUICKSTART_EXISTING_PAYG}" artifactory.f5net.com/ecosystems-cloudsolutions-docker-dev/dewdrop:stable -aws_quickstart_existing_byol: - docker run -it -v ${current_dir}:/automated-test-scripts -v ${current_dir}/../examples:/examples -e SSH_KEY="${DEWPT_PRIVATE_KEY}" -e AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID}" -e AWS_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY}" -e STACK_TYPE="${STACK_TYPE}" -e TEMPLATE_URL="${AWS_TEMPLATE_TEST_URL_QUICKSTART_EXISTING_BYOL}" -e TEMPLATE_PARAMETERS="${AWS_TEMPLATE_TEST_PARAMS_QUICKSTART_EXISTING_BYOL}" artifactory.f5net.com/ecosystems-cloudsolutions-docker-dev/dewdrop:stable diff --git a/automated-test-scripts/data/f5-aws-cloudformation-v2/bigiq/parameters.yaml b/automated-test-scripts/data/f5-aws-cloudformation-v2/bigiq/parameters.yaml deleted file mode 100644 index d1f60ef0..00000000 --- a/automated-test-scripts/data/f5-aws-cloudformation-v2/bigiq/parameters.yaml +++ /dev/null @@ -1,29 +0,0 @@ ---- -AUTOFILL BIGIQ LICENSE KEY: null -AUTOFILL CLPV2 LICENSE KEY: null -BIGIQ LICENSE POOL: production -BIGIQ LICENSE S3 ARN: 'arn:aws:s3:::bigiqtest/bigiq.txt' -BIGIQ PASSWORD: b1gAdminPazz -LICENSE TYPE: bigiq -NTP SERVER: 0.us.pool.ntp.org -PROVISION PUBLIC IP: 'true' -REGION: us-east-1 -S3 BUCKET: '' -SCHEDULED BIGIQ: true -SSH KEY: dewpt -STACK NAME: dewdrop-bigiq- -STACK TYPE: existing-stack -TEMPLATE NAME: bigiq-autoscale -TEMPLATE URL: 'file://$PWD/examples/autoscale/bigiq/autoscale.yaml' -TIMEZONE: US/Pacific -UNIQUESTRING: q -# Network Module Parameters -CIDR: 10.0.0.0/16 -NETWORK STACK NAME: dewdrop-- -NETWORK TEMPLATE NAME: network -NETWORK TEMPLATE URL: 'file://$PWD/examples/modules/network/network.yaml' -NUMBER AZS: 2 -NUMBER SUBNETS: 3 -SUBNET1 PUBLIC: 'false' -SUBNETMASK: 24 -TENANCY: default diff --git a/automated-test-scripts/data/f5-aws-cloudformation-v2/bigiq/test_policy.yaml b/automated-test-scripts/data/f5-aws-cloudformation-v2/bigiq/test_policy.yaml deleted file mode 100644 index 49382fbc..00000000 --- a/automated-test-scripts/data/f5-aws-cloudformation-v2/bigiq/test_policy.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -# BIG-IQ shared setup -aws-bigiq-example: - test-url: "file://automated-test-scripts/f5-aws-cloudformation-v2/bigiq/daily_test.yaml" - run: "all" - parameters-files: - - "automated-test-scripts/data/f5-aws-cloudformation-v2/bigiq/parameters.yaml" diff --git a/automated-test-scripts/data/f5-aws-cloudformation-v2/examples/autoscale/bigiq/existing/demo.yaml b/automated-test-scripts/data/f5-aws-cloudformation-v2/examples/autoscale/bigiq/existing/demo.yaml deleted file mode 100644 index 3eeacc78..00000000 --- a/automated-test-scripts/data/f5-aws-cloudformation-v2/examples/autoscale/bigiq/existing/demo.yaml +++ /dev/null @@ -1,63 +0,0 @@ ---- -ACCESS: 0.0.0.0/0 -APP SCALE MAX SIZE: 2 -APP SCALE MIN SIZE: 1 -BASTION SCALE MAX SIZE: 2 -BASTION SCALE MIN SIZE: 1 -BIGIP IMAGE: '*17.1.1-0.2.6**BYOL-All Modules 2Boot*' -BIGIP INSTANCE TYPE: m5.2xlarge -BIGIP MGMT PORT: 8443 -BIGIQ LICENSE POOL: production -BIGIQ LICENSE S3 ARN: 'arn:aws:s3:::bigiqtest/bigiq.txt' -BIGIQ PASSWORD: b1gAdminPazz -CLOUDWATCH LOG GROUP NAME: f5telemetry -CLOUDWATCH LOG STREAM NAME: f5-waf-logs -CLOUDWATCH DASHBOARD NAME: F5-BIGIP-WAF-View -CREATE LOG DESTINATION: 'true' -CREATE NEW KEY PAIR: 'true' -CUSTOM IMAGE ID: '' -HIGH CPU THRESHOLD: 80 -LICENSE TYPE: bigiq -LOW CPU THRESHOLD: 0 -METRIC NAME SPACE: dd- -NIC COUNT: 1 -NOTIFICATION EMAIL: dewpoint@f5.com -NTP SERVER: 0.us.pool.ntp.org -PRIVATE IP TYPE: STATIC -PROVISION EXAMPLE APP: 'false' -PROVISION EXTERNAL LB: 'true' -PROVISION INTERNAL LB: 'false' -PROVISION PUBLIC IP: 'true' -PUBLIC IP: 'true' -REGION: us-west-1 -RUNTIME INIT CONFIG: https://.s3..amazonaws.com/examples/autoscale/bigip-configurations/.yaml -S3 BUCKET: '' -SCHEDULED BIGIQ: false -SCALE DOWN BYTES THRESHOLD: 35000 -SCALE MAX SIZE: 3 -SCALE MIN SIZE: 1 -SCALE UP BYTES THRESHOLD: 35000 -SECRET VALUE: b1gAdminPazz -SNS EVENTS: 'autoscaling:EC2_INSTANCE_LAUNCH,autoscaling:EC2_INSTANCE_LAUNCH_ERROR' -SOLUTION TYPE: autoscale -SSH KEY: dewpt -STACK NAME: dewdrop-