Skip to content

Commit

Permalink
use constants for validation in datasource service_discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
saravanan30erd committed Aug 29, 2020
1 parent c0a2800 commit c26dfaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions aws/data_source_aws_service_discovery_dns_namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ func dataSourceServiceDiscoveryDnsNamespace() *schema.Resource {
Type: schema.TypeString,
Required: true,
ValidateFunc: validation.StringInSlice([]string{
"DNS_PUBLIC",
"DNS_PRIVATE",
servicediscovery.NamespaceTypeDnsPublic,
servicediscovery.NamespaceTypeDnsPrivate,
}, false),
},
"arn": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/hashicorp/terraform/helper/resource"
)

func TestAccAWSServiceDiscoveryDnsNamespace_basic(t *testing.T) {
func TestAccDataSourceAWSServiceDiscoveryDnsNamespace_basic(t *testing.T) {
resourceName := "data.aws_service_discovery_dns_namespace.test"

resource.ParallelTest(t, resource.TestCase{
Expand Down

0 comments on commit c26dfaf

Please sign in to comment.