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

Data source for aws_service_discovery_dns_namespace #6856

Merged
merged 8 commits into from
May 19, 2021

Conversation

saravanan30erd
Copy link
Contributor

Fixes #6384

Output from acceptance testing:

$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSServiceDiscoveryDnsNamespace_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -parallel 20 -run=TestAccAWSServiceDiscoveryDnsNamespace_basic -timeout 120m
=== RUN   TestAccAWSServiceDiscoveryDnsNamespace_basic
=== PAUSE TestAccAWSServiceDiscoveryDnsNamespace_basic
=== CONT  TestAccAWSServiceDiscoveryDnsNamespace_basic
--- PASS: TestAccAWSServiceDiscoveryDnsNamespace_basic (175.88s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws
...

@ghost ghost added size/L Managed by automation to categorize the size of a PR. provider Pertains to the provider itself, rather than any interaction with AWS. service/servicediscovery Issues and PRs that pertain to the servicediscovery service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. documentation Introduces or discusses updates to documentation. labels Dec 14, 2018
@bflad bflad added the new-data-source Introduces a new data source. label Dec 19, 2018
Copy link
Member

@mbfrahry mbfrahry left a comment

Choose a reason for hiding this comment

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

Hey @saravanan30erd! This looks great, I'd just swap to using constants for validation on the dns_type attribute

aws/data_source_aws_service_discovery_dns_namespace.go Outdated Show resolved Hide resolved
@saravanan30erd
Copy link
Contributor Author

$ make testacc TEST=./aws TESTARGS='-run=TestAccDataSourceAWSServiceDiscoveryDnsNamespace_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -parallel 20 -run=TestAccDataSourceAWSServiceDiscoveryDnsNamespace_basic -timeout 120m
=== RUN TestAccDataSourceAWSServiceDiscoveryDnsNamespace_basic
=== PAUSE TestAccDataSourceAWSServiceDiscoveryDnsNamespace_basic
=== CONT TestAccDataSourceAWSServiceDiscoveryDnsNamespace_basic
--- PASS: TestAccDataSourceAWSServiceDiscoveryDnsNamespace_basic (168.80s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 168.848s

@borgstrom
Copy link
Contributor

@mbfrahry -- Looks like this one is ready to go. Could you give it another review please? This data source will make my life so much easier! :)

@saravanan30erd
Copy link
Contributor Author

@bflad Can we push this? anything I need to do from my end?

@deedoz
Copy link

deedoz commented Mar 19, 2019

Hello,
Good job !
I miss this datasource also, looking forward for the merge.

@charlyx
Copy link
Contributor

charlyx commented Mar 19, 2019

Great work @saravanan30erd 👏(I believe there is now a button to request a new review).

Hi @mbfrahry 👋
Thanks for your review. It looks like the changes you've requested have been done.
Is there anything else blocking the merge of this PR? I'm really looking forward to using it 🙏

@imranjavaid
Copy link

When can we expect a merge of this?

@loivis
Copy link
Contributor

loivis commented May 21, 2020

@mbfrahry @bflad merge if conflicts can be resolved?

@completenovice
Copy link

Hello, what is the status of this, please? Is this still being developed on?

@saravanan30erd saravanan30erd requested a review from a team July 21, 2020 18:26
@teamterraform
Copy link

Notification of Recent and Upcoming Changes to Contributions

Thank you for this contribution! There have been a few recent development changes that affect this pull request. We apologize for the inconvenience, especially if there have been long review delays up until now. Please note that this is automated message from an unmonitored account. See the FAQ for additional information on the maintainer team and review prioritization.

If you are unable to complete these updates, please leave a comment for the community and maintainers so someone can potentially continue the work. The maintainers will encourage other contributors to use the existing contribution as the base for additional changes as appropriate. Otherwise, contributions that do not receive updated code or comments from the original contributor may be closed in the future so the maintainers can focus on active items.

For the most up to date information about Terraform AWS Provider development, see the Contributing Guide. Additional technical debt changes can be tracked with the technical-debt label on issues.

As part of updating a pull request with these changes, the most current unit testing and linting will run. These may report issues that were not previously reported.

Action Required: Terraform 0.12 Syntax

Reference: #8950
Reference: #14417

Version 3 and later of the Terraform AWS Provider, which all existing contributions would potentially be added, only supports Terraform 0.12 and later. Certain syntax elements of Terraform 0.11 and earlier show deprecation warnings during runs with Terraform 0.12. Documentation and test configurations, such as those including deprecated string interpolations (some_attribute = "${aws_service_thing.example.id}") should be updated to the newer syntax (some_attribute = aws_service_thing.example.id). Contribution testing will automatically fail on older syntax in the near future. Please see the referenced issues for additional information.

Action Required: Terraform Plugin SDK Version 2

Reference: #14551

The Terraform AWS Provider has been upgraded to the latest version of the Terraform Plugin SDK. Generally, most changes to contributions should only involve updating Go import paths in source code files. Please see the referenced issue for additional information.

Action Required: Removal of website/aws.erb File

Reference: #14712

Any changes to the website/aws.erb file are no longer necessary and should be removed from this contribution to prevent merge issues in the near future when the file is removed from the repository. Please see the referenced issue for additional information.

Upcoming Change of Git Branch Naming

Reference: #14292

Development environments will need their upstream Git branch updated from master to main in the near future. Please see the referenced issue for additional information and scheduling.

Upcoming Change of GitHub Organization

Reference: #14715

This repository will be migrating from https://github.com/terraform-providers/terraform-provider-aws to https://github.com/hashicorp/terraform-provider-aws. No practitioner or developer action is anticipated and most GitHub functionality will automatically redirect to the new location. Go import paths including terraform-providers can remain for now. Please see the referenced issue for additional information and scheduling.

@ewbankkit
Copy link
Contributor

@saravanan30erd Thanks for the contribution and apologies for the delay in responding.
Are you able to address the changes mentioned in the comment above?

@saravanan30erd
Copy link
Contributor Author

@ewbankkit sure, I will rename the attribute and update you.

@ewbankkit
Copy link
Contributor

@saravanan30erd
Copy link
Contributor Author

@ewbankkit I renamed the attr dns_type to type. Please check.

Base automatically changed from master to main January 23, 2021 00:55
@breathingdust breathingdust requested a review from a team as a code owner January 23, 2021 00:55
@dayglojesus
Copy link

Original submission on this was December 2018?? holy cow. Talk about contributor purgatory. I cannot believe the author stuck with it as long as they did. ping @ewbankkit

Is there no way for this to see daylight?

@saravanan30erd
Copy link
Contributor Author

@anGie44 please check this PR

@anGie44 anGie44 self-assigned this Apr 22, 2021
@anGie44
Copy link
Contributor

anGie44 commented May 18, 2021

Output of acceptance tests (Commercial):

--- PASS: TestAccAWSServiceDiscoveryDnsNamespaceDataSource_public (106.18s)
--- PASS: TestAccAWSServiceDiscoveryDnsNamespaceDataSource_private (114.47s)

Output of acceptance tests (Gov Cloud):

--- SKIP: TestAccAWSServiceDiscoveryDnsNamespaceDataSource_public (22.31s)
--- SKIP: TestAccAWSServiceDiscoveryDnsNamespaceDataSource_private (25.67s)

Copy link
Contributor

@anGie44 anGie44 left a comment

Choose a reason for hiding this comment

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

Hi again @saravanan30erd , thank you for this PR! Overall looked great 👍 Major thing was getting the PR aligned with new conventions used in the provider as we've migrated over to the V2 of the terraform plugin SDK. Plan to get this into the upcoming release later this week.

@anGie44 anGie44 added this to the v3.42.0 milestone May 19, 2021
@anGie44
Copy link
Contributor

anGie44 commented May 19, 2021

Output of acceptance tests:

--- PASS: TestAccAWSServiceDiscoveryPublicDnsNamespace_disappears (359.05s)
--- PASS: TestAccAWSServiceDiscoveryPublicDnsNamespace_basic (369.10s)
--- PASS: TestAccAWSServiceDiscoveryDnsNamespaceDataSource_public (400.97s)
--- PASS: TestAccAWSServiceDiscoveryHttpNamespace_disappears (401.87s)
--- PASS: TestAccAWSServiceDiscoveryPrivateDnsNamespace_error_Overlap (433.00s)
--- PASS: TestAccAWSServiceDiscoveryPublicDnsNamespace_Description (455.22s)
--- PASS: TestAccAWSServiceDiscoveryService_disappears (508.90s)
--- PASS: TestAccAWSServiceDiscoveryHttpNamespace_Description (509.43s)
--- PASS: TestAccAWSServiceDiscoveryDnsNamespaceDataSource_private (510.19s)
--- PASS: TestAccAWSServiceDiscoveryHttpNamespace_basic (510.77s)
--- PASS: TestAccAWSServiceDiscoveryPrivateDnsNamespace_disappears (511.99s)
--- PASS: TestAccAWSServiceDiscoveryService_http (557.40s)
--- PASS: TestAccAWSServiceDiscoveryPrivateDnsNamespace_Description (558.17s)
--- PASS: TestAccAWSServiceDiscoveryPublicDnsNamespace_Tags (601.90s)
--- PASS: TestAccAWSServiceDiscoveryPrivateDnsNamespace_basic (602.43s)
--- PASS: TestAccAWSServiceDiscoveryService_Tags (674.79s)
--- PASS: TestAccAWSServiceDiscoveryHttpNamespace_Tags (675.31s)
--- PASS: TestAccAWSServiceDiscoveryService_public (675.98s)
--- PASS: TestAccAWSServiceDiscoveryService_private (704.14s)
--- PASS: TestAccAWSServiceDiscoveryPrivateDnsNamespace_Tags (712.03s)

@anGie44 anGie44 merged commit 8ee12f5 into hashicorp:main May 19, 2021
@dayglojesus
Copy link

huzzah!

@ghost
Copy link

ghost commented May 20, 2021

This has been released in version 3.42.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@oscargarciajr
Copy link

oscargarciajr commented Jun 4, 2021

Do we have documentation on how to use this?

data "aws_service_discovery_service" "controller" {
namespace = "namespace"
}

error: The provider hashicorp/aws does not support data source "aws_service_discovery_service"
aws 3.42..0

@github-actions
Copy link

github-actions bot commented Jul 5, 2021

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. new-data-source Introduces a new data source. provider Pertains to the provider itself, rather than any interaction with AWS. service/servicediscovery Issues and PRs that pertain to the servicediscovery service. size/L Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Data source for aws_service_discovery_private_namespace