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

Adding option_settings to aws_db_option_group #6560

Merged
merged 1 commit into from
May 11, 2016

Conversation

bigkraig
Copy link
Contributor

@bigkraig bigkraig commented May 9, 2016

Allows configuring settings for options

@stack72
Copy link
Contributor

stack72 commented May 10, 2016

Hi @bigkraig

This looks good, but when I ran the tests I got the following:

make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSDBOptionGroup' 2>~/tf.log
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /vendor/)
TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSDBOptionGroup -timeout 120m
=== RUN   TestAccAWSDBOptionGroup_basic
--- PASS: TestAccAWSDBOptionGroup_basic (22.02s)
=== RUN   TestAccAWSDBOptionGroup_OptionSettings
--- FAIL: TestAccAWSDBOptionGroup_OptionSettings (18.76s)
    testing.go:172: Step 0 error: Check failed: Check 4/4 error: aws_db_option_group.bar: Attribute 'option.2422743510.option_settings.1350509764.value' expected "UTC", got ""
=== RUN   TestAccAWSDBOptionGroup_sqlServerOptionsUpdate
--- PASS: TestAccAWSDBOptionGroup_sqlServerOptionsUpdate (36.95s)
=== RUN   TestAccAWSDBOptionGroup_multipleOptions
--- PASS: TestAccAWSDBOptionGroup_multipleOptions (21.17s)
FAIL
exit status 1
FAIL    github.com/hashicorp/terraform/builtin/providers/aws    98.919s

Can you have a look at this and see what you think the issue may be? I am running these tests against the newly merged master branch

P.

@bigkraig
Copy link
Contributor Author

@stack72 yeah, it's the numbers in the resource name, they change. I was able to run through them by running the test with debug logging, see what the numbers were, adjust and run again. It's pretty lame.

If there is a better way to do it I will make the change, but I got this from the ELB tests: https://github.com/hashicorp/terraform/blob/master/builtin/providers/aws/resource_aws_elb_test.go#L37

@stack72
Copy link
Contributor

stack72 commented May 11, 2016

Ah its just the hash number :( I usually have to run the test twice too and check the state for the hash values as well

@bigkraig
Copy link
Contributor Author

@stack72 yeah its a bummer. Does that mean this is good to merge?

@stack72
Copy link
Contributor

stack72 commented May 11, 2016 via email

@stack72
Copy link
Contributor

stack72 commented May 11, 2016

Hi @bigkraig

Just a FYI, this is now working. All tests are green :) Thanks for the work here. Will merge now

P.

make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSDBOptionGroup' 2>~/tf.log
==> Checking that code complies with gofmt requirements...
/Users/stacko/Code/go/bin/stringer
go generate $(go list ./... | grep -v /vendor/)
TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSDBOptionGroup -timeout 120m
=== RUN   TestAccAWSDBOptionGroup_basic
--- PASS: TestAccAWSDBOptionGroup_basic (41.78s)
=== RUN   TestAccAWSDBOptionGroup_OptionSettings
--- PASS: TestAccAWSDBOptionGroup_OptionSettings (51.68s)
=== RUN   TestAccAWSDBOptionGroup_sqlServerOptionsUpdate
--- PASS: TestAccAWSDBOptionGroup_sqlServerOptionsUpdate (43.77s)
=== RUN   TestAccAWSDBOptionGroup_multipleOptions
--- PASS: TestAccAWSDBOptionGroup_multipleOptions (47.45s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/aws    184.703s

@stack72 stack72 merged commit dc4dd76 into hashicorp:master May 11, 2016
@ghost
Copy link

ghost commented Apr 25, 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 25, 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.

2 participants