error test when env var is not supplied

This commit is contained in:
clint shryock 2015-11-19 16:24:17 -06:00
parent 4d0699b9dd
commit fe204bb291
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) {
var flowLog ec2.FlowLog
lgn := os.Getenv("LOG_GROUP_NAME")
if lgn == "" {
t.Fatalf("LOG_GROUP_NAME env var needed for TestAccAWSFlowLog_subnet")
}
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },