Skip to content

Commit

Permalink
Adding fix when categories are not coming in order in the response (#537
Browse files Browse the repository at this point in the history
)
  • Loading branch information
george-ghawali authored Dec 12, 2024
1 parent cbd3050 commit 013c7b4
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@
- result.response is defined
- result.changed == false
- result.failed == false
- all_categories[0] == "{{ category_ext_id }}"
- all_categories[1] == "{{ category_ext_id1 }}"
- "'{{ category_ext_id }}' in {{ all_categories }}"
- "'{{ category_ext_id1 }}' in {{ all_categories }}"
- result.vm_ext_id == "{{ vm_uuid }}"
fail_msg: " Associate category to VM - check mode is enabled failed "
success_msg: " Associate category to VM - check mode is enabled passed "
Expand Down Expand Up @@ -180,9 +180,9 @@
- result.failed == false
- result.response.categories | length > 0
- all_categories | length == 3
- all_categories[0] == "{{ category_ext_id }}"
- all_categories[1] == "{{ category_ext_id1 }}"
- all_categories[2] == "{{ category_ext_id2 }}"
- "'{{ category_ext_id }}' in {{ all_categories }}"
- "'{{ category_ext_id1 }}' in {{ all_categories }}"
- "'{{ category_ext_id2 }}' in {{ all_categories }}"
fail_msg: "Get categories from VM failed "
success_msg: "Get categories from VM passed "

Expand All @@ -209,8 +209,8 @@
- result.response is defined
- result.changed == false
- result.failed == false
- all_categories[0] == "{{ category_ext_id }}"
- all_categories[1] == "{{ category_ext_id1 }}"
- "'{{ category_ext_id }}' in {{ all_categories }}"
- "'{{ category_ext_id1 }}' in {{ all_categories }}"
- result.vm_ext_id == "{{ vm_uuid }}"
fail_msg: " Disassociate category from VM - check mode is enabled failed "
success_msg: " Disassociate category from VM - check mode is enabled passed "
Expand Down Expand Up @@ -281,8 +281,8 @@
- result.failed == false
- result.response.categories | length > 0
- all_categories | length == 2
- all_categories[0] == "{{ category_ext_id1 }}"
- all_categories[1] == "{{ category_ext_id2 }}"
- "'{{ category_ext_id1 }}' in {{ all_categories }}"
- "'{{ category_ext_id2 }}' in {{ all_categories }}"
fail_msg: "Get categories from VM failed "
success_msg: "Get categories from VM passed "

Expand Down

0 comments on commit 013c7b4

Please sign in to comment.