Skip to content

Make Content Library Item usable by tenants and support ISO/OVF files#46

Merged
adambarreiro merged 19 commits intovmware:mainfrom
adambarreiro:tenant-cli
Mar 4, 2025
Merged

Make Content Library Item usable by tenants and support ISO/OVF files#46
adambarreiro merged 19 commits intovmware:mainfrom
adambarreiro:tenant-cli

Conversation

@adambarreiro
Copy link
Copy Markdown
Contributor

@adambarreiro adambarreiro commented Feb 24, 2025

This PR changes file_path to files_paths in vcfa_content_library_item to allow uploading OVF files, as this use case needs to specify the "descriptor.ovf" and the other referenced files.

Also, now vcfa_content_library_item supports ISO files, and the resource can be used with Content Libraries of type TENANT.

Tests are updated:

  • Provider tests upload each type of item (OVA, ISO, OVF) to a TENANT content library and check the data sources + import
  • Tenant test is the longest: As an administrator, it uploads each type of item (OVA, ISO, OVF) to a TENANT content library and check the data sources + import. Then, logged in as a regular tenant user, does the same: uploads each type of item (OVA, ISO, OVF) and check the data sources.

abarreiro added 3 commits February 24, 2025 10:42
Signed-off-by: abarreiro <abarreiro@vmware.com>
#
Signed-off-by: abarreiro <abarreiro@vmware.com>
#
Signed-off-by: abarreiro <abarreiro@vmware.com>
@adambarreiro adambarreiro self-assigned this Feb 24, 2025
@adambarreiro adambarreiro changed the title Make Content Library Item usable by tenants Make Content Library Item usable by tenants and support ISO files Feb 24, 2025
abarreiro added 3 commits February 25, 2025 12:59
Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro <abarreiro@vmware.com>
#
Signed-off-by: abarreiro <abarreiro@vmware.com>
@adambarreiro adambarreiro changed the title Make Content Library Item usable by tenants and support ISO files Make Content Library Item usable by tenants and support ISO/OVF files Feb 26, 2025
abarreiro added 4 commits February 26, 2025 16:44
Signed-off-by: abarreiro <abarreiro@vmware.com>
#
Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro <abarreiro@vmware.com>
@adambarreiro adambarreiro marked this pull request as ready for review February 27, 2025 09:04
abarreiro added 7 commits February 27, 2025 10:04
Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro <abarreiro@vmware.com>
@adambarreiro adambarreiro merged commit 6acd316 into vmware:main Mar 4, 2025
3 checks passed
@adambarreiro adambarreiro deleted the tenant-cli branch March 4, 2025 11:53
* `content_library_id` - (Required) ID of the Content Library that this Content Library Item belongs to
* `file_path` - (Required) Path to the OVA/ISO to create the Content Library Item
* `content_library_id` - (Required) ID of the [Content Library](/providers/vmware/vcfa/latest/docs/resources/content_library) that this Content Library Item belongs to
* `files_paths` - (Required) A single path to an OVA/ISO, or multiple paths for an OVF and its referenced files, to create the Content Library Item
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Somehow missed this single letter. It should really be called file_paths. In English when a noun modifies another noun, the first one usually remains singular.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants