webdav: allow specification of a different public_url than upload url

This commit is contained in:
fir4
2017-03-23 16:23:46 +01:00
committed by Daniel Lee
parent 368e847d12
commit 6d9e8bd147
6 changed files with 24 additions and 11 deletions

View File

@@ -7,7 +7,7 @@ import (
)
func TestUploadToWebdav(t *testing.T) {
webdavUploader, _ := NewWebdavImageUploader("http://localhost:9998/dav/", "username", "password")
webdavUploader, _ := NewWebdavImageUploader("http://localhost:9998/dav/", "username", "password", "")
SkipConvey("[Integration test] for external_image_store.webdav", t, func() {
path, err := webdavUploader.Upload("../../../public/img/logo_transparent_400x.png")