test: ttlFor, HEAD 500/cached-index, rpm full-metadata xml, generic content-type

This commit is contained in:
2026-07-03 13:42:17 +10:00
parent cfd0bae515
commit 03a29f2c0a
3 changed files with 64 additions and 0 deletions
+1
View File
@@ -192,6 +192,7 @@ func TestServerLocalUpload(t *testing.T) {
defer req(t, "DELETE", "/api/v2/remotes/srv-local", "")
rq, _ := http.NewRequest("PUT", testTS.URL+"/api/v2/remotes/srv-local/files/dir/hello.bin", strings.NewReader("local payload"))
rq.Header.Set("Content-Type", "text/plain") // exercise the content-type branch
resp, err := http.DefaultClient.Do(rq)
if err != nil || resp.StatusCode != 201 {
t.Fatalf("upload: %v %d", err, resp.StatusCode)