projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
6260: Expose queue sizes in /status.json. Fix sleep/race in trash_worker_test.
[arvados.git]
/
services
/
keepstore
/
status_test.go
1
package main
2
3
import (
4
"encoding/json"
5
)
6
7
func getStatusItem(keys ...string) interface{} {
8
resp := IssueRequest(&RequestTester{"/status.json", "", "GET", nil})
9
var s interface{}
10
json.NewDecoder(resp.Body).Decode(&s)
11
for _, k := range keys {
12
s = s.(map[string]interface{})[k]
13
}
14
return s
15
}