X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3b3c3a0869c2cf528b9e1c45c969bbbd47f6446e..570af13f6dfd7f725abf49335b7abdb46aae5048:/services/keep-web/status_test.go diff --git a/services/keep-web/status_test.go b/services/keep-web/status_test.go index e40c1d0345..1b6ad93de7 100644 --- a/services/keep-web/status_test.go +++ b/services/keep-web/status_test.go @@ -1,3 +1,7 @@ +// Copyright (C) The Arvados Authors. All rights reserved. +// +// SPDX-License-Identifier: AGPL-3.0 + package main import ( @@ -6,12 +10,12 @@ import ( "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) { - h := handler{Config: DefaultConfig()} + h := handler{Config: newConfig(s.Config)} u, _ := url.Parse("http://keep-web.example/status.json") req := &http.Request{ Method: "GET", @@ -26,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) - c.Check(status["Cache.Requests"], check.Equals, float64(0)) + c.Check(status["Version"], check.Not(check.Equals), "") } func (s *IntegrationSuite) TestNoStatusFromVHost(c *check.C) {