yedf2
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
0 deletions
-
test/api_test.go
|
|
@ -73,3 +73,9 @@ func TestAPIAll(t *testing.T) { |
|
|
nextPos3 := m["next_position"].(string) |
|
|
nextPos3 := m["next_position"].(string) |
|
|
assert.Equal(t, "", nextPos3) |
|
|
assert.Equal(t, "", nextPos3) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func TestDtmMetrics(t *testing.T) { |
|
|
|
|
|
rest, err := dtmimp.RestyClient.R().Get("http://localhost:36789/api/metrics") |
|
|
|
|
|
assert.Nil(t, err) |
|
|
|
|
|
assert.Equal(t, rest.StatusCode(), 200) |
|
|
|
|
|
} |
|
|
|