fix go fmt errors, my bad

This commit is contained in:
clint shryock 2017-04-13 15:24:18 -05:00
parent 923587a0c9
commit 89edd2859c
2 changed files with 7 additions and 7 deletions

View File

@ -3,21 +3,21 @@ package aws
import ( import (
"testing" "testing"
"github.com/hashicorp/terraform/helper/acctest" "github.com/hashicorp/terraform/helper/acctest"
"github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/resource"
) )
func TestAccAWSDynamoDbTable_importBasic(t *testing.T) { func TestAccAWSDynamoDbTable_importBasic(t *testing.T) {
resourceName := "aws_dynamodb_table.basic-dynamodb-table" resourceName := "aws_dynamodb_table.basic-dynamodb-table"
rName := acctest.RandomWithPrefix("TerraformTestTable-") rName := acctest.RandomWithPrefix("TerraformTestTable-")
resource.Test(t, resource.TestCase{ resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) }, PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders, Providers: testAccProviders,
CheckDestroy: testAccCheckAWSDynamoDbTableDestroy, CheckDestroy: testAccCheckAWSDynamoDbTableDestroy,
Steps: []resource.TestStep{ Steps: []resource.TestStep{
{ {
Config: testAccAWSDynamoDbConfigInitialState(rName), Config: testAccAWSDynamoDbConfigInitialState(rName),
}, },
{ {

View File

@ -16,7 +16,7 @@ import (
func TestAccAWSDynamoDbTable_basic(t *testing.T) { func TestAccAWSDynamoDbTable_basic(t *testing.T) {
var conf dynamodb.DescribeTableOutput var conf dynamodb.DescribeTableOutput
rName := acctest.RandomWithPrefix("TerraformTestTable-") rName := acctest.RandomWithPrefix("TerraformTestTable-")
resource.Test(t, resource.TestCase{ resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) }, PreCheck: func() { testAccPreCheck(t) },
@ -24,14 +24,14 @@ func TestAccAWSDynamoDbTable_basic(t *testing.T) {
CheckDestroy: testAccCheckAWSDynamoDbTableDestroy, CheckDestroy: testAccCheckAWSDynamoDbTableDestroy,
Steps: []resource.TestStep{ Steps: []resource.TestStep{
{ {
Config: testAccAWSDynamoDbConfigInitialState(rName), Config: testAccAWSDynamoDbConfigInitialState(rName),
Check: resource.ComposeTestCheckFunc( Check: resource.ComposeTestCheckFunc(
testAccCheckInitialAWSDynamoDbTableExists("aws_dynamodb_table.basic-dynamodb-table", &conf), testAccCheckInitialAWSDynamoDbTableExists("aws_dynamodb_table.basic-dynamodb-table", &conf),
testAccCheckInitialAWSDynamoDbTableConf("aws_dynamodb_table.basic-dynamodb-table"), testAccCheckInitialAWSDynamoDbTableConf("aws_dynamodb_table.basic-dynamodb-table"),
), ),
}, },
{ {
Config: testAccAWSDynamoDbConfigAddSecondaryGSI(rName), Config: testAccAWSDynamoDbConfigAddSecondaryGSI(rName),
Check: resource.ComposeTestCheckFunc( Check: resource.ComposeTestCheckFunc(
testAccCheckDynamoDbTableWasUpdated("aws_dynamodb_table.basic-dynamodb-table"), testAccCheckDynamoDbTableWasUpdated("aws_dynamodb_table.basic-dynamodb-table"),
), ),
@ -413,7 +413,7 @@ resource "aws_dynamodb_table" "basic-dynamodb-table" {
} }
func testAccAWSDynamoDbConfigAddSecondaryGSI(rName string) string { func testAccAWSDynamoDbConfigAddSecondaryGSI(rName string) string {
return fmt.Sprintf(` return fmt.Sprintf(`
resource "aws_dynamodb_table" "basic-dynamodb-table" { resource "aws_dynamodb_table" "basic-dynamodb-table" {
name = "%s" name = "%s"
read_capacity = 20 read_capacity = 20