[ARVADOS] updated: 2.1.0-1166-g13b280ea2
Git user
git at public.arvados.org
Thu Aug 5 22:00:52 UTC 2021
Summary of changes:
lib/boot/supervisor.go | 5 +++++
services/keepstore/handler_test.go | 17 ++++-------------
2 files changed, 9 insertions(+), 13 deletions(-)
via 13b280ea288fd08e8c77300b087037635d739eaa (commit)
from bad73626c4208fb95ac8e3d9503fc4482f936cb3 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 13b280ea288fd08e8c77300b087037635d739eaa
Author: Tom Clegg <tom at curii.com>
Date: Thu Aug 5 17:57:50 2021 -0400
17967: Update tests.
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom at curii.com>
diff --git a/lib/boot/supervisor.go b/lib/boot/supervisor.go
index 4e009f45a..2026b8c84 100644
--- a/lib/boot/supervisor.go
+++ b/lib/boot/supervisor.go
@@ -748,6 +748,11 @@ func (super *Supervisor) autofillConfig(cfg *arvados.Config) error {
},
}
}
+ cluster.StorageClasses = map[string]arvados.StorageClassConfig{
+ "default": {Default: true},
+ "foo": {},
+ "bar": {},
+ }
}
if super.OwnTemporaryDatabase {
cluster.PostgreSQL.Connection = arvados.PostgreSQLConnection{
diff --git a/services/keepstore/handler_test.go b/services/keepstore/handler_test.go
index 00ef11b6e..897447dd1 100644
--- a/services/keepstore/handler_test.go
+++ b/services/keepstore/handler_test.go
@@ -21,7 +21,6 @@ import (
"net/http"
"net/http/httptest"
"os"
- "regexp"
"sort"
"strings"
"time"
@@ -545,12 +544,8 @@ func (s *HandlerSuite) TestIndexHandler(c *check.C) {
expected := `^` + TestHash + `\+\d+ \d+\n` +
TestHash2 + `\+\d+ \d+\n\n$`
- match, _ := regexp.MatchString(expected, response.Body.String())
- if !match {
- c.Errorf(
- "permissions on, superuser request: expected %s, got:\n%s",
- expected, response.Body.String())
- }
+ c.Check(response.Body.String(), check.Matches, expected, check.Commentf(
+ "permissions on, superuser request"))
// superuser /index/prefix request
// => OK
@@ -561,12 +556,8 @@ func (s *HandlerSuite) TestIndexHandler(c *check.C) {
response)
expected = `^` + TestHash + `\+\d+ \d+\n\n$`
- match, _ = regexp.MatchString(expected, response.Body.String())
- if !match {
- c.Errorf(
- "permissions on, superuser /index/prefix request: expected %s, got:\n%s",
- expected, response.Body.String())
- }
+ c.Check(response.Body.String(), check.Matches, expected, check.Commentf(
+ "permissions on, superuser /index/prefix request"))
// superuser /index/{no-such-prefix} request
// => OK
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list