-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
resource/db_instance: add restore to point in time support #15969
Conversation
30a4c68
to
ffe6076
Compare
c090dc8
to
202d976
Compare
c17355e
to
de19bb1
Compare
aws/validators_test.go
Outdated
|
||
func TestValidateUTCTimestamp(t *testing.T) { | ||
validT := []string{ | ||
"2006-01-02T15:04:05Z", | ||
} | ||
|
||
invalidT := []string{ | ||
"2015-03-07 23:45:00", | ||
"27-03-2019 23:45:00", | ||
"Mon, 02 Jan 2006 15:04:05 -0700", | ||
} | ||
|
||
for _, f := range validT { | ||
_, errors := validateUTCTimestamp(f, "UTC timestamp") | ||
if len(errors) > 0 { | ||
t.Fatalf("Expected the time %q to be in valid format, got error %q", f, errors) | ||
} | ||
} | ||
|
||
for _, f := range invalidT { | ||
_, errors := validateUTCTimestamp(f, "invalid UTC timestamp") | ||
if len(errors) == 0 { | ||
t.Fatalf("Expected the time %q to fail validation", f) | ||
} | ||
} | ||
} |
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.
copied over from #7031 to re-use here though under a more generic func name
de19bb1
to
565b560
Compare
565b560
to
291851c
Compare
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.
A few nits but looks great!
GovCloud:
--- PASS: TestAccAWSDBInstance_MinorVersion (429.15s)
--- PASS: TestAccAWSDBInstance_basic (432.28s)
--- PASS: TestAccAWSDBInstance_AllowMajorVersionUpgrade (447.87s)
--- PASS: TestAccAWSDBInstance_namePrefix (449.64s)
--- PASS: TestAccAWSDBInstance_IsAlreadyBeingDeleted (459.03s)
--- PASS: TestAccAWSDBInstance_DbSubnetGroupName_VpcSecurityGroupIds (474.81s)
--- PASS: TestAccAWSDBInstance_RestoreToPointInTime_SourceResourceID (1305.06s)
--- PASS: TestAccAWSDBInstance_RestoreToPointInTime_SourceIdentifier (1388.71s)
40fdef3
to
29f6405
Compare
Co-authored-by: Dirk Avery <31492422+YakDriver@users.noreply.github.com>
Co-authored-by: Dirk Avery <31492422+YakDriver@users.noreply.github.com>
78d9d5f
to
dd30d59
Compare
fb33369
to
227fc68
Compare
This has been released in version 3.15.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! |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Relates #5286
Preceded by #7031
Release note for CHANGELOG:
Output from acceptance testing: