test: rpm serve errors, terraform rewriteDownloadURL, pypi merger, s3 stat, pattern-validation 400

This commit is contained in:
2026-07-03 13:51:17 +10:00
parent 3e590bea2b
commit 1d97628fbd
4 changed files with 49 additions and 0 deletions
+6
View File
@@ -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) {