Skip to content

Commit

Permalink
galleryimageversion: rename image in test created from URI
Browse files Browse the repository at this point in the history
This also removes the image version at the end so the gallery can be
deleted.
  • Loading branch information
jeremycline committed Jun 4, 2024
1 parent a900040 commit c3be294
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion tests/integration/targets/azure_rm_gallery/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@
resource_group: "{{ resource_group }}"
gallery_name: myGallery{{ rpfx }}
gallery_image_name: myImage
name: 10.1.3
name: 10.1.4
location: eastus
publishing_profile:
end_of_life_date: "2050-10-01t00:00:00+00:00"
Expand Down Expand Up @@ -480,6 +480,20 @@
- output.versions['publishing_profile'] != None
- output.versions['provisioning_state'] != None

- name: Delete gallery image version from URI.
azure_rm_galleryimageversion:
resource_group: "{{ resource_group }}"
gallery_name: myGallery{{ rpfx }}
gallery_image_name: myImage
name: 10.1.4
state: absent
register: output

- name: Assert the gallery image version from URI deleted
ansible.builtin.assert:
that:
- output.changed

- name: Delete gallery image Version.
azure_rm_galleryimageversion:
resource_group: "{{ resource_group }}"
Expand Down

0 comments on commit c3be294

Please sign in to comment.