X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0561bd0c3c07257fd58ded6c7cfa5feeae97af57..8a2c490a3905dc85a438ea92aa5b020a87d7b8b0:/services/keepstore/pull_worker_test.go diff --git a/services/keepstore/pull_worker_test.go b/services/keepstore/pull_worker_test.go index 9e547f30d0..8e667e048f 100644 --- a/services/keepstore/pull_worker_test.go +++ b/services/keepstore/pull_worker_test.go @@ -14,6 +14,7 @@ import ( "git.curoverse.com/arvados.git/sdk/go/arvadosclient" "git.curoverse.com/arvados.git/sdk/go/keepclient" + "github.com/prometheus/client_golang/prometheus" . "gopkg.in/check.v1" ) @@ -58,7 +59,7 @@ func (s *PullWorkerTestSuite) TearDownTest(c *C) { pullq = nil teardown() theConfig = DefaultConfig() - theConfig.Start() + theConfig.Start(prometheus.NewRegistry()) } var firstPullList = []byte(`[ @@ -127,7 +128,7 @@ func (s *PullWorkerTestSuite) TestSpecifyMountUUID(c *C) { requestBody: []byte(`[{ "locator":"acbd18db4cc2f85cedef654fccc4a4d8+3", "servers":["server_1","server_2"], - "mountuuid":"` + spec.sendUUID + `"}]`), + "mount_uuid":"` + spec.sendUUID + `"}]`), }) c.Assert(resp.Code, Equals, http.StatusOK) expectEqualWithin(c, time.Second, 0, func() interface{} { @@ -271,6 +272,7 @@ func (s *PullWorkerTestSuite) performTest(testData PullWorkerTestData, c *C) { c.Check(getStatusItem("PullQueue", "InProgress"), Equals, float64(0)) c.Check(getStatusItem("PullQueue", "Queued"), Equals, float64(0)) + c.Check(getStatusItem("Version"), Not(Equals), "") response := IssueRequest(&testData.req) c.Assert(response.Code, Equals, testData.responseCode)