Skip to content

Commit

Permalink
Remove version specific ec2_instance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tremble committed Aug 5, 2021
1 parent 6cb8497 commit 6677bcc
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 96 deletions.
2 changes: 2 additions & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ pytest-xdist
pytest-mock
# Needed for ansible.netcommon.ipaddr in tests
netaddr
# Sometimes needed where we don't have features we need in modules
awscli
2 changes: 2 additions & 0 deletions tests/integration/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# netaddr is needed for ansible.netcommon.ipv6
netaddr
virtualenv
# Sometimes needed where we don't have features we need in modules
awscli
3 changes: 1 addition & 2 deletions tests/integration/targets/ec2_instance/inventory
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
[tests]
# Sorted fastest to slowest
version_fail_wrapper
ebs_optimized
block_devices
cpu_options
default_vpc_tests
external_resource_attach
instance_no_wait
iam_instance_role
termination_protection_wrapper
termination_protection
tags_and_vpc_settings
checkmode_tests
security_group
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
- "'{{ create_instance_results.spec.DisableApiTermination }}'"

- name: Get info on termination protection
command: '{{ aws_cli }} ec2 describe-instance-attribute --attribute disableApiTermination --instance-id {{ instance_id }}'
command: 'aws ec2 describe-instance-attribute --attribute disableApiTermination --instance-id {{ instance_id }}'
environment:
AWS_ACCESS_KEY_ID: "{{ aws_access_key }}"
AWS_SECRET_ACCESS_KEY: "{{ aws_secret_key }}"
Expand Down Expand Up @@ -128,7 +128,7 @@
- "{{ set_termination_protectioncheck_mode_results.changed }}"

- name: Get info on termination protection
command: '{{ aws_cli }} ec2 describe-instance-attribute --attribute disableApiTermination --instance-id {{ instance_id }}'
command: 'aws ec2 describe-instance-attribute --attribute disableApiTermination --instance-id {{ instance_id }}'
environment:
AWS_ACCESS_KEY_ID: "{{ aws_access_key }}"
AWS_SECRET_ACCESS_KEY: "{{ aws_secret_key }}"
Expand Down Expand Up @@ -161,7 +161,7 @@
- set_termination_protection_results.changed

- name: Get info on termination protection
command: '{{ aws_cli }} ec2 describe-instance-attribute --attribute disableApiTermination --instance-id {{ instance_id }}'
command: 'aws ec2 describe-instance-attribute --attribute disableApiTermination --instance-id {{ instance_id }}'
environment:
AWS_ACCESS_KEY_ID: "{{ aws_access_key }}"
AWS_SECRET_ACCESS_KEY: "{{ aws_secret_key }}"
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 6677bcc

Please sign in to comment.