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 underscore in database_name [redshift] #10019

Merged
merged 4 commits into from
Nov 11, 2016

Conversation

sharmaansh21
Copy link
Contributor

Fixes #10009

@stack72
Copy link
Contributor

stack72 commented Nov 10, 2016

Hi @optimisticanshul

Thanks for the work here - please can you add a test that covers the different use cases? You can use iam_user name validation as an example

Thanks

Paul

@stack72 stack72 added bug provider/aws waiting-response An issue/pull request is waiting for a response from the community labels Nov 10, 2016
@sharmaansh21 sharmaansh21 changed the title allow underscore in database_name [redshift] [WIP] allow underscore in database_name [redshift] Nov 10, 2016
@sharmaansh21
Copy link
Contributor Author

sharmaansh21 commented Nov 10, 2016

anssharma@Ban-1Anssharma-M:~/Code/go/src/github.com/hashicorp/terraform|patch-2
⇒  make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestValidateRedshiftClusterDbName'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2016/11/10 18:50:01 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/aws -v -run=TestValidateRedshiftClusterDbName -timeout 120m
=== RUN   TestValidateRedshiftClusterDbName
--- PASS: TestValidateRedshiftClusterDbName (0.00s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/aws    5.586s
anssharma@Ban-1Anssharma-M:~/Code/go/src/github.com/hashicorp/terraform|patch-2
⇒  make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSRedshiftCluster_'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2016/11/10 18:52:16 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSRedshiftCluster_ -timeout 120m
=== RUN   TestAccAWSRedshiftCluster_importBasic
--- PASS: TestAccAWSRedshiftCluster_importBasic (601.34s)

@sharmaansh21 sharmaansh21 changed the title [WIP] allow underscore in database_name [redshift] Allow underscore in database_name [redshift] Nov 10, 2016
@sharmaansh21
Copy link
Contributor Author

@stack72 Ready for another review.

@stack72
Copy link
Contributor

stack72 commented Nov 10, 2016

Hi @optimisticanshul

1 last addition please - can you readd back in the failing test cases for too long and empty string? :)

Thanks

@sharmaansh21
Copy link
Contributor Author

@stack72 👍

@stack72
Copy link
Contributor

stack72 commented Nov 11, 2016

Thanks for all the work here @optimisticanshul :)

LGTM!

@stack72 stack72 merged commit e1919ed into hashicorp:master Nov 11, 2016
stack72 pushed a commit that referenced this pull request Nov 11, 2016
* allow underscore in database_name [redshift]

Fixes #10009

* Added Test Cases To Validate Redshift DBName

* Remove Old Test Cases Regarding Redshift DBName Validation

* Added More Test Cases For Redshift DBName
@sharmaansh21 sharmaansh21 deleted the patch-2 branch November 11, 2016 10:30
gusmat pushed a commit to gusmat/terraform that referenced this pull request Dec 6, 2016
* allow underscore in database_name [redshift]

Fixes hashicorp#10009

* Added Test Cases To Validate Redshift DBName

* Remove Old Test Cases Regarding Redshift DBName Validation

* Added More Test Cases For Redshift DBName
fatmcgav pushed a commit to fatmcgav/terraform that referenced this pull request Feb 27, 2017
* allow underscore in database_name [redshift]

Fixes hashicorp#10009

* Added Test Cases To Validate Redshift DBName

* Remove Old Test Cases Regarding Redshift DBName Validation

* Added More Test Cases For Redshift DBName
@ghost
Copy link

ghost commented Apr 20, 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 Apr 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug provider/aws waiting-response An issue/pull request is waiting for a response from the community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aws_redshift_cluster does not allow underscore in database_name
2 participants