-
Notifications
You must be signed in to change notification settings - Fork 187
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 18, 2022
1 parent
01d83c8
commit 5778f97
Showing
7 changed files
with
127 additions
and
10 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,31 @@ | ||
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) | ||
} | ||
} | ||
|
||
h := make(http.Header) | ||
if 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