Skip to content

Commit

Permalink
Add check_mode support
Browse files Browse the repository at this point in the history
  • Loading branch information
mandar242 committed Mar 30, 2022
1 parent 818d057 commit 8c4060b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/integration/targets/ec2_asg/tasks/instance_detach.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#----------------------------------------------------------------------

- name: create a AutoScalingGroup to be used for instance_detach test
- name: create a AutoScalingGroup to be used for instance_detach test - check_mode
ec2_asg:
name: "{{ resource_prefix }}-asg-detach-test"
launch_config_name: "{{ resource_prefix }}-lc-detach-test"
Expand Down Expand Up @@ -89,7 +89,7 @@

#----------------------------------------------------------------------

- name: detach 2 instance from the asg and replace with other instances
- name: detach 2 instance from the asg and replace with other instances - check_mode
ec2_asg:
name: "{{ resource_prefix }}-asg-detach-test"
launch_config_name: "{{ resource_prefix }}-lc-detach-test"
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/targets/ec2_asg/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@
groups:
- "{{ sg.group_id }}"

- name: update autoscaling group with mixed-instances policy with mixed instances types
- name: update autoscaling group with mixed-instances policy with mixed instances types - check_mode
ec2_asg:
name: "{{ resource_prefix }}-asg"
launch_template:
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/targets/ec2_asg/tasks/tag_operations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
that:
- info_result.results[0].tags | length == 0

- name: Tag asg
- name: Tag asg - check_mode
ec2_asg:
name: "{{ resource_prefix }}-asg-tag-test"
tags:
Expand Down

0 comments on commit 8c4060b

Please sign in to comment.