From d637885dc3c8fc6e414ec9e89845b6ed6ab7ce4e Mon Sep 17 00:00:00 2001 From: stack72 Date: Tue, 9 May 2017 13:06:11 +0300 Subject: [PATCH] provider/aws: Removal of Optional from aws_ses_domain_identity arn param ``` % make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAwsSESDomainIdentity_' ==> Checking that code complies with gofmt requirements... go generate $(go list ./... | grep -v /terraform/vendor/) 2017/05/09 13:05:15 Generated command/internal_plugin_list.go TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAwsSESDomainIdentity_ -timeout 120m === RUN TestAccAwsSESDomainIdentity_basic --- PASS: TestAccAwsSESDomainIdentity_basic (23.53s) PASS ok github.com/hashicorp/terraform/builtin/providers/aws 23.545s ``` --- builtin/providers/aws/resource_aws_ses_domain_identity.go | 7 +++---- .../providers/aws/resource_aws_ses_domain_identity_test.go | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/builtin/providers/aws/resource_aws_ses_domain_identity.go b/builtin/providers/aws/resource_aws_ses_domain_identity.go index e7498f4f54..734030cc71 100644 --- a/builtin/providers/aws/resource_aws_ses_domain_identity.go +++ b/builtin/providers/aws/resource_aws_ses_domain_identity.go @@ -19,17 +19,16 @@ func resourceAwsSesDomainIdentity() *schema.Resource { }, Schema: map[string]*schema.Schema{ - "arn": &schema.Schema{ + "arn": { Type: schema.TypeString, - Optional: true, Computed: true, }, - "domain": &schema.Schema{ + "domain": { Type: schema.TypeString, Required: true, ForceNew: true, }, - "verification_token": &schema.Schema{ + "verification_token": { Type: schema.TypeString, Computed: true, }, diff --git a/builtin/providers/aws/resource_aws_ses_domain_identity_test.go b/builtin/providers/aws/resource_aws_ses_domain_identity_test.go index 5d25fc2319..a151c39cfc 100644 --- a/builtin/providers/aws/resource_aws_ses_domain_identity_test.go +++ b/builtin/providers/aws/resource_aws_ses_domain_identity_test.go @@ -23,7 +23,7 @@ func TestAccAwsSESDomainIdentity_basic(t *testing.T) { Providers: testAccProviders, CheckDestroy: testAccCheckAwsSESDomainIdentityDestroy, Steps: []resource.TestStep{ - resource.TestStep{ + { Config: fmt.Sprintf(testAccAwsSESDomainIdentityConfig, domain), Check: resource.ComposeTestCheckFunc( testAccCheckAwsSESDomainIdentityExists("aws_ses_domain_identity.test"),