-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement graph endpoint to delete spaces
- Loading branch information
David Christofas
committed
Jan 20, 2022
1 parent
6249bf8
commit c1f1f0f
Showing
7 changed files
with
122 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Enhancement: Add graph endpoint to delete and purge spaces | ||
|
||
Added a new graph endpoint to delete and purge spaces. | ||
|
||
https://github.com/owncloud/ocis/pull/2979 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package svc | ||
|
||
import ( | ||
"net/http" | ||
"testing" | ||
) | ||
|
||
func TestParsePurgeHeader(t *testing.T) { | ||
tests := map[string]bool{ | ||
"": false, | ||
"f": false, | ||
"F": false, | ||
"anything": false, | ||
"t": true, | ||
"T": true, | ||
} | ||
|
||
for input, expected := range tests { | ||
h := make(http.Header) | ||
h.Add(HeaderPurge, input) | ||
|
||
if expected != parsePurgeHeader(h) { | ||
t.Errorf("parsePurgeHeader with input %s got %t expected %t", input, !expected, expected) | ||
} | ||
} | ||
|
||
if h := make(http.Header); parsePurgeHeader(h) { | ||
t.Error("parsePurgeHeader without Purge header set got true expected false") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters