|
|
@ -14,10 +14,11 @@ import ( |
|
|
|
func TestAnnotationsApiEndpoint(t *testing.T) { |
|
|
|
func TestAnnotationsApiEndpoint(t *testing.T) { |
|
|
|
Convey("Given an annotation without a dashboard id", t, func() { |
|
|
|
Convey("Given an annotation without a dashboard id", t, func() { |
|
|
|
cmd := dtos.PostAnnotationsCmd{ |
|
|
|
cmd := dtos.PostAnnotationsCmd{ |
|
|
|
Time: 1000, |
|
|
|
Time: 1000, |
|
|
|
Text: "annotation text", |
|
|
|
Text: "annotation text", |
|
|
|
Tags: []string{"tag1", "tag2"}, |
|
|
|
Tags: []string{"tag1", "tag2"}, |
|
|
|
IsRegion: false, |
|
|
|
IsRegion: false, |
|
|
|
|
|
|
|
DashboardId: 1, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
updateCmd := dtos.UpdateAnnotationsCmd{ |
|
|
|
updateCmd := dtos.UpdateAnnotationsCmd{ |
|
|
|