Skip to content

Commit

Permalink
hashicorp#931 Fixing issue with passing the concatenated ID, instead …
Browse files Browse the repository at this point in the history
…of identity
  • Loading branch information
hussfelt committed Apr 4, 2018
1 parent d933edc commit 7817071
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions aws/resource_aws_ses_identity_notification_topic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package aws

import (
"fmt"
"log"
"testing"

"github.com/aws/aws-sdk-go/aws"
Expand Down Expand Up @@ -48,11 +49,13 @@ func testAccCheckAwsSESIdentityNotificationTopicDestroy(s *terraform.State) erro
continue
}

identity := rs.Primary.ID
identity := rs.Primary.Attributes["identity"]
params := &ses.GetIdentityNotificationAttributesInput{
Identities: []*string{aws.String(identity)},
}

log.Printf("[DEBUG] Testing SES Identity Notification Topic Destroy: %#v", params)

response, err := conn.GetIdentityNotificationAttributes(params)
if err != nil {
return err
Expand All @@ -77,13 +80,15 @@ func testAccCheckAwsSESIdentityNotificationTopicExists(n string) resource.TestCh
return fmt.Errorf("SES Identity Notification Topic identity not set")
}

identity := rs.Primary.ID
identity := rs.Primary.Attributes["identity"]
conn := testAccProvider.Meta().(*AWSClient).sesConn

params := &ses.GetIdentityNotificationAttributesInput{
Identities: []*string{aws.String(identity)},
}

log.Printf("[DEBUG] Testing SES Identity Notification Topic Exists: %#v", params)

response, err := conn.GetIdentityNotificationAttributes(params)
if err != nil {
return err
Expand Down

0 comments on commit 7817071

Please sign in to comment.