Skip to content

Update test cases to work under ansible-2.19 Group2 #1953

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@
- name: Assert the public ip address facts
ansible.builtin.assert:
that:
- "pip.publicipaddresses | length == 1"
- pip.publicipaddresses[0].name == "pip{{ rpfx }}"
- pip.publicipaddresses | length == 1
- pip.publicipaddresses[0].name == "pip" ~ rpfx
- pip.publicipaddresses[0].allocation_method == 'static'
- pip.publicipaddresses[0].dns_settings.domain_name_label == domain_name

Expand Down
2 changes: 1 addition & 1 deletion tests/integration/targets/azure_rm_resource/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@

- name: Assert that storage was successfully created
ansible.builtin.assert:
that: "output['response']['name'] == '{{ storageaccountname }}'"
that: output['response']['name'] == storageaccountname


- name: Try to storage keys -- special case when subresource part has no name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
that:
- output.securitygroups | length == 1
- output.securitygroups[0].default_rules | length > 0
- output.securitygroups[0].name == '{{ secgroupname }}'
- output.securitygroups[0].name == secgroupname
- output.securitygroups[0].network_interfaces | length == 0
- output.securitygroups[0].rules | length == 2
- output.securitygroups[0].subnets | length == 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -656,8 +656,8 @@
- "output.storageaccounts | length == 1"
- not output.storageaccounts[0].custom_domain
- output.storageaccounts[0].account_type == "Premium_LRS"
- output.storageaccounts[0].primary_endpoints.blob.connectionstring
- output.storageaccounts[0].blob_cors
- output.storageaccounts[0].primary_endpoints.blob.connectionstring != ""
- output.storageaccounts[0].blob_cors != ""
- output.storageaccounts[0].minimum_tls_version == "TLS1_2"
- not output.storageaccounts[0].allow_blob_public_access
- not output.storageaccounts[0].https_only
Expand Down
6 changes: 3 additions & 3 deletions tests/integration/targets/azure_rm_subnet/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
that:
- output.changed
- not output.state.address_prefix
- output.state.address_prefixes
- output.state.address_prefixes | length > 0

- name: Update the subnet to IPv4 and IPv6 (idempotent)
azure_rm_subnet:
Expand Down Expand Up @@ -210,7 +210,7 @@

- name: Assert the subnet updated
ansible.builtin.assert:
that: output
that: output.changed

- name: The subnet with network policies should be idempotent
azure_rm_subnet:
Expand All @@ -237,7 +237,7 @@

- name: Assert the subnet updated
ansible.builtin.assert:
that: output
that: output.changed

- name: The subnet with delegations should be idempotent
azure_rm_subnet:
Expand Down