Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
barry cho
Rancher
Commits
68bb06e5
Commit
68bb06e5
authored
3 years ago
by
Caleb Warren
Browse files
Options
Download
Email Patches
Plain Diff
airgap HA automation
parent
50fc32f5
snyk-fix-0564176c790784e319dbf499a8a4b2b8
cfbd0d3
release/v2.6
revert-35793-temporarily-disable-fossa
Tags unavailable
No related merge requests found
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
tests/validation/lib/aws.py
+21
-0
tests/validation/lib/aws.py
tests/validation/tests/v3_api/resource/airgap/config_yamls/config_body.yaml
+6
-0
...ests/v3_api/resource/airgap/config_yamls/config_body.yaml
tests/validation/tests/v3_api/resource/airgap/config_yamls/config_end.yaml
+7
-0
...tests/v3_api/resource/airgap/config_yamls/config_end.yaml
tests/validation/tests/v3_api/scripts/configure.sh
+1
-1
tests/validation/tests/v3_api/scripts/configure.sh
tests/validation/tests/v3_api/test_airgap_ha.py
+516
-0
tests/validation/tests/v3_api/test_airgap_ha.py
with
551 additions
and
1 deletion
+551
-1
tests/validation/lib/aws.py
+
21
-
0
View file @
68bb06e5
...
...
@@ -491,6 +491,27 @@ class AmazonWebServices(CloudProviderBase):
}]
}
)
def
upsert_route_53_record_a
(
self
,
record_name
,
record_value
,
action
=
'UPSERT'
,
record_type
=
'A'
,
record_ttl
=
300
):
return
self
.
_route53_client
.
change_resource_record_sets
(
HostedZoneId
=
AWS_HOSTED_ZONE_ID
,
ChangeBatch
=
{
'Comment'
:
'Record created or updated for automation'
,
'Changes'
:
[{
'Action'
:
action
,
'ResourceRecordSet'
:
{
'Name'
:
record_name
,
'Type'
:
record_type
,
'TTL'
:
record_ttl
,
'ResourceRecords'
:
[{
'Value'
:
record_value
}]
}
}]
}
)
def
delete_route_53_record
(
self
,
record_name
):
record
=
None
...
...
This diff is collapsed.
Click to expand it.
tests/validation/tests/v3_api/resource/airgap/config_yamls/config_body.yaml
0 → 100644
+
6
-
0
View file @
68bb06e5
user
:
ubuntu
role
:
-
controlplane
-
etcd
-
worker
ssh_key_path
:
/home/ubuntu/jenkins-rke-validation.pem
\ No newline at end of file
This diff is collapsed.
Click to expand it.
tests/validation/tests/v3_api/resource/airgap/config_yamls/config_end.yaml
0 → 100644
+
7
-
0
View file @
68bb06e5
snapshot
:
true
creation
:
6h
retention
:
24h
private_registries
:
-
url
:
{}
is_default
:
true
\ No newline at end of file
This diff is collapsed.
Click to expand it.
tests/validation/tests/v3_api/scripts/configure.sh
+
1
-
1
View file @
68bb06e5
...
...
@@ -5,7 +5,7 @@ set -eu
DEBUG
=
"
${
DEBUG
:-
false
}
"
env
| egrep
'^(ARM_|CATTLE_|ADMIN|USER|DO|RANCHER_|AWS_|DEBUG|LOGLEVEL|DEFAULT_|OS_|DOCKER_|CLOUD_|KUBE|BUILD_NUMBER|AZURE).*\=.+'
|
sort
>
.env
env
| egrep
'^(ARM_|CATTLE_|ADMIN|USER|DO|RANCHER_|AWS_|DEBUG|LOGLEVEL|DEFAULT_|OS_|DOCKER_|CLOUD_|KUBE|BUILD_NUMBER|
RKE_|
AZURE).*\=.+'
|
sort
>
.env
if
[
"false"
!=
"
${
DEBUG
}
"
]
;
then
cat
.env
...
...
This diff is collapsed.
Click to expand it.
tests/validation/tests/v3_api/test_airgap_ha.py
0 → 100644
+
516
-
0
View file @
68bb06e5
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help