mirror of https://github.com/hashicorp/terraform
``` make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSSESReceiptRuleSet_' ==> Checking that code complies with gofmt requirements... go generate $(go list ./... | grep -v /vendor/) TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSSESReceiptRuleSet_ -timeout 120m === RUN TestAccAWSSESReceiptRuleSet_importBasic --- PASS: TestAccAWSSESReceiptRuleSet_importBasic (18.60s) === RUN TestAccAWSSESReceiptRuleSet_basic --- PASS: TestAccAWSSESReceiptRuleSet_basic (26.92s) PASS ok github.com/hashicorp/terraform/builtin/providers/aws 45.550s ```pull/7539/head
parent
21e2173e0a
commit
aa6e23bc4b
@ -0,0 +1,28 @@
|
||||
package aws
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/hashicorp/terraform/helper/resource"
|
||||
)
|
||||
|
||||
func TestAccAWSSESReceiptRuleSet_importBasic(t *testing.T) {
|
||||
resourceName := "aws_ses_receipt_rule_set.test"
|
||||
|
||||
resource.Test(t, resource.TestCase{
|
||||
PreCheck: func() { testAccPreCheck(t) },
|
||||
Providers: testAccProviders,
|
||||
CheckDestroy: testAccCheckSESReceiptRuleSetDestroy,
|
||||
Steps: []resource.TestStep{
|
||||
resource.TestStep{
|
||||
Config: testAccAWSSESReceiptRuleSetConfig,
|
||||
},
|
||||
|
||||
resource.TestStep{
|
||||
ResourceName: resourceName,
|
||||
ImportState: true,
|
||||
ImportStateVerify: true,
|
||||
},
|
||||
},
|
||||
})
|
||||
}
|
||||
Loading…
Reference in new issue