Skip to content

Commit

Permalink
Mass update of docs and tests (credentials/session tokens) (ansible-c…
Browse files Browse the repository at this point in the history
…ollections#1921)

Mass update of docs and tests (credentials/session tokens)

SUMMARY
We had a cleanup of credentials/session parameters which included a batch of deprecations and renames.
Ensure that all of our tests and docs are using the 'canonical' names
ISSUE TYPE

Docs Pull Request

COMPONENT NAME
plugins/modules/batch_compute_environment.py
plugins/modules/cloudformation_exports_info.py
plugins/modules/ec2_vpc_vpn.py
plugins/modules/elasticache.py
plugins/modules/elasticache_parameter_group.py
plugins/modules/elasticache_snapshot.py
plugins/modules/ses_rule_set.py
plugins/modules/sts_assume_role.py
plugins/modules/sts_session_token.py
tests/integration
ADDITIONAL INFORMATION
See also

ansible-collections#1172
ansible-collections#1714

Reviewed-by: Alina Buzachis

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@4a5b50e
  • Loading branch information
tremble authored and mandar242 committed Oct 21, 2024
1 parent 8f20c89 commit 06081a2
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions tests/integration/targets/elb_classic_lb_info/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@

- module_defaults:
group/aws:
region: "{{ ec2_region }}"
ec2_access_key: "{{ ec2_access_key }}"
ec2_secret_key: "{{ ec2_secret_key }}"
security_token: "{{ security_token | default(omit) }}"
region: "{{ aws_region }}"
access_key: "{{ aws_access_key }}"
secret_key: "{{ aws_secret_key }}"
session_token: "{{ security_token | default(omit) }}"
block:

# ============================================================
Expand All @@ -32,8 +32,8 @@
name: "{{ elb_name }}"
state: present
zones:
- "{{ ec2_region }}a"
- "{{ ec2_region }}b"
- "{{ aws_region }}a"
- "{{ aws_region }}b"
listeners:
- protocol: http
load_balancer_port: 80
Expand All @@ -55,8 +55,8 @@
that:
- create is changed
# We rely on these for the info test, make sure they're what we expect
- '"{{ ec2_region }}a" in create.elb.zones'
- '"{{ ec2_region }}b" in create.elb.zones'
- '"{{ aws_region }}a" in create.elb.zones'
- '"{{ aws_region }}b" in create.elb.zones'
- create.elb.health_check.healthy_threshold == 10
- create.elb.health_check.interval == 30
- create.elb.health_check.target == "HTTP:80/index.html"
Expand All @@ -74,8 +74,8 @@
that:
- info.elbs|length == 1
- elb.availability_zones|length == 2
- '"{{ ec2_region }}a" in elb.availability_zones'
- '"{{ ec2_region }}b" in elb.availability_zones'
- '"{{ aws_region }}a" in elb.availability_zones'
- '"{{ aws_region }}b" in elb.availability_zones'
- elb.health_check.healthy_threshold == 10
- elb.health_check.interval == 30
- elb.health_check.target == "HTTP:80/index.html"
Expand Down Expand Up @@ -115,7 +115,7 @@
name: "{{ elb_name }}"
state: present
zones:
- "{{ ec2_region }}c"
- "{{ aws_region }}c"
listeners:
- protocol: http
load_balancer_port: 80
Expand All @@ -134,7 +134,7 @@
- assert:
that:
- update_az is changed
- update_az.elb.zones[0] == "{{ ec2_region }}c"
- update_az.elb.zones[0] == "{{ aws_region }}c"

- name: Get ELB info after changing AZ's
elb_classic_lb_info:
Expand All @@ -144,7 +144,7 @@
- assert:
that:
- elb.availability_zones|length == 1
- '"{{ ec2_region }}c" in elb.availability_zones[0]'
- '"{{ aws_region }}c" in elb.availability_zones[0]'
vars:
elb: "{{ info.elbs[0] }}"

Expand All @@ -157,9 +157,9 @@
name: "{{ elb_name }}"
state: present
zones:
- "{{ ec2_region }}a"
- "{{ ec2_region }}b"
- "{{ ec2_region }}c"
- "{{ aws_region }}a"
- "{{ aws_region }}b"
- "{{ aws_region }}c"
listeners:
- protocol: http
load_balancer_port: 80
Expand All @@ -170,9 +170,9 @@
- assert:
that:
- update_az is changed
- '"{{ ec2_region }}a" in update_az.elb.zones'
- '"{{ ec2_region }}b" in update_az.elb.zones'
- '"{{ ec2_region }}c" in update_az.elb.zones'
- '"{{ aws_region }}a" in update_az.elb.zones'
- '"{{ aws_region }}b" in update_az.elb.zones'
- '"{{ aws_region }}c" in update_az.elb.zones'

- name: Get ELB info after updating AZ's
elb_classic_lb_info:
Expand All @@ -182,9 +182,9 @@
- assert:
that:
- elb.availability_zones|length == 3
- '"{{ ec2_region }}a" in elb.availability_zones'
- '"{{ ec2_region }}b" in elb.availability_zones'
- '"{{ ec2_region }}c" in elb.availability_zones'
- '"{{ aws_region }}a" in elb.availability_zones'
- '"{{ aws_region }}b" in elb.availability_zones'
- '"{{ aws_region }}c" in elb.availability_zones'
vars:
elb: "{{ info.elbs[0] }}"

Expand All @@ -197,9 +197,9 @@
name: "{{ elb_name }}"
state: present
zones:
- "{{ ec2_region }}a"
- "{{ ec2_region }}b"
- "{{ ec2_region }}c"
- "{{ aws_region }}a"
- "{{ aws_region }}b"
- "{{ aws_region }}c"
listeners:
- protocol: http
load_balancer_port: 80
Expand Down Expand Up @@ -235,9 +235,9 @@
name: "{{ elb_name }}"
state: present
zones:
- "{{ ec2_region }}a"
- "{{ ec2_region }}b"
- "{{ ec2_region }}c"
- "{{ aws_region }}a"
- "{{ aws_region }}b"
- "{{ aws_region }}c"
listeners:
- protocol: http
load_balancer_port: 8081
Expand Down

0 comments on commit 06081a2

Please sign in to comment.