Skip to content

Commit

Permalink
Fix assertion way to check the AZ group_name attribute (#2496)
Browse files Browse the repository at this point in the history
SUMMARY

Fix downstream integration test assertion failures when checking the AZ group_name attribute,
update assetion to use startswith instead of equal.
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME

aws_az_info integration test target
ADDITIONAL INFORMATION

Reviewed-by: Mark Chappell
(cherry picked from commit 5f0fa1d)
  • Loading branch information
brahmanim authored and patchback[bot] committed Feb 2, 2025
1 parent d3173eb commit 5c308ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
trivial:
- "Fix assertion way to check the AZ group_name attribute (https://github.com/ansible-collections/amazon.aws/pull/2496)."
6 changes: 3 additions & 3 deletions tests/integration/targets/aws_az_info/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
- '"zone_id" in first_az'
- '"zone_name" in first_az'
- '"zone_type" in first_az'
- first_az.group_name == 'us-west-2'
- first_az.group_name.startswith('us-west-2')
- first_az.network_border_group == 'us-west-2'
- first_az.region_name == 'us-west-2'
# AZs are mapped to the 'real' AZs on a per-account basis
Expand Down Expand Up @@ -138,7 +138,7 @@
- '"zone_id" in first_az'
- '"zone_name" in first_az'
- '"zone_type" in first_az'
- first_az.group_name == 'eu-central-1'
- first_az.group_name.startswith('eu-central-1')
- first_az.network_border_group == 'eu-central-1'
- first_az.region_name == 'eu-central-1'
# AZs are mapped to the 'real' AZs on a per-account basis
Expand Down Expand Up @@ -172,7 +172,7 @@
- '"zone_id" in first_az'
- '"zone_name" in first_az'
- '"zone_type" in first_az'
- first_az.group_name == 'eu-west-2'
- first_az.group_name.startswith('eu-west-2')
- first_az.network_border_group == 'eu-west-2'
- first_az.region_name == 'eu-west-2'
# AZs are mapped to the 'real' AZs on a per-account basis
Expand Down

0 comments on commit 5c308ce

Please sign in to comment.