Skip to content
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

Include govcd with catalog regression fix for GetCatalogByName and GetCatalogById #691

Merged
merged 6 commits into from
Jul 5, 2021

Conversation

Didainius
Copy link
Collaborator

@Didainius Didainius commented Jul 2, 2021

Closes #689

This PR should fix regression in Terraform provider VCD 3.3.0 where a catalog shared from another Org might not be found.

It also includes a test TestAccVcdCatalogSharedAccess which triggers the bug in Org user mode (using VCD_TEST_ORG_USER flag). One should tune go.mod (to consume go-vcloud-director v2.12.0 in and use VCD_TEST_ORG_USER mode to replicate this bug.)

The test TestAccVcdCatalogSharedAccess itself uses specific functionality in SDK to prepare the environment (new org, new vdc, a catalog with image and share it with existing org). This explicitly requires System credentials and additional function createSystemTemporaryVCDConnection was introduced in test files. After the test run all these specific entities are cleaned up using SDK as well.

@Didainius Didainius force-pushed the v2.12.0_regression_fix branch from 40b3bf8 to 04b46c3 Compare July 3, 2021 19:24
@Didainius Didainius self-assigned this Jul 3, 2021
@Didainius Didainius force-pushed the v2.12.0_regression_fix branch from 04b46c3 to a551681 Compare July 3, 2021 19:29
Signed-off-by: Dainius Serplis <[email protected]>
@Didainius Didainius force-pushed the v2.12.0_regression_fix branch from a551681 to 5c6f7ac Compare July 3, 2021 19:30
@Didainius Didainius marked this pull request as ready for review July 3, 2021 19:59
Copy link
Collaborator

@lvirbalas lvirbalas left a comment

Choose a reason for hiding this comment

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

Thanks for a quick turnaround!

@Didainius Didainius merged commit 5579bf5 into vmware:master Jul 5, 2021
@Didainius Didainius deleted the v2.12.0_regression_fix branch July 5, 2021 07:18
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.

vcd 3.3.0 Error: error finding catalog name: [ENF] entity not found
3 participants