-
Notifications
You must be signed in to change notification settings - Fork 178
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
INTMDB-263: Create Resource and Datasource for private_link_endpoint_adl #640
Conversation
@themantissa There's still a problem with the API_KEYS that actually Edgar is resolving in another PR, that's why this PR is failing in this moment |
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
if err != nil { | ||
// case 404 | ||
// deleted in the backend case | ||
reset := strings.Contains(err.Error(), "404") && !d.IsNewResource() |
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.
[q] Why did you add && !d.IsNewResource()
? why getting 404 is not enough to remove the resource?
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.
this was added to avoid eventual inconsistency but in this case is not necessary
mongodbatlas/data_source_mongodbatlas_privatelink_endpoints_service_adl.go
Outdated
Show resolved
Hide resolved
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.
Error and docs suggestions/comments. Once edited I'd like our doc team to review before we merge to ensure that how we've presented this makes sense for both ADL and Online Archive.
mongodbatlas/data_source_mongodbatlas_privatelink_endpoints_service_adl.go
Outdated
Show resolved
Hide resolved
mongodbatlas/data_source_mongodbatlas_privatelink_endpoint_service_adl.go
Outdated
Show resolved
Hide resolved
mongodbatlas/resource_mongodbatlas_privatelink_endpoint_service_adl.go
Outdated
Show resolved
Hide resolved
mongodbatlas/resource_mongodbatlas_privatelink_endpoint_service_adl.go
Outdated
Show resolved
Hide resolved
mongodbatlas/resource_mongodbatlas_privatelink_endpoint_service_adl.go
Outdated
Show resolved
Hide resolved
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, will tag docs just for a quick check.
@jwilliams-mongo can you review the docs portion of this for a check? Per guidence from the Data Lake team we are using the same resource for both Data Lake and Online Archive as it's the exact same API endpoint. In the Atlas Admin Doc it's described with two different endpoints, which makes it clear but wouldn't really work here. Does this seem clear enough to you? |
Sorry for the delay @themantissa I was OOTO. Would you still like me to take a look at this? |
Description
A new resource and datasource was create for private link endpoints in datalake and online archive
Link to any related issue(s):INTMDB-263
Type of change:
Required Checklist:
Further comments
TESTS:
--- PASS: TestAccResourceMongoDBAtlasPrivateLinkEndpointServiceADL_basic (6.90s)
PASS
coverage: 2.8% of statements
ok github.com/mongodb/terraform-provider-mongodbatlas/mongodbatlas 9.475s coverage: 2.8% of statements
? github.com/mongodb/terraform-provider-mongodbatlas/version [no test files]
--- PASS: TestAccResourceMongoDBAtlasPrivateLinkEndpointServiceADL_importBasic (4.23s)
PASS
coverage: 2.8% of statements
ok github.com/mongodb/terraform-provider-mongodbatlas/mongodbatlas 6.828s coverage: 2.8% of statements
? github.com/mongodb/terraform-provider-mongodbatlas/version [no test files]
--- PASS: TestAccDataSourceMongoDBAtlasPrivateLinkEndpointServiceADL_basic (4.33s)
PASS
coverage: 2.8% of statements
ok github.com/mongodb/terraform-provider-mongodbatlas/mongodbatlas 6.901s coverage: 2.8% of statements
? github.com/mongodb/terraform-provider-mongodbatlas/version [no test files]
--- PASS: TestAccDataSourceMongoDBAtlasPrivateLinkEndpointsServiceADL_basic (4.34s)
PASS
coverage: 3.0% of statements
ok github.com/mongodb/terraform-provider-mongodbatlas/mongodbatlas 6.976s coverage: 3.0% of statements
? github.com/mongodb/terraform-provider-mongodbatlas/version [no test files]