-
Notifications
You must be signed in to change notification settings - Fork 50
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
added self_link to hvn, peering and tgw attachment #111
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but am unfamiliar with the repo so will let Brenna do the approval!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! My only ask: could you update the acceptance tests too? https://github.com/hashicorp/terraform-provider-hcp/blob/main/internal/provider/resource_hvn_test.go
@bcmdarroch good point, thank you for noticing! updated the test |
@@ -102,6 +106,41 @@ func testAccCheckHvnExists(name string) resource.TestCheckFunc { | |||
} | |||
} | |||
|
|||
func testSelfLink(name string, expectedID, expectedType string) resource.TestCheckFunc { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for adding this! probably something we could share with future tests :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, this is how I saw it too
[auto] Sync with Public Provider
🛠️ Description
Added
self_link
attribute to hvn, peering and tgw attachment resources and datasources.