-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update some test files to use the same package for easier dev TODO: the /v1/slo endpoint does not yet have the status endpoint defined yet, but will be coming in another PR
- Loading branch information
1 parent
dda82d3
commit 6936511
Showing
17 changed files
with
1,396 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
package datadog_test | ||
package datadog | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/zorkian/go-datadog-api" | ||
) | ||
|
||
func TestCheckStatus(T *testing.T) { | ||
if datadog.OK != 0 { | ||
if OK != 0 { | ||
T.Error("status OK must be 0 to satisfy Datadog's API") | ||
} | ||
if datadog.WARNING != 1 { | ||
if WARNING != 1 { | ||
T.Error("status WARNING must be 1 to satisfy Datadog's API") | ||
} | ||
if datadog.CRITICAL != 2 { | ||
if CRITICAL != 2 { | ||
T.Error("status CRITICAL must be 2 to satisfy Datadog's API") | ||
} | ||
if datadog.UNKNOWN != 3 { | ||
if UNKNOWN != 3 { | ||
T.Error("status UNKNOWN must be 3 to satisfy Datadog's API") | ||
} | ||
} |
Oops, something went wrong.