-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use on target per sub-test to have a better control on the global execution time and simplify the troubleshooting.
- Loading branch information
Showing
82 changed files
with
803 additions
and
157 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
tests/integration/targets/ec2_instance/roles/ec2_instance/meta/main.yml
This file was deleted.
Oops, something went wrong.
56 changes: 0 additions & 56 deletions
56
tests/integration/targets/ec2_instance/roles/ec2_instance/tasks/main.yml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
.../integration/targets/ec2_instance/aliases → ...argets/ec2_instance_block_devices/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,5 @@ | ||
# duration: 25 | ||
slow | ||
|
||
cloud/aws | ||
ec2_instance_info | ||
ec2_instance | ||
|
File renamed without changes.
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
9 changes: 7 additions & 2 deletions
9
...oles/ec2_instance/tasks/block_devices.yml → ...ec2_instance_block_devices/tasks/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
5 changes: 5 additions & 0 deletions
5
tests/integration/targets/ec2_instance_checkmode_tests/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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
cloud/aws | ||
ec2_instance_info | ||
ec2_instance | ||
|
21 changes: 21 additions & 0 deletions
21
tests/integration/targets/ec2_instance_checkmode_tests/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,21 @@ | ||
--- | ||
# defaults file for ec2_instance | ||
ec2_instance_owner: 'integration-run-{{ resource_prefix }}' | ||
ec2_instance_type: 't3.micro' | ||
ec2_instance_tag_TestId: '{{ resource_prefix }}-{{ inventory_hostname }}' | ||
|
||
vpc_name: '{{ resource_prefix }}-vpc' | ||
vpc_seed: '{{ resource_prefix }}' | ||
vpc_cidr: '10.{{ 256 | random(seed=vpc_seed) }}.0.0/16' | ||
|
||
subnet_a_az: '{{ ec2_availability_zone_names[0] }}' | ||
subnet_a_cidr: '10.{{ 256 | random(seed=vpc_seed) }}.32.0/24' | ||
subnet_a_startswith: '10.{{ 256 | random(seed=vpc_seed) }}.32.' | ||
subnet_b_az: '{{ ec2_availability_zone_names[1] }}' | ||
subnet_b_cidr: '10.{{ 256 | random(seed=vpc_seed) }}.33.0/24' | ||
subnet_b_startswith: '10.{{ 256 | random(seed=vpc_seed) }}.33.' | ||
|
||
first_iam_role: "ansible-test-sts-{{ resource_prefix | hash('md5') }}-test-policy" | ||
second_iam_role: "ansible-test-sts-{{ resource_prefix | hash('md5') }}-test-policy-2" | ||
# Zuul resource prefixes are very long, and IAM roles can only be 64 characters | ||
unique_id: "{{ resource_prefix | hash('md5') }}" |
7 changes: 7 additions & 0 deletions
7
tests/integration/targets/ec2_instance_checkmode_tests/meta/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,7 @@ | ||
# this just makes sure they're in the right place | ||
dependencies: | ||
- role: setup_ec2_facts | ||
- role: setup_botocore_pip | ||
vars: | ||
boto3_version: 1.20.30 | ||
- role: setup_ec2_instance_env |
8 changes: 7 additions & 1 deletion
8
...es/ec2_instance/tasks/checkmode_tests.yml → ...2_instance_checkmode_tests/tasks/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
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,5 @@ | ||
|
||
cloud/aws | ||
ec2_instance_info | ||
ec2_instance | ||
|
21 changes: 21 additions & 0 deletions
21
tests/integration/targets/ec2_instance_cpu_options/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,21 @@ | ||
--- | ||
# defaults file for ec2_instance | ||
ec2_instance_owner: 'integration-run-{{ resource_prefix }}' | ||
ec2_instance_type: 't3.micro' | ||
ec2_instance_tag_TestId: '{{ resource_prefix }}-{{ inventory_hostname }}' | ||
|
||
vpc_name: '{{ resource_prefix }}-vpc' | ||
vpc_seed: '{{ resource_prefix }}' | ||
vpc_cidr: '10.{{ 256 | random(seed=vpc_seed) }}.0.0/16' | ||
|
||
subnet_a_az: '{{ ec2_availability_zone_names[0] }}' | ||
subnet_a_cidr: '10.{{ 256 | random(seed=vpc_seed) }}.32.0/24' | ||
subnet_a_startswith: '10.{{ 256 | random(seed=vpc_seed) }}.32.' | ||
subnet_b_az: '{{ ec2_availability_zone_names[1] }}' | ||
subnet_b_cidr: '10.{{ 256 | random(seed=vpc_seed) }}.33.0/24' | ||
subnet_b_startswith: '10.{{ 256 | random(seed=vpc_seed) }}.33.' | ||
|
||
first_iam_role: "ansible-test-sts-{{ resource_prefix | hash('md5') }}-test-policy" | ||
second_iam_role: "ansible-test-sts-{{ resource_prefix | hash('md5') }}-test-policy-2" | ||
# Zuul resource prefixes are very long, and IAM roles can only be 64 characters | ||
unique_id: "{{ resource_prefix | hash('md5') }}" |
7 changes: 7 additions & 0 deletions
7
tests/integration/targets/ec2_instance_cpu_options/meta/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,7 @@ | ||
# this just makes sure they're in the right place | ||
dependencies: | ||
- role: setup_ec2_facts | ||
- role: setup_botocore_pip | ||
vars: | ||
boto3_version: 1.20.30 | ||
- role: setup_ec2_instance_env |
8 changes: 7 additions & 1 deletion
8
.../roles/ec2_instance/tasks/cpu_options.yml → ...s/ec2_instance_cpu_options/tasks/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
5 changes: 5 additions & 0 deletions
5
tests/integration/targets/ec2_instance_default_vpc_tests/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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
cloud/aws | ||
ec2_instance_info | ||
ec2_instance | ||
|
21 changes: 21 additions & 0 deletions
21
tests/integration/targets/ec2_instance_default_vpc_tests/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,21 @@ | ||
--- | ||
# defaults file for ec2_instance | ||
ec2_instance_owner: 'integration-run-{{ resource_prefix }}' | ||
ec2_instance_type: 't3.micro' | ||
ec2_instance_tag_TestId: '{{ resource_prefix }}-{{ inventory_hostname }}' | ||
|
||
vpc_name: '{{ resource_prefix }}-vpc' | ||
vpc_seed: '{{ resource_prefix }}' | ||
vpc_cidr: '10.{{ 256 | random(seed=vpc_seed) }}.0.0/16' | ||
|
||
subnet_a_az: '{{ ec2_availability_zone_names[0] }}' | ||
subnet_a_cidr: '10.{{ 256 | random(seed=vpc_seed) }}.32.0/24' | ||
subnet_a_startswith: '10.{{ 256 | random(seed=vpc_seed) }}.32.' | ||
subnet_b_az: '{{ ec2_availability_zone_names[1] }}' | ||
subnet_b_cidr: '10.{{ 256 | random(seed=vpc_seed) }}.33.0/24' | ||
subnet_b_startswith: '10.{{ 256 | random(seed=vpc_seed) }}.33.' | ||
|
||
first_iam_role: "ansible-test-sts-{{ resource_prefix | hash('md5') }}-test-policy" | ||
second_iam_role: "ansible-test-sts-{{ resource_prefix | hash('md5') }}-test-policy-2" | ||
# Zuul resource prefixes are very long, and IAM roles can only be 64 characters | ||
unique_id: "{{ resource_prefix | hash('md5') }}" |
7 changes: 7 additions & 0 deletions
7
tests/integration/targets/ec2_instance_default_vpc_tests/meta/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,7 @@ | ||
# this just makes sure they're in the right place | ||
dependencies: | ||
- role: setup_ec2_facts | ||
- role: setup_botocore_pip | ||
vars: | ||
boto3_version: 1.20.30 | ||
- role: setup_ec2_instance_env |
8 changes: 7 additions & 1 deletion
8
.../ec2_instance/tasks/default_vpc_tests.yml → ...instance_default_vpc_tests/tasks/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
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,5 @@ | ||
|
||
cloud/aws | ||
ec2_instance_info | ||
ec2_instance | ||
|
21 changes: 21 additions & 0 deletions
21
tests/integration/targets/ec2_instance_ebs_optimized/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,21 @@ | ||
--- | ||
# defaults file for ec2_instance | ||
ec2_instance_owner: 'integration-run-{{ resource_prefix }}' | ||
ec2_instance_type: 't3.micro' | ||
ec2_instance_tag_TestId: '{{ resource_prefix }}-{{ inventory_hostname }}' | ||
|
||
vpc_name: '{{ resource_prefix }}-vpc' | ||
vpc_seed: '{{ resource_prefix }}' | ||
vpc_cidr: '10.{{ 256 | random(seed=vpc_seed) }}.0.0/16' | ||
|
||
subnet_a_az: '{{ ec2_availability_zone_names[0] }}' | ||
subnet_a_cidr: '10.{{ 256 | random(seed=vpc_seed) }}.32.0/24' | ||
subnet_a_startswith: '10.{{ 256 | random(seed=vpc_seed) }}.32.' | ||
subnet_b_az: '{{ ec2_availability_zone_names[1] }}' | ||
subnet_b_cidr: '10.{{ 256 | random(seed=vpc_seed) }}.33.0/24' | ||
subnet_b_startswith: '10.{{ 256 | random(seed=vpc_seed) }}.33.' | ||
|
||
first_iam_role: "ansible-test-sts-{{ resource_prefix | hash('md5') }}-test-policy" | ||
second_iam_role: "ansible-test-sts-{{ resource_prefix | hash('md5') }}-test-policy-2" | ||
# Zuul resource prefixes are very long, and IAM roles can only be 64 characters | ||
unique_id: "{{ resource_prefix | hash('md5') }}" |
7 changes: 7 additions & 0 deletions
7
tests/integration/targets/ec2_instance_ebs_optimized/meta/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,7 @@ | ||
# this just makes sure they're in the right place | ||
dependencies: | ||
- role: setup_ec2_facts | ||
- role: setup_botocore_pip | ||
vars: | ||
boto3_version: 1.20.30 | ||
- role: setup_ec2_instance_env |
8 changes: 7 additions & 1 deletion
8
...oles/ec2_instance/tasks/ebs_optimized.yml → ...ec2_instance_ebs_optimized/tasks/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
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,5 @@ | ||
|
||
cloud/aws | ||
ec2_instance_info | ||
ec2_instance | ||
|
21 changes: 21 additions & 0 deletions
21
tests/integration/targets/ec2_instance_env_cleanup/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,21 @@ | ||
--- | ||
# defaults file for ec2_instance | ||
ec2_instance_owner: 'integration-run-{{ resource_prefix }}' | ||
ec2_instance_type: 't3.micro' | ||
ec2_instance_tag_TestId: '{{ resource_prefix }}-{{ inventory_hostname }}' | ||
|
||
vpc_name: '{{ resource_prefix }}-vpc' | ||
vpc_seed: '{{ resource_prefix }}' | ||
vpc_cidr: '10.{{ 256 | random(seed=vpc_seed) }}.0.0/16' | ||
|
||
subnet_a_az: '{{ ec2_availability_zone_names[0] }}' | ||
subnet_a_cidr: '10.{{ 256 | random(seed=vpc_seed) }}.32.0/24' | ||
subnet_a_startswith: '10.{{ 256 | random(seed=vpc_seed) }}.32.' | ||
subnet_b_az: '{{ ec2_availability_zone_names[1] }}' | ||
subnet_b_cidr: '10.{{ 256 | random(seed=vpc_seed) }}.33.0/24' | ||
subnet_b_startswith: '10.{{ 256 | random(seed=vpc_seed) }}.33.' | ||
|
||
first_iam_role: "ansible-test-sts-{{ resource_prefix | hash('md5') }}-test-policy" | ||
second_iam_role: "ansible-test-sts-{{ resource_prefix | hash('md5') }}-test-policy-2" | ||
# Zuul resource prefixes are very long, and IAM roles can only be 64 characters | ||
unique_id: "{{ resource_prefix | hash('md5') }}" |
7 changes: 7 additions & 0 deletions
7
tests/integration/targets/ec2_instance_env_cleanup/meta/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,7 @@ | ||
# this just makes sure they're in the right place | ||
dependencies: | ||
- role: setup_ec2_facts | ||
- role: setup_botocore_pip | ||
vars: | ||
boto3_version: 1.20.30 | ||
- role: setup_ec2_instance_env |
Oops, something went wrong.