-
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
26 changed files
with
251 additions
and
67 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,7 @@ | ||
# TODO: Cannot be tested in the CI because: | ||
# An error occurred (InvalidParameterValue) when calling the CreateDBCluster operation: Replication from cluster in s | ||
disabled | ||
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
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_tag/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
...ster/roles/rds_cluster/tasks/test_tag.yml → ...n/targets/rds_cluster_tag/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