test w/ auth
This commit is contained in:
@@ -168,7 +168,7 @@ func testREST(t *testing.T) (*REST, func(r *http.Request), func()) {
|
|||||||
}
|
}
|
||||||
os.Setenv("FILEROOT", d)
|
os.Setenv("FILEROOT", d)
|
||||||
os.Setenv("DRIVER_TYPE", "map")
|
os.Setenv("DRIVER_TYPE", "map")
|
||||||
os.Setenv("AUTH", "false")
|
os.Setenv("AUTH", "true")
|
||||||
os.Args = os.Args[:1]
|
os.Args = os.Args[:1]
|
||||||
os.Args = os.Args[:1]
|
os.Args = os.Args[:1]
|
||||||
rest, err := NewREST(storage.NewRateLimitedGraph(""))
|
rest, err := NewREST(storage.NewRateLimitedGraph(""))
|
||||||
|
|||||||
Reference in New Issue
Block a user