Skip to content

Commit d0dd09e

Browse files
authored
Merge pull request #400 from SumoLogic/vishal-allow-running-acc-tests-against-infra-deps
Allow running acceptance tests against infra deployments
2 parents bf35009 + f05f75e commit d0dd09e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sumologic/provider_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ func SkipCseTest(t *testing.T) {
3636
}
3737

3838
func testAccPreCheck(t *testing.T) {
39-
if v := os.Getenv("SUMOLOGIC_ACCESSKEY"); v == "" {
39+
if os.Getenv("SUMOLOGIC_ACCESSKEY") == "" {
4040
t.Fatal("SUMOLOGIC_ACCESSKEY must be set for acceptance tests")
4141
}
42-
if v := os.Getenv("SUMOLOGIC_ACCESSID"); v == "" {
42+
if os.Getenv("SUMOLOGIC_ACCESSID") == "" {
4343
t.Fatal("SUMOLOGIC_ACCESSID must be set for acceptance tests")
4444
}
45-
if v := os.Getenv("SUMOLOGIC_ENVIRONMENT"); v == "" {
45+
if os.Getenv("SUMOLOGIC_ENVIRONMENT") == "" && os.Getenv("SUMOLOGIC_BASE_URL") == "" {
4646
t.Fatal("SUMOLOGIC_ENVIRONMENT must be set for acceptance tests")
4747
}
4848
}

0 commit comments

Comments
 (0)