cmd/mediaapi-integration-tests: Make HTTPS requests

This commit is contained in:
Robert Swain 2017-06-08 12:12:22 +02:00
parent 8b9205062b
commit 9169bd2acd

View file

@ -204,7 +204,7 @@ func testUpload(host, filePath, contentType, wantedBody string, wantedStatusCode
req, err := http.NewRequest(
"POST",
getMediaURI("http://", host, "upload", "?filename="+filename, nil),
getMediaURI("https://", host, "upload", "?filename="+filename, nil),
file,
)
if err != nil {
@ -227,7 +227,7 @@ func testUpload(host, filePath, contentType, wantedBody string, wantedStatusCode
func testDownload(host, origin, mediaID, wantedBody string, wantedStatusCode int, serverCmdChan chan error) {
req, err := http.NewRequest(
"GET",
getMediaURI("http://", host, "download", "", []string{
getMediaURI("https://", host, "download", "", []string{
origin,
mediaID,
}),
@ -251,7 +251,7 @@ func testThumbnail(width, height int, resizeMethod, host, origin, mediaID, wante
}
req, err := http.NewRequest(
"GET",
getMediaURI("http://", host, "thumbnail", query, []string{
getMediaURI("https://", host, "thumbnail", query, []string{
origin,
mediaID,
}),