Skip to content

Commit

Permalink
Fix invalid test config
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko committed Jan 17, 2018
1 parent 20e655b commit e4c7cc0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions aws/import_aws_kinesis_firehose_delivery_stream_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package aws

import (
"fmt"
"os"
"testing"

"github.com/hashicorp/terraform/helper/acctest"
Expand All @@ -12,8 +11,14 @@ import (
func TestAccAWSKinesisFirehoseDeliveryStream_importBasic(t *testing.T) {
resName := "aws_kinesis_firehose_delivery_stream.test_stream"
rInt := acctest.RandInt()
config := fmt.Sprintf(testAccKinesisFirehoseDeliveryStreamConfig_extendedS3basic,
rInt, os.Getenv("AWS_ACCOUNT_ID"), rInt, rInt, rInt)

funcName := fmt.Sprintf("aws_kinesis_firehose_ds_import_%d", rInt)
policyName := fmt.Sprintf("tf_acc_policy_%d", rInt)
roleName := fmt.Sprintf("tf_acc_role_%d", rInt)

config := testAccFirehoseAWSLambdaConfigBasic(funcName, policyName, roleName) +
fmt.Sprintf(testAccKinesisFirehoseDeliveryStreamConfig_extendedS3basic,
rInt, rInt, rInt, rInt)

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Expand Down

0 comments on commit e4c7cc0

Please sign in to comment.