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

Allow dots in the name of aws_db_subnet_group #2665

Merged
merged 1 commit into from
Jul 10, 2015

Conversation

bitglue
Copy link

@bitglue bitglue commented Jul 9, 2015

The RDS API reference doesn't say dots are allowed, but they are. For
the sake of people who have preexisting resources with dots in the
names, we should allow them also. Fixes #2664.

@radeksimko
Copy link
Member

@bitglue Thanks for the report and PR!

Like AWS, we allow it but don't say it.

I'm not entirely convinced that's a good approach.

Would you mind updating the error message (i.e. mentioning dots are allowed too) instead of adding the comment & add a test similar to 0ba0419 , please?

@bitglue
Copy link
Author

bitglue commented Jul 9, 2015

Well, attempted to add a test, but either both I and Travis don't understand how to run it, or it's not actually testing anything useful, since the tests pass even if I totally break the regex.

@phinze
Copy link
Contributor

phinze commented Jul 9, 2015

Hi @bitglue - it's an acceptance test that interacts with an AWS account, so it won't be run by travis. The README has details on how to run acc tests.

The RDS API reference doesn't say dots are allowed, but they are. For
the sake of people who have preexisting resources with dots in the
names, we should allow them also. Fixes hashicorp#2664.
@bitglue
Copy link
Author

bitglue commented Jul 9, 2015

OK well, I put it back to a working configuration. I don't know if the tests work or not -- running the acceptance tests is beyond the threshold of effort I can expend on a one-character bugfix.

@phinze
Copy link
Contributor

phinze commented Jul 10, 2015

Sounds good @bitglue, we can double check them on our side.

@radeksimko
Copy link
Member

$ make testacc TEST=./builtin/providers/aws TESTARGS='-run=DBSubnetGroup' 2>/dev/null
go generate ./...
TF_ACC=1 go test ./builtin/providers/aws -v -run=DBSubnetGroup -timeout 90m
=== RUN TestAccAWSDBSubnetGroup_basic
--- PASS: TestAccAWSDBSubnetGroup_basic (15.76s)
=== RUN TestAccAWSDBSubnetGroup_withUnderscores
--- PASS: TestAccAWSDBSubnetGroup_withUnderscores (12.57s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/aws    28.348s

^ works aok => 👍 @bitglue

the test could be renamed too, but I can do it afterwards.

radeksimko added a commit that referenced this pull request Jul 10, 2015
Allow dots in the name of aws_db_subnet_group
@radeksimko radeksimko merged commit 77e563d into hashicorp:master Jul 10, 2015
@radeksimko
Copy link
Member

FYI I just reported this to AWS as I did underscores a while back too.
It has been acknowledged and docs will get updated.

@ghost
Copy link

ghost commented May 1, 2020

I'm going to lock this issue 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 similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators May 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aws_db_subnet_group should allow dots in the name
3 participants