error test when env var is not supplied

This commit is contained in:
clint shryock 2015-11-19 16:24:17 -06:00
parent 0aedb7eae6
commit e91381c4e2
1 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,9 @@ func TestAccAWSFlowLog_basic(t *testing.T) {
func TestAccAWSFlowLog_subnet(t *testing.T) { func TestAccAWSFlowLog_subnet(t *testing.T) {
var flowLog ec2.FlowLog var flowLog ec2.FlowLog
lgn := os.Getenv("LOG_GROUP_NAME") lgn := os.Getenv("LOG_GROUP_NAME")
if lgn == "" {
t.Fatalf("LOG_GROUP_NAME env var needed for TestAccAWSFlowLog_subnet")
}
resource.Test(t, resource.TestCase{ resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) }, PreCheck: func() { testAccPreCheck(t) },