test: rpm serve errors, terraform rewriteDownloadURL, pypi merger, s3 stat, pattern-validation 400
This commit is contained in:
@@ -113,6 +113,12 @@ func TestS3DownloadMissing(t *testing.T) {
|
||||
if _, _, err := testS3.Download(context.Background(), "does/not/exist"); err == nil {
|
||||
t.Error("expected error downloading missing key")
|
||||
}
|
||||
if _, err := testS3.Stat(context.Background(), "does/not/exist"); err == nil {
|
||||
t.Error("expected error stat-ing missing key")
|
||||
}
|
||||
if exists, err := testS3.Exists(context.Background(), "does/not/exist"); err != nil || exists {
|
||||
t.Errorf("Exists(missing) = %v, %v; want false, nil", exists, err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCASStore(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user