Skip to content

Commit

Permalink
Reenable ec2_vol tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tremble committed Aug 31, 2021
1 parent f47abb0 commit f745df1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
4 changes: 0 additions & 4 deletions tests/integration/targets/ec2_vol/aliases
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# https://github.com/ansible-collections/amazon.aws/issues/463
# ec2_vol tests have been unstable failing with various errors at about an error
# rate of 1 in 3
disabled
slow

cloud/aws
Expand Down
13 changes: 10 additions & 3 deletions tests/integration/targets/ec2_vol/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
security_token: '{{ security_token | default(omit) }}'
region: '{{ aws_region | default(omit) }}'

vars:
ansible_python_interpreter: "{{ botocore_virtualenv_interpreter }}"

collections:
- amazon.aws
- community.aws
Expand Down Expand Up @@ -389,6 +386,8 @@
- new_vol_attach_result.volume.tags["Name"] == '{{ resource_prefix }} - sdh'

- name: volume must be from type gp3 (idempotent)
vars:
ansible_python_interpreter: "{{ botocore_virtualenv_interpreter }}"
ec2_vol:
id: "{{ new_vol_attach_result.volume_id }}"
zone: "{{ availability_zone }}"
Expand Down Expand Up @@ -543,6 +542,8 @@
when: ansible_version.full is version('2.7', '>=')

- name: test create a new gp3 volume
vars:
ansible_python_interpreter: "{{ botocore_virtualenv_interpreter }}"
ec2_vol:
volume_size: 70
zone: "{{ availability_zone }}"
Expand Down Expand Up @@ -574,6 +575,8 @@
- gp3_volume.volume.tags["ResourcePrefix"] == "{{ resource_prefix }}"

- name: Read volume information to validate throughput
vars:
ansible_python_interpreter: "{{ botocore_virtualenv_interpreter }}"
ec2_vol_info:
filters:
volume-id: "{{ gp3_volume.volume_id }}"
Expand All @@ -591,6 +594,8 @@
var: vol_facts

- name: Read volume information to validate throughput
vars:
ansible_python_interpreter: "{{ botocore_virtualenv_interpreter }}"
ec2_vol_info:
filters:
volume-id: "{{ gp3_volume.volume_id }}"
Expand All @@ -608,6 +613,8 @@
var: vol_facts

- name: increase throughput
vars:
ansible_python_interpreter: "{{ botocore_virtualenv_interpreter }}"
ec2_vol:
volume_size: 70
zone: "{{ availability_zone }}"
Expand Down

0 comments on commit f745df1

Please sign in to comment.