-
Notifications
You must be signed in to change notification settings - Fork 341
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rds_cluster: split up the test target
Split up the test target to avoid the parallel execution.
- Loading branch information
Showing
27 changed files
with
283 additions
and
78 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
tests/integration/targets/rds_cluster/roles/rds_cluster/meta/main.yml
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
tests/integration/targets/rds_cluster/roles/rds_cluster/tasks/main.yml
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
tests/integration/targets/rds_cluster/roles/rds_cluster/vars/main.yml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
3 changes: 1 addition & 2 deletions
3
...s/integration/targets/rds_cluster/aliases → ...ration/targets/rds_cluster_create/aliases
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
time=10m | ||
|
||
cloud/aws | ||
|
||
rds_cluster | ||
rds_cluster_info |
File renamed without changes.
8 changes: 7 additions & 1 deletion
8
...r/roles/rds_cluster/tasks/test_create.yml → ...argets/rds_cluster_create/tasks/main.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
time=10m | ||
cloud/aws | ||
rds_cluster | ||
rds_cluster_info |
37 changes: 37 additions & 0 deletions
37
tests/integration/targets/rds_cluster_create_sgs/defaults/main.yml
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# defaults file for rds_cluster | ||
|
||
# Create cluster | ||
cluster_id: ansible-test-{{ inventory_hostname | replace('_','-') }}{{ tiny_prefix | ||
}} | ||
username: testrdsusername | ||
password: test-rds_password | ||
engine: aurora | ||
port: 3306 | ||
tags_create: | ||
Name: ansible-test-cluster-{{ tiny_prefix }} | ||
Created_By: Ansible_rds_cluster_integration_test | ||
|
||
# Modify cluster | ||
new_cluster_id: ansible-test-cluster-{{ tiny_prefix }}-new | ||
new_port: 1155 | ||
new_password: test-rds_password-new | ||
new_db_parameter_group_name: ansible-test-db-parameter-group-{{ tiny_prefix }}-new | ||
|
||
# Tag cluster | ||
tags_patch: | ||
Name: '{{ tiny_prefix }}-new' | ||
Created_by: Ansible rds_cluster integration tests | ||
|
||
# Create cluster in a VPC | ||
vpc_name: ansible-test-vpc-{{ tiny_prefix }} | ||
vpc_cidr: 10.{{ 256 | random(seed=tiny_prefix) }}.0.0/16 | ||
subnets: | ||
- {cidr: '10.{{ 256 | random(seed=tiny_prefix) }}.1.0/24', zone: '{{ aws_region }}a'} | ||
- {cidr: '10.{{ 256 | random(seed=tiny_prefix) }}.2.0/24', zone: '{{ aws_region }}b'} | ||
- {cidr: '10.{{ 256 | random(seed=tiny_prefix) }}.3.0/24', zone: '{{ aws_region }}c'} | ||
- {cidr: '10.{{ 256 | random(seed=tiny_prefix) }}.4.0/24', zone: '{{ aws_region }}d'} | ||
|
||
security_groups: | ||
- '{{ tiny_prefix }}-sg-1' | ||
- '{{ tiny_prefix }}-sg-2' | ||
- '{{ tiny_prefix }}-sg-3' |
8 changes: 7 additions & 1 deletion
8
...les/rds_cluster/tasks/test_create_sgs.yml → ...ts/rds_cluster_create_sgs/tasks/main.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
time=10m | ||
cloud/aws | ||
rds_cluster | ||
rds_cluster_info |
37 changes: 37 additions & 0 deletions
37
tests/integration/targets/rds_cluster_modify/defaults/main.yml
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# defaults file for rds_cluster | ||
|
||
# Create cluster | ||
cluster_id: ansible-test-{{ inventory_hostname | replace('_','-') }}{{ tiny_prefix | ||
}} | ||
username: testrdsusername | ||
password: test-rds_password | ||
engine: aurora | ||
port: 3306 | ||
tags_create: | ||
Name: ansible-test-cluster-{{ tiny_prefix }} | ||
Created_By: Ansible_rds_cluster_integration_test | ||
|
||
# Modify cluster | ||
new_cluster_id: ansible-test-cluster-{{ tiny_prefix }}-new | ||
new_port: 1155 | ||
new_password: test-rds_password-new | ||
new_db_parameter_group_name: ansible-test-db-parameter-group-{{ tiny_prefix }}-new | ||
|
||
# Tag cluster | ||
tags_patch: | ||
Name: '{{ tiny_prefix }}-new' | ||
Created_by: Ansible rds_cluster integration tests | ||
|
||
# Create cluster in a VPC | ||
vpc_name: ansible-test-vpc-{{ tiny_prefix }} | ||
vpc_cidr: 10.{{ 256 | random(seed=tiny_prefix) }}.0.0/16 | ||
subnets: | ||
- {cidr: '10.{{ 256 | random(seed=tiny_prefix) }}.1.0/24', zone: '{{ aws_region }}a'} | ||
- {cidr: '10.{{ 256 | random(seed=tiny_prefix) }}.2.0/24', zone: '{{ aws_region }}b'} | ||
- {cidr: '10.{{ 256 | random(seed=tiny_prefix) }}.3.0/24', zone: '{{ aws_region }}c'} | ||
- {cidr: '10.{{ 256 | random(seed=tiny_prefix) }}.4.0/24', zone: '{{ aws_region }}d'} | ||
|
||
security_groups: | ||
- '{{ tiny_prefix }}-sg-1' | ||
- '{{ tiny_prefix }}-sg-2' | ||
- '{{ tiny_prefix }}-sg-3' |
8 changes: 7 additions & 1 deletion
8
...r/roles/rds_cluster/tasks/test_modify.yml → ...argets/rds_cluster_modify/tasks/main.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
time=10m | ||
cloud/aws | ||
rds_cluster | ||
rds_cluster_info |
37 changes: 37 additions & 0 deletions
37
tests/integration/targets/rds_cluster_promote/defaults/main.yml
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# defaults file for rds_cluster | ||
|
||
# Create cluster | ||
cluster_id: ansible-test-{{ inventory_hostname | replace('_','-') }}{{ tiny_prefix | ||
}} | ||
username: testrdsusername | ||
password: test-rds_password | ||
engine: aurora | ||
port: 3306 | ||
tags_create: | ||
Name: ansible-test-cluster-{{ tiny_prefix }} | ||
Created_By: Ansible_rds_cluster_integration_test | ||
|
||
# Modify cluster | ||
new_cluster_id: ansible-test-cluster-{{ tiny_prefix }}-new | ||
new_port: 1155 | ||
new_password: test-rds_password-new | ||
new_db_parameter_group_name: ansible-test-db-parameter-group-{{ tiny_prefix }}-new | ||
|
||
# Tag cluster | ||
tags_patch: | ||
Name: '{{ tiny_prefix }}-new' | ||
Created_by: Ansible rds_cluster integration tests | ||
|
||
# Create cluster in a VPC | ||
vpc_name: ansible-test-vpc-{{ tiny_prefix }} | ||
vpc_cidr: 10.{{ 256 | random(seed=tiny_prefix) }}.0.0/16 | ||
subnets: | ||
- {cidr: '10.{{ 256 | random(seed=tiny_prefix) }}.1.0/24', zone: '{{ aws_region }}a'} | ||
- {cidr: '10.{{ 256 | random(seed=tiny_prefix) }}.2.0/24', zone: '{{ aws_region }}b'} | ||
- {cidr: '10.{{ 256 | random(seed=tiny_prefix) }}.3.0/24', zone: '{{ aws_region }}c'} | ||
- {cidr: '10.{{ 256 | random(seed=tiny_prefix) }}.4.0/24', zone: '{{ aws_region }}d'} | ||
|
||
security_groups: | ||
- '{{ tiny_prefix }}-sg-1' | ||
- '{{ tiny_prefix }}-sg-2' | ||
- '{{ tiny_prefix }}-sg-3' |
8 changes: 7 additions & 1 deletion
8
.../roles/rds_cluster/tasks/test_promote.yml → ...rgets/rds_cluster_promote/tasks/main.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
time=10m | ||
cloud/aws | ||
rds_cluster | ||
rds_cluster_info |
37 changes: 37 additions & 0 deletions
37
tests/integration/targets/rds_cluster_restore/defaults/main.yml
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# defaults file for rds_cluster | ||
|
||
# Create cluster | ||
cluster_id: ansible-test-{{ inventory_hostname | replace('_','-') }}{{ tiny_prefix | ||
}} | ||
username: testrdsusername | ||
password: test-rds_password | ||
engine: aurora | ||
port: 3306 | ||
tags_create: | ||
Name: ansible-test-cluster-{{ tiny_prefix }} | ||
Created_By: Ansible_rds_cluster_integration_test | ||
|
||
# Modify cluster | ||
new_cluster_id: ansible-test-cluster-{{ tiny_prefix }}-new | ||
new_port: 1155 | ||
new_password: test-rds_password-new | ||
new_db_parameter_group_name: ansible-test-db-parameter-group-{{ tiny_prefix }}-new | ||
|
||
# Tag cluster | ||
tags_patch: | ||
Name: '{{ tiny_prefix }}-new' | ||
Created_by: Ansible rds_cluster integration tests | ||
|
||
# Create cluster in a VPC | ||
vpc_name: ansible-test-vpc-{{ tiny_prefix }} | ||
vpc_cidr: 10.{{ 256 | random(seed=tiny_prefix) }}.0.0/16 | ||
subnets: | ||
- {cidr: '10.{{ 256 | random(seed=tiny_prefix) }}.1.0/24', zone: '{{ aws_region }}a'} | ||
- {cidr: '10.{{ 256 | random(seed=tiny_prefix) }}.2.0/24', zone: '{{ aws_region }}b'} | ||
- {cidr: '10.{{ 256 | random(seed=tiny_prefix) }}.3.0/24', zone: '{{ aws_region }}c'} | ||
- {cidr: '10.{{ 256 | random(seed=tiny_prefix) }}.4.0/24', zone: '{{ aws_region }}d'} | ||
|
||
security_groups: | ||
- '{{ tiny_prefix }}-sg-1' | ||
- '{{ tiny_prefix }}-sg-2' | ||
- '{{ tiny_prefix }}-sg-3' |
8 changes: 7 additions & 1 deletion
8
.../roles/rds_cluster/tasks/test_restore.yml → ...rgets/rds_cluster_restore/tasks/main.yaml
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
46 changes: 35 additions & 11 deletions
46
tests/integration/targets/rds_cluster_snapshot/defaults/main.yml
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 |
---|---|---|
@@ -1,13 +1,37 @@ | ||
--- | ||
# defaults file for rds_cluster_snapshot | ||
_resource_prefix: 'ansible-test-{{ tiny_prefix }}' | ||
|
||
# Create RDS cluster | ||
cluster_id: '{{ _resource_prefix }}-rds-cluster' | ||
username: 'testrdsusername' | ||
password: "{{ lookup('password', 'dev/null length=12 chars=ascii_letters,digits') }}" | ||
engine: 'aurora' | ||
# defaults file for rds_cluster | ||
|
||
# Create cluster | ||
cluster_id: ansible-test-{{ inventory_hostname | replace('_','-') }}{{ tiny_prefix | ||
}} | ||
username: testrdsusername | ||
password: test-rds_password | ||
engine: aurora | ||
port: 3306 | ||
tags_create: | ||
Name: ansible-test-cluster-{{ tiny_prefix }} | ||
Created_By: Ansible_rds_cluster_integration_test | ||
|
||
# Modify cluster | ||
new_cluster_id: ansible-test-cluster-{{ tiny_prefix }}-new | ||
new_port: 1155 | ||
new_password: test-rds_password-new | ||
new_db_parameter_group_name: ansible-test-db-parameter-group-{{ tiny_prefix }}-new | ||
|
||
# Tag cluster | ||
tags_patch: | ||
Name: '{{ tiny_prefix }}-new' | ||
Created_by: Ansible rds_cluster integration tests | ||
|
||
# Create cluster in a VPC | ||
vpc_name: ansible-test-vpc-{{ tiny_prefix }} | ||
vpc_cidr: 10.{{ 256 | random(seed=tiny_prefix) }}.0.0/16 | ||
subnets: | ||
- {cidr: '10.{{ 256 | random(seed=tiny_prefix) }}.1.0/24', zone: '{{ aws_region }}a'} | ||
- {cidr: '10.{{ 256 | random(seed=tiny_prefix) }}.2.0/24', zone: '{{ aws_region }}b'} | ||
- {cidr: '10.{{ 256 | random(seed=tiny_prefix) }}.3.0/24', zone: '{{ aws_region }}c'} | ||
- {cidr: '10.{{ 256 | random(seed=tiny_prefix) }}.4.0/24', zone: '{{ aws_region }}d'} | ||
|
||
# Create snapshot | ||
snapshot_id: '{{ _resource_prefix }}-rds-cluster-snapshot' | ||
security_groups: | ||
- '{{ tiny_prefix }}-sg-1' | ||
- '{{ tiny_prefix }}-sg-2' | ||
- '{{ tiny_prefix }}-sg-3' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
time=10m | ||
cloud/aws | ||
rds_cluster | ||
rds_cluster_info |
Oops, something went wrong.