File: checks_test.go

package info (click to toggle)
golang-github-zorkian-go-datadog-api 2.30.0-2
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 1,616 kB
  • sloc: makefile: 28; sh: 13
file content (22 lines) | stat: -rw-r--r-- 486 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package datadog_test

import (
	"testing"

	"github.com/zorkian/go-datadog-api"
)

func TestCheckStatus(T *testing.T) {
	if datadog.OK != 0 {
		T.Error("status OK must be 0 to satisfy Datadog's API")
	}
	if datadog.WARNING != 1 {
		T.Error("status WARNING must be 1 to satisfy Datadog's API")
	}
	if datadog.CRITICAL != 2 {
		T.Error("status CRITICAL must be 2 to satisfy Datadog's API")
	}
	if datadog.UNKNOWN != 3 {
		T.Error("status UNKNOWN must be 3 to satisfy Datadog's API")
	}
}