diff options
| author | Paul Buetow <pbuetow@mimecast.com> | 2021-10-19 19:01:12 +0300 |
|---|---|---|
| committer | Paul Buetow <pbuetow@mimecast.com> | 2021-10-19 19:03:03 +0300 |
| commit | 860c41441b3bcf542b5701ae2257812879ce47b4 (patch) | |
| tree | 9940e557b86e346cc3989c45e4f512f58dab850b /integrationtests/dtailhealth_test.go | |
| parent | 10314cef906fd9b73e003be69c2f6b7b3d66570c (diff) | |
Set DTAIL_RUN_INTEGRATIONT_TEST to yes for integration tests
Diffstat (limited to 'integrationtests/dtailhealth_test.go')
| -rw-r--r-- | integrationtests/dtailhealth_test.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/integrationtests/dtailhealth_test.go b/integrationtests/dtailhealth_test.go index 87ed648..8c0918f 100644 --- a/integrationtests/dtailhealth_test.go +++ b/integrationtests/dtailhealth_test.go @@ -5,9 +5,15 @@ import ( "fmt" "os" "testing" + + "github.com/mimecast/dtail/internal/config" ) func TestDTailHealthCheck(t *testing.T) { + if !config.Env("DTAIL_RUN_INTEGRATION_TESTS") { + t.Log("Skipping") + return + } stdoutFile := "dtailhealth.stdout.tmp" expectedStdoutFile := "dtailhealth.expected" @@ -26,6 +32,10 @@ func TestDTailHealthCheck(t *testing.T) { } func TestDTailHealthCheck2(t *testing.T) { + if !config.Env("DTAIL_RUN_INTEGRATION_TESTS") { + t.Log("Skipping") + return + } stdoutFile := "dtailhealth2.stdout.tmp" expectedStdoutFile := "dtailhealth2.expected" @@ -47,6 +57,10 @@ func TestDTailHealthCheck2(t *testing.T) { } func TestDTailHealthCheck3(t *testing.T) { + if !config.Env("DTAIL_RUN_INTEGRATION_TESTS") { + t.Log("Skipping") + return + } stdoutFile := "dtailhealth3.stdout.tmp" expectedStdoutFile := "dtailhealth3.expected" |
