test: ttlFor, HEAD 500/cached-index, rpm full-metadata xml, generic content-type
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user