mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
error test when env var is not supplied
This commit is contained in:
parent
4d0699b9dd
commit
fe204bb291
@ -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) },
|
||||||
|
Loading…
Reference in New Issue
Block a user