projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
17816: Add --runtime-engine to crunch-dispatch-local and crunch-dispatch-slurm
[arvados.git]
/
services
/
keep-web
/
status_test.go
diff --git
a/services/keep-web/status_test.go
b/services/keep-web/status_test.go
index 5f2d44cbe4d7ce4c12f86417763d02c28f0c5782..1b6ad93de7dd2207c97a56a8e6ff0365391b09b0 100644
(file)
--- a/
services/keep-web/status_test.go
+++ b/
services/keep-web/status_test.go
@@
-10,12
+10,12
@@
import (
"net/http/httptest"
"net/url"
"net/http/httptest"
"net/url"
- "git.
curoverse.com
/arvados.git/sdk/go/arvadostest"
+ "git.
arvados.org
/arvados.git/sdk/go/arvadostest"
"gopkg.in/check.v1"
)
func (s *UnitSuite) TestStatus(c *check.C) {
"gopkg.in/check.v1"
)
func (s *UnitSuite) TestStatus(c *check.C) {
- h := handler{Config:
DefaultConfig(
)}
+ h := handler{Config:
newConfig(s.Config
)}
u, _ := url.Parse("http://keep-web.example/status.json")
req := &http.Request{
Method: "GET",
u, _ := url.Parse("http://keep-web.example/status.json")
req := &http.Request{
Method: "GET",
@@
-30,7
+30,7
@@
func (s *UnitSuite) TestStatus(c *check.C) {
var status map[string]interface{}
err := json.NewDecoder(resp.Body).Decode(&status)
c.Check(err, check.IsNil)
var status map[string]interface{}
err := json.NewDecoder(resp.Body).Decode(&status)
c.Check(err, check.IsNil)
- c.Check(status["
Cache.Requests"], check.Equals, float64(0)
)
+ c.Check(status["
Version"], check.Not(check.Equals), ""
)
}
func (s *IntegrationSuite) TestNoStatusFromVHost(c *check.C) {
}
func (s *IntegrationSuite) TestNoStatusFromVHost(c *check.C) {