feat: add SSO workspace, named shares and Debian release tooling
This commit is contained in:
1 parent
833d908884
commit
87bc33e675
106 files changed
+4160
-5637
No files matched your search
@@ -45,7 +45,7 @@ func TestRuleDeniesCaseVariantWhenFsIsCaseInsensitive(t *testing.T) {
|
||||
|
||||
get := func(path string, caseInsensitive bool) *httptest.ResponseRecorder {
|
||||
req, _ := http.NewRequest(http.MethodGet, path, http.NoBody)
|
||||
req.Header.Set("X-Auth", signed)
|
||||
req = authorizeTestRequest(req, signed)
|
||||
rec := httptest.NewRecorder()
|
||||
handle(rawHandler, "", st, &settings.Server{CaseInsensitiveFs: caseInsensitive}).ServeHTTP(rec, req)
|
||||
return rec
|
||||
@@ -91,7 +91,7 @@ func TestRuleDeniesTraversalToDeniedPath(t *testing.T) {
|
||||
st := denyRuleStorage(t, userScope, "/Secret.txt", perm, key)
|
||||
|
||||
req, _ := http.NewRequest(http.MethodGet, "/allow/../Secret.txt", http.NoBody)
|
||||
req.Header.Set("X-Auth", signToken(t, perm, key))
|
||||
req = authorizeTestRequest(req, signToken(t, perm, key))
|
||||
rec := httptest.NewRecorder()
|
||||
handle(rawHandler, "", st, &settings.Server{}).ServeHTTP(rec, req)
|
||||
|
||||
@@ -113,7 +113,7 @@ func TestCanonicalizeRequestPathKeepsTrailingSlash(t *testing.T) {
|
||||
|
||||
t.Run("post creates a directory", func(t *testing.T) {
|
||||
req, _ := http.NewRequest(http.MethodPost, "/newdir/", http.NoBody)
|
||||
req.Header.Set("X-Auth", signed)
|
||||
req = authorizeTestRequest(req, signed)
|
||||
rec := httptest.NewRecorder()
|
||||
handle(resourcePostHandler(diskcache.NewNoOp()), "", st, &settings.Server{}).ServeHTTP(rec, req)
|
||||
|
||||
@@ -128,7 +128,7 @@ func TestCanonicalizeRequestPathKeepsTrailingSlash(t *testing.T) {
|
||||
|
||||
t.Run("put rejects a directory path", func(t *testing.T) {
|
||||
req, _ := http.NewRequest(http.MethodPut, "/newdir/", http.NoBody)
|
||||
req.Header.Set("X-Auth", signed)
|
||||
req = authorizeTestRequest(req, signed)
|
||||
rec := httptest.NewRecorder()
|
||||
handle(resourcePutHandler, "", st, &settings.Server{}).ServeHTTP(rec, req)
|
||||
|
||||
|
||||
Reference in new issue
Block a user