-
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
various framework validators #29292
various framework validators #29292
Conversation
Community NoteVoting for Prioritization
For Submitters
|
Tests for framework validators $ make test TEST='./internal/framework/... -v' TESTARGS='-count=1'
==> Checking that code complies with gofmt requirements...
go test ./internal/framework/... -v -count=1 -timeout=5m
--- PASS: TestAttributeTypes (0.00s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/framework 0.398s
--- PASS: TestDefaultValue (0.00s)
--- PASS: TestDefaultValue/default_bool (0.00s)
--- PASS: TestDefaultValue/default_bool_on_create (0.00s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/framework/boolplanmodifier 0.417s
--- PASS: TestDefaultValue (0.00s)
--- PASS: TestDefaultValue/default_int64 (0.00s)
--- PASS: TestDefaultValue/default_int64_on_create (0.00s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/framework/int64planmodifier 0.307s
--- PASS: TestDefaultValue (0.00s)
--- PASS: TestDefaultValue/non-default_non-Null_string (0.00s)
--- PASS: TestDefaultValue/default_string (0.00s)
--- PASS: TestDefaultValue/non-default_non-Null_string,_current_Null (0.00s)
--- PASS: TestDefaultValue/default_string_on_create (0.00s)
--- PASS: TestDefaultValue/non-default_Null_string,_current_Null (0.00s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/framework/stringplanmodifier 0.479s
--- PASS: TestARNTypeValidate (0.00s)
--- PASS: TestARNTypeValidate/invalid_string (0.00s)
--- PASS: TestARNTypeValidate/valid_string (0.00s)
--- PASS: TestARNTypeValidate/null_string (0.00s)
--- PASS: TestARNTypeValidate/unknown_string (0.00s)
--- PASS: TestARNTypeValidate/not_a_string (0.00s)
--- PASS: TestDurationTypeValidate (0.00s)
--- PASS: TestDurationTypeValidate/invalid_string (0.00s)
--- PASS: TestDurationTypeValidate/unknown_string (0.00s)
--- PASS: TestDurationTypeValidate/not_a_string (0.00s)
--- PASS: TestDurationTypeValidate/valid_string (0.00s)
--- PASS: TestDurationTypeValidate/null_string (0.00s)
--- PASS: TestDurationTypeValueFromTerraform (0.00s)
--- PASS: TestDurationTypeValueFromTerraform/invalid_duration (0.00s)
--- PASS: TestDurationTypeValueFromTerraform/null_value (0.00s)
--- PASS: TestDurationTypeValueFromTerraform/valid_duration (0.00s)
--- PASS: TestDurationTypeValueFromTerraform/unknown_value (0.00s)
--- PASS: TestARNTypeValueFromTerraform (0.00s)
--- PASS: TestARNTypeValueFromTerraform/invalid_duration (0.00s)
--- PASS: TestARNTypeValueFromTerraform/null_value (0.00s)
--- PASS: TestARNTypeValueFromTerraform/valid_ARN (0.00s)
--- PASS: TestARNTypeValueFromTerraform/unknown_value (0.00s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/framework/types 0.360s
--- PASS: TestUTCTimestampValidator (0.00s)
--- PASS: TestUTCTimestampValidator/unknown_String (0.00s)
--- PASS: TestUTCTimestampValidator/null_String (0.00s)
--- PASS: TestUTCTimestampValidator/valid_timestamp (0.00s)
--- PASS: TestUTCTimestampValidator/invalid_timestamp (0.00s)
--- PASS: TestIPv4CIDRNetworkAddressValidator (0.00s)
--- PASS: TestIPv4CIDRNetworkAddressValidator/unknown_String (0.00s)
--- PASS: TestIPv4CIDRNetworkAddressValidator/invalid_String (0.00s)
--- PASS: TestIPv4CIDRNetworkAddressValidator/invalid_IPv4_CIDR (0.00s)
--- PASS: TestIPv4CIDRNetworkAddressValidator/null_String (0.00s)
--- PASS: TestIPv4CIDRNetworkAddressValidator/valid_IPv6_CIDR (0.00s)
--- PASS: TestIPv4CIDRNetworkAddressValidator/valid_IPv4_CIDR (0.00s)
--- PASS: TestClusterFinalSnapshotIdentifierValidator (0.00s)
--- PASS: TestClusterFinalSnapshotIdentifierValidator/unknown_String (0.00s)
--- PASS: TestClusterFinalSnapshotIdentifierValidator/null_String (0.00s)
--- PASS: TestClusterFinalSnapshotIdentifierValidator/contains_consecutive_hyphens (0.00s)
--- PASS: TestClusterFinalSnapshotIdentifierValidator/begins_with_number (0.00s)
--- PASS: TestClusterFinalSnapshotIdentifierValidator/ends_with_hyphens (0.00s)
--- PASS: TestClusterFinalSnapshotIdentifierValidator/valid_identifier (0.00s)
--- PASS: TestClusterFinalSnapshotIdentifierValidator/contains_uppercase (0.00s)
--- PASS: TestClusterFinalSnapshotIdentifierValidator/contains_special_character (0.00s)
--- PASS: TestIPv6CIDRNetworkAddressValidator (0.00s)
--- PASS: TestIPv6CIDRNetworkAddressValidator/unknown_String (0.00s)
--- PASS: TestIPv6CIDRNetworkAddressValidator/valid_IPv6_CIDR (0.00s)
--- PASS: TestIPv6CIDRNetworkAddressValidator/null_String (0.00s)
--- PASS: TestIPv6CIDRNetworkAddressValidator/valid_IPv4_CIDR (0.00s)
--- PASS: TestIPv6CIDRNetworkAddressValidator/invalid_IPv6_CIDR (0.00s)
--- PASS: TestIPv6CIDRNetworkAddressValidator/invalid_String (0.00s)
--- PASS: TestClusterIdentifierPrefixValidator (0.00s)
--- PASS: TestClusterIdentifierPrefixValidator/unknown_String (0.00s)
--- PASS: TestClusterIdentifierPrefixValidator/contains_special_character (0.00s)
--- PASS: TestClusterIdentifierPrefixValidator/contains_consecutive_hyphens (0.00s)
--- PASS: TestClusterIdentifierPrefixValidator/contains_uppercase (0.00s)
--- PASS: TestClusterIdentifierPrefixValidator/valid_identifier (0.00s)
--- PASS: TestClusterIdentifierPrefixValidator/null_String (0.00s)
--- PASS: TestClusterIdentifierValidator (0.00s)
--- PASS: TestClusterIdentifierValidator/unknown_String (0.00s)
--- PASS: TestClusterIdentifierValidator/begins_with_number (0.00s)
--- PASS: TestClusterIdentifierValidator/contains_special_character (0.00s)
--- PASS: TestClusterIdentifierValidator/null_String (0.00s)
--- PASS: TestClusterIdentifierValidator/ends_with_hyphens (0.00s)
--- PASS: TestClusterIdentifierValidator/contains_consecutive_hyphens (0.00s)
--- PASS: TestClusterIdentifierValidator/contains_uppercase (0.00s)
--- PASS: TestClusterIdentifierValidator/valid_identifier (0.00s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/framework/validators 0.608s |
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.
LGTM
$ go test -count=1 ./internal/flex/...
ok github.com/hashicorp/terraform-provider-aws/internal/flex 0.218s
This functionality has been released in v4.54.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. Thank you! |
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. |
Description
add common validators for Framework
Relations
Relates #29135
References
Output from Acceptance Testing