We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bf35009 + f05f75e commit d0dd09eCopy full SHA for d0dd09e
sumologic/provider_test.go
@@ -36,13 +36,13 @@ func SkipCseTest(t *testing.T) {
36
}
37
38
func testAccPreCheck(t *testing.T) {
39
- if v := os.Getenv("SUMOLOGIC_ACCESSKEY"); v == "" {
+ if os.Getenv("SUMOLOGIC_ACCESSKEY") == "" {
40
t.Fatal("SUMOLOGIC_ACCESSKEY must be set for acceptance tests")
41
42
- if v := os.Getenv("SUMOLOGIC_ACCESSID"); v == "" {
+ if os.Getenv("SUMOLOGIC_ACCESSID") == "" {
43
t.Fatal("SUMOLOGIC_ACCESSID must be set for acceptance tests")
44
45
- if v := os.Getenv("SUMOLOGIC_ENVIRONMENT"); v == "" {
+ if os.Getenv("SUMOLOGIC_ENVIRONMENT") == "" && os.Getenv("SUMOLOGIC_BASE_URL") == "" {
46
t.Fatal("SUMOLOGIC_ENVIRONMENT must be set for acceptance tests")
47
48
0 commit comments