-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
03285e5
commit aa3dbf3
Showing
16 changed files
with
208 additions
and
92 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,3 @@ | ||
# We checksum this data in tests so we need the content to be | ||
# identical across operating systems. | ||
services/localfile/server/testdata/sum.data text eol=lf |
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,21 @@ | ||
//go:build unix | ||
|
||
package server | ||
|
||
var readFileTestCases = []struct { | ||
filename string | ||
err string | ||
}{ | ||
{ | ||
filename: "/etc/hosts", | ||
err: "", | ||
}, | ||
{ | ||
filename: "/no-such-filename-for-sansshell-unittest", | ||
err: "no such file or directory", | ||
}, | ||
{ | ||
filename: "/permission-denied-filename-for-sansshell-unittest", | ||
err: "PermissionDenied", | ||
}, | ||
} |
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,21 @@ | ||
//go:build windows | ||
|
||
package server | ||
|
||
var readFileTestCases = []struct { | ||
filename string | ||
err string | ||
}{ | ||
{ | ||
filename: "C:\\Windows\\win.ini", | ||
err: "", | ||
}, | ||
{ | ||
filename: "C:\\no-such-filename-for-sansshell-unittest", | ||
err: "The system cannot find the file specified", | ||
}, | ||
{ | ||
filename: "/permission-denied-filename-for-sansshell-unittest", | ||
err: "PermissionDenied", | ||
}, | ||
} |
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
Oops, something went wrong.