Skip to content

Commit

Permalink
Comment Image categories removal test due to internal bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bhati-pradeep committed May 29, 2024
1 parent 2b7613b commit fb35feb
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions tests/integration/targets/ntnx_images/tasks/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,22 +93,23 @@

########################################################################################

- name: test removal of all categories from image
ntnx_images:
state: present
image_uuid: "{{ setup_image.image_uuid }}"
remove_categories: true
register: result


- name: Update Status
assert:
that:
- result.response is defined
- result.response.status.state == 'COMPLETE'
- result.response.metadata.categories_mapping == {}
fail_msg: "Unable to remove all categories from image"
success_msg: "All categories attached to image removed successfully"
# Commenting out as removing all categories from Images is broken
# - name: test removal of all categories from image
# ntnx_images:
# state: present
# image_uuid: "{{ setup_image.image_uuid }}"
# remove_categories: true
# register: result


# - name: Update Status
# assert:
# that:
# - result.response is defined
# - result.response.status.state == 'COMPLETE'
# - result.response.metadata.categories_mapping == {}
# fail_msg: "Unable to remove all categories from image"
# success_msg: "All categories attached to image removed successfully"

########################################### Cleanup ###################################################

Expand Down

0 comments on commit fb35feb

Please sign in to comment.