webdavuploader_test.go 460 B

123456789101112131415161718
  1. package imguploader
  2. import (
  3. "testing"
  4. . "github.com/smartystreets/goconvey/convey"
  5. )
  6. func TestUploadToWebdav(t *testing.T) {
  7. webdavUploader, _ := NewWebdavImageUploader("http://localhost:9998/dav/", "username", "password", "")
  8. SkipConvey("[Integration test] for external_image_store.webdav", t, func() {
  9. path, err := webdavUploader.Upload("../../../public/img/logo_transparent_400x.png")
  10. So(err, ShouldBeNil)
  11. So(path, ShouldNotEqual, "")
  12. })
  13. }