Skip to content

Commit

Permalink
skip tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaweitao001 committed Sep 19, 2024
1 parent 51a84c1 commit 5e19d3a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/services/dynatrace/dynatrace_monitors_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,19 +104,19 @@ func TestAccDynatraceMonitor_requiresImport(t *testing.T) {

func (r MonitorsResource) preCheck(t *testing.T) {
if r.dynatraceInfo.UserCountry == "" {
t.Fatal("DYNATRACE_USER_COUNTRY must be set for acceptance tests")
t.Skipf("DYNATRACE_USER_COUNTRY must be set for acceptance tests")
}
if r.dynatraceInfo.UserEmail == "" {
t.Fatal("DYNATRACE_USER_EMAIL must be set for acceptance tests")
t.Skipf("DYNATRACE_USER_EMAIL must be set for acceptance tests")
}
if r.dynatraceInfo.UserFirstName == "" {
t.Fatal("DYNATRACE_USER_FIRST_NAME must be set for acceptance tests")
t.Skipf("DYNATRACE_USER_FIRST_NAME must be set for acceptance tests")
}
if r.dynatraceInfo.UserLastName == "" {
t.Fatal("DYNATRACE_USER_LAST_NAME must be set for acceptance tests")
t.Skipf("DYNATRACE_USER_LAST_NAME must be set for acceptance tests")
}
if r.dynatraceInfo.UserPhoneNumber == "" {
t.Fatal("DYNATRACE_USER_PHONE_NUMBER must be set for acceptance tests")
t.Skipf("DYNATRACE_USER_PHONE_NUMBER must be set for acceptance tests")
}
}

Expand Down

0 comments on commit 5e19d3a

Please sign in to comment.