mirror of https://github.com/hashicorp/terraform
parent
4548e2430e
commit
982a065863
@ -1,2 +0,0 @@
|
||||
*.sublime*
|
||||
cmd
|
||||
@ -1,21 +0,0 @@
|
||||
language: go
|
||||
|
||||
go:
|
||||
- 1.5
|
||||
- 1.6
|
||||
- tip
|
||||
|
||||
env:
|
||||
- "PATH=/home/travis/gopath/bin:$PATH"
|
||||
script:
|
||||
- go get -u github.com/golang/lint/golint
|
||||
- golint ./...
|
||||
- test `gofmt -l . | wc -l` = 0
|
||||
- make test
|
||||
|
||||
install:
|
||||
- go get -v -t . && make updatedeps
|
||||
|
||||
matrix:
|
||||
allow_failures:
|
||||
- go: tip
|
||||
@ -1,22 +0,0 @@
|
||||
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")
|
||||
}
|
||||
}
|
||||
Loading…
Reference in new issue