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
```
This commit is contained in:
stack72 2017-05-09 13:06:11 +03:00
parent 880071ded5
commit d637885dc3
No known key found for this signature in database
GPG Key ID: 8619A619B085CB16
2 changed files with 4 additions and 5 deletions

View File

@ -19,17 +19,16 @@ func resourceAwsSesDomainIdentity() *schema.Resource {
}, },
Schema: map[string]*schema.Schema{ Schema: map[string]*schema.Schema{
"arn": &schema.Schema{ "arn": {
Type: schema.TypeString, Type: schema.TypeString,
Optional: true,
Computed: true, Computed: true,
}, },
"domain": &schema.Schema{ "domain": {
Type: schema.TypeString, Type: schema.TypeString,
Required: true, Required: true,
ForceNew: true, ForceNew: true,
}, },
"verification_token": &schema.Schema{ "verification_token": {
Type: schema.TypeString, Type: schema.TypeString,
Computed: true, Computed: true,
}, },

View File

@ -23,7 +23,7 @@ func TestAccAwsSESDomainIdentity_basic(t *testing.T) {
Providers: testAccProviders, Providers: testAccProviders,
CheckDestroy: testAccCheckAwsSESDomainIdentityDestroy, CheckDestroy: testAccCheckAwsSESDomainIdentityDestroy,
Steps: []resource.TestStep{ Steps: []resource.TestStep{
resource.TestStep{ {
Config: fmt.Sprintf(testAccAwsSESDomainIdentityConfig, domain), Config: fmt.Sprintf(testAccAwsSESDomainIdentityConfig, domain),
Check: resource.ComposeTestCheckFunc( Check: resource.ComposeTestCheckFunc(
testAccCheckAwsSESDomainIdentityExists("aws_ses_domain_identity.test"), testAccCheckAwsSESDomainIdentityExists("aws_ses_domain_identity.test"),