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

Add 'read_only_shared_with_other_orgs' sharing property #1020

Merged
merged 55 commits into from
Nov 14, 2023

Conversation

dataclouder
Copy link
Contributor

@dataclouder dataclouder commented Mar 17, 2023

Update vcd_catalog_access_control with property read_only_shared_with_other_orgs, to address Issue #987

Testing

There is a curious failure that happens in some resources. It has been addressed with a not entirely satisfying retry mechanism.

To see the failure, run

VCD_SKIP_RETRY=1 go test  -tags catalog -v -timeout 0 -run 'TestAccVcdCatalogAccessControl2'

To see where the retry acts, and the failure would have occurred without it, run

VCD_RETRY_VERBOSE=1 go test  -tags catalog -v -timeout 0 -run 'TestAccVcdCatalogAccessControl2'

Each occurrence of attempts=1 (or =2) shows an averted failure.

Giuseppe Maxia added 2 commits March 17, 2023 12:17
@dataclouder dataclouder self-assigned this Mar 17, 2023
Giuseppe Maxia added 27 commits March 21, 2023 18:03
* Some VCD versions (< 10.4.1) fail on slow network connections and need
  a retry to complete a catalog deletion

Signed-off-by: Giuseppe Maxia <[email protected]>
Signed-off-by: Giuseppe Maxia <[email protected]>
Signed-off-by: Giuseppe Maxia <[email protected]>
Signed-off-by: Giuseppe Maxia <[email protected]>
Signed-off-by: Giuseppe Maxia <[email protected]>
Signed-off-by: Giuseppe Maxia <[email protected]>
Signed-off-by: Giuseppe Maxia <[email protected]>
Signed-off-by: Giuseppe Maxia <[email protected]>
Signed-off-by: Giuseppe Maxia <[email protected]>
Signed-off-by: Giuseppe Maxia <[email protected]>
Signed-off-by: Giuseppe Maxia <[email protected]>
Signed-off-by: Giuseppe Maxia <[email protected]>
Signed-off-by: Giuseppe Maxia <[email protected]>
Giuseppe Maxia added 3 commits October 4, 2023 17:39
website/docs/r/catalog_access_control.html.markdown Outdated Show resolved Hide resolved
vcd/resource_vcd_catalog_access_control.go Show resolved Hide resolved
vcd/resource_vcd_org_user.go Show resolved Hide resolved
vcd/resource_vcd_org_user.go Show resolved Hide resolved
Giuseppe Maxia added 6 commits October 26, 2023 20:26
Copy link
Collaborator

@Didainius Didainius left a comment

Choose a reason for hiding this comment

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

I have tested it manually - setting and resetting it worked.

vcd/resource_vcd_catalog_access_control.go Outdated Show resolved Hide resolved
vcd/resource_vcd_catalog_access_control2_test.go Outdated Show resolved Hide resolved
vcd/resource_vcd_catalog_access_control.go Show resolved Hide resolved
vcd/resource_vcd_catalog_access_control2_test.go Outdated Show resolved Hide resolved
vcd/resource_vcd_org.go Show resolved Hide resolved
Giuseppe Maxia added 7 commits November 13, 2023 16:42
Copy link
Collaborator

@adambarreiro adambarreiro left a comment

Choose a reason for hiding this comment

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

LGTM!
I tried with and without retry and got the expected results.

Copy link

@adezxc adezxc left a comment

Choose a reason for hiding this comment

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

Tested with and without env variables and got the expected errors

Giuseppe Maxia added 2 commits November 14, 2023 15:43
Signed-off-by: Giuseppe Maxia <[email protected]>
Signed-off-by: Giuseppe Maxia <[email protected]>
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.

5 participants