Skip to content

Commit 2485e53

Browse files
Merge branch 'R1.10' into 'master'
Release 1.10.0 See merge request automation-sdk/f5-cloud-failover!287
2 parents 69919ba + 005de84 commit 2485e53

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+6614
-12040
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,6 @@ deployment_info.json
3838
**/.DS_Store
3939
.idea/*
4040
temp_*
41-
sdk/dist/*
41+
sdk/dist/*
42+
env.sh
43+
test/test/*

.gitlab-ci.yml

Lines changed: 62 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ variables:
4747
# topology var
4848
CF_ENV_NETWORK_TOPOLOGY: 'same_network'
4949
CF_ENV_NIC_COUNT: 3
50+
CF_ENV_USE_FORWARDING_RULE: 'true'
5051

5152

5253
# check for disallowed content within any file in source control, this
@@ -70,6 +71,10 @@ check_content:
7071
build_package:
7172
image: ${ARTIFACTORY_SERVER}/dockerhub-remote/f5devcentral/containthedocs:rpmbuild
7273
stage: build_package
74+
except:
75+
variables:
76+
- $CI_COMMIT_REF_NAME == "docs_production"
77+
- $CI_COMMIT_REF_NAME == "docs_staging"
7378
script:
7479
- echo 'CI BUILD'
7580
# install packages: jq
@@ -89,6 +94,10 @@ build_package:
8994
test_node4:
9095
stage: test
9196
image: ${ARTIFACTORY_SERVER}/dockerhub-remote/node:4
97+
except:
98+
variables:
99+
- $CI_COMMIT_REF_NAME == "docs_production"
100+
- $CI_COMMIT_REF_NAME == "docs_staging"
92101
script:
93102
- npm install --global [email protected]
94103
- npm install [email protected]
@@ -101,6 +110,11 @@ test_node4:
101110
# test package
102111
test_package:
103112
stage: test
113+
image: ${ARTIFACTORY_SERVER}/dockerhub-remote/node:11
114+
except:
115+
variables:
116+
- $CI_COMMIT_REF_NAME == "docs_production"
117+
- $CI_COMMIT_REF_NAME == "docs_staging"
104118
script:
105119
- apt-get update && apt-get install -y jq && npm install
106120
# linter
@@ -113,6 +127,10 @@ test_package:
113127
# audit packages for vulnerabilities
114128
test_audit:
115129
stage: test
130+
except:
131+
variables:
132+
- $CI_COMMIT_REF_NAME == "docs_production"
133+
- $CI_COMMIT_REF_NAME == "docs_staging"
116134
script:
117135
# npm audit - uses custom audit processor wrapper
118136
- npm install
@@ -128,6 +146,10 @@ test_audit:
128146
# job must be called coverage
129147
coverage:
130148
stage: test
149+
except:
150+
variables:
151+
- $CI_COMMIT_REF_NAME == "docs_production"
152+
- $CI_COMMIT_REF_NAME == "docs_staging"
131153
script:
132154
- apt-get update && apt-get install -y jq && npm install
133155
# unit tests + coverage report
@@ -150,7 +172,7 @@ coverage:
150172
max: 1
151173
script:
152174
# deploy environment - required artifacts will be place in output folder
153-
- /deployment-tool/deploy.sh --deployment-plan ${CF_ENV_CLOUD} --action create --output-folder env_metadata/${CF_ENV_CLOUD}_${CF_ENV_NETWORK_TOPOLOGY}_${CF_ENV_NIC_COUNT}_${CF_ENV_REGION} --deployment-vars region:\"${CF_ENV_REGION}\"
175+
- /deployment-tool/deploy.sh --deployment-plan ${CF_ENV_CLOUD} --action create --output-folder env_metadata/${CF_ENV_CLOUD}_${CF_ENV_NETWORK_TOPOLOGY}_${CF_ENV_NIC_COUNT}_${CF_ENV_REGION} --deployment-vars region:\"${CF_ENV_REGION}\" --skip-requirements "true"
154176
tags:
155177
- cm-official-docker-executor
156178
only:
@@ -272,6 +294,16 @@ test_functional_init_gcp:
272294
variables:
273295
- $TESTS_TIER == "2"
274296

297+
# init functional tests: gcp no forwarding
298+
test_functional_init_gcp_no_forwarding:
299+
<<: *test_functional_init_generic
300+
variables:
301+
CF_ENV_CLOUD: "gcp"
302+
CF_ENV_REGION: "us-west1"
303+
CF_ENV_USE_FORWARDING_RULE: 'false'
304+
except:
305+
variables:
306+
- $TESTS_TIER == "2"
275307
# Functional Tests - Execute phase (with no retries)
276308
.test_functional_execute_generic: &test_functional_execute_generic
277309
stage: test_functional_execute
@@ -281,7 +313,7 @@ test_functional_init_gcp:
281313
- apt-get update
282314
- apt-get install -y jq
283315
# install node (and package dependencies)
284-
- curl -sL https://deb.nodesource.com/setup_10.x | bash - && apt-get -y install nodejs
316+
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt-get -y install nodejs
285317
- npm install
286318
# copying artifacts inherited from functional_test_init target to root directory
287319
- cp -a env_metadata/${CF_ENV_CLOUD}_${CF_ENV_NETWORK_TOPOLOGY}_${CF_ENV_NIC_COUNT}_${CF_ENV_REGION}/. .
@@ -422,7 +454,7 @@ test_functional_execute_aws_1nic:
422454
- $TESTS_TIER == "1"
423455
- $CI_COMMIT_MESSAGE =~ /smart:run_functional_tests/
424456

425-
# run functional tests: gcp
457+
# run functional tests: gcp with forwarding rule
426458
test_functional_execute_gcp:
427459
<<: *test_functional_execute_generic
428460
variables:
@@ -435,6 +467,19 @@ test_functional_execute_gcp:
435467
variables:
436468
- $TESTS_TIER == "2"
437469

470+
# run functional tests: gcp without forwarding rules
471+
test_functional_execute_gcp_no_forwarding_rule:
472+
<<: *test_functional_execute_generic
473+
variables:
474+
CF_ENV_CLOUD: "gcp"
475+
CF_ENV_REGION: "us-west1"
476+
dependencies:
477+
- test_functional_init_gcp_no_forwarding
478+
- build_package
479+
except:
480+
variables:
481+
- $TESTS_TIER == "2"
482+
438483
# Functional Tests - Cleanup phase (executes always with 1 retry in a case of any failures)
439484
.test_functional_cleanup_generic: &test_functional_cleanup_generic
440485
stage: test_functional_cleanup
@@ -446,7 +491,7 @@ test_functional_execute_gcp:
446491
# copying artifacts inherited from functional_test_init target to root directory
447492
- cp -a env_metadata/${CF_ENV_CLOUD}_${CF_ENV_NETWORK_TOPOLOGY}_${CF_ENV_NIC_COUNT}_${CF_ENV_REGION}/. .
448493
# teardown environment
449-
- /deployment-tool/deploy.sh --deployment-plan ${CF_ENV_CLOUD} --action delete --deployment-vars region:\"${CF_ENV_REGION}\"
494+
- /deployment-tool/deploy.sh --deployment-plan ${CF_ENV_CLOUD} --action delete --deployment-vars region:\"${CF_ENV_REGION}\" --skip-requirements "true"
450495
tags:
451496
- cm-official-docker-executor
452497
only:
@@ -578,6 +623,19 @@ test_functional_cleanup_gcp:
578623
variables:
579624
- $TESTS_TIER == "2"
580625

626+
# run functional tests: gcp no forwarding rule
627+
test_functional_cleanup_gcp_no_forwarding_rule:
628+
<<: *test_functional_cleanup_generic
629+
variables:
630+
CF_ENV_CLOUD: "gcp"
631+
CF_ENV_REGION: "us-west1"
632+
CF_ENV_USE_FORWARDING_RULE: 'false'
633+
dependencies:
634+
- test_functional_init_gcp_no_forwarding
635+
except:
636+
variables:
637+
- $TESTS_TIER == "2"
638+
581639
### End of Functional Tests
582640

583641
build_api_docs:

docs/revision-history.rst

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,17 @@ Document Revision History
1111
- Description
1212
- Date
1313

14+
* - 2.2.2
15+
- Updated the documentation for Cloud Failover Extension with the following changes: |br| • Updated a note in :ref:`gcp-iam`.
16+
- 11-10-21
17+
18+
* - 2.2.1
19+
- Updated the documentation for Cloud Failover Extension with the following changes: |br| • Updated :ref:`configure` to include version notices, more descriptions, and information on configuration :ref:`config-validation`. |br| • Updated the example declarations for :ref:`aws`, :ref:`aws-same-az`, :ref:`gcp`, and :ref:`azure`. |br| • Updated sections for defining your network infrastructure objects on all clouds. |br| • Updated the :ref:`faq`. |br| • Updated :ref:`troubleshooting`.
20+
- 07-29-21
21+
1422
* - 2.2
15-
- Updated the documentation for Cloud Failover Extension v1.9.0 with the following changes: |br| • Added clarifying notes to :ref:`aws` and :ref:'aws-same-az' concerning primary IPs and their associated EIPs. |br| • Added section :ref:`aws-custom-cert` to :ref:`aws` and :ref:`aws-same-az`. |br| • Updated the :ref:`faq`.
16-
- 06-24-21
23+
- Updated the documentation for Cloud Failover Extension v1.9.0 with the following changes: |br| • Added clarifying notes to :ref:`aws` and :ref:`aws-same-az` concerning primary IPs and their associated EIPs. |br| • Added section :ref:`aws-custom-cert` to :ref:`aws` and :ref:`aws-same-az`. |br| • Updated the :ref:`faq`.
24+
- 07-01-21
1725

1826
* - 2.1
1927
- Updated the documentation for Cloud Failover Extension v1.8.0 with the following changes: |br| • Added :ref:`azure-iso-env` to :ref:`isolated-env`.
@@ -24,7 +32,7 @@ Document Revision History
2432
- 01-14-21
2533

2634
* - 1.9
27-
- Updated the documentation for Cloud Failover Extension v1.6.0 with the following changes: |br| • Created a separate section for :ref:`aws-same-az`. Continue using the :ref:`aws` section for across availability zones. |br| • Updated AWS diagrams. |br| • Added an :ref:`azure-as3-example`. |br| • Added more information to the :ref:`performance-sizing` section. |br| • Added more example declarations. |br| • Updated the :ref:`azure-udrtagging` section.
35+
- Updated the documentation for Cloud Failover Extension v1.6.0 with the following changes: |br| • Created a separate section for :ref:`aws-same-az`. Continue using the :ref:`aws` section for across availability zones. |br| • Updated AWS diagrams. |br| • Added an :ref:`azure-as3-example`. |br| • Added more information to the :ref:`performance-sizing` section. |br| • Added more example declarations. |br| • Updated the :ref:`azure-define-routes` section.
2836
- 10-15-20
2937

3038
* - 1.8
@@ -52,7 +60,7 @@ Document Revision History
5260
- 04-16-20
5361

5462
* - 1.2
55-
- Updated the documentation for Cloud Failover Extension v1.1.0 with the following changes: |br| • Updated page layout for all clouds to include a task summary. |br| • Added information about tagging GCP routes (see :ref:`gcp-tag-routes`). |br| • Updated ARM template link for :ref:`azure`. |br| • Updated the failover event diagrams for all clouds. |br| • Added a section explaining the :ref:`declaration-components`. |br| • Updated the :ref:`faq`.
63+
- Updated the documentation for Cloud Failover Extension v1.1.0 with the following changes: |br| • Updated page layout for all clouds to include a task summary. |br| • Added information about tagging GCP routes (see :ref:`gcp-define-routes`). |br| • Updated ARM template link for :ref:`azure`. |br| • Updated the failover event diagrams for all clouds. |br| • Added a section explaining the :ref:`declaration-components`. |br| • Updated the :ref:`faq`.
5664
- 03-05-20
5765

5866
* - 1.1

0 commit comments

Comments
 (0)