s3uploader_test.go 514 B

1234567891011121314151617181920212223
  1. package imguploader
  2. import (
  3. "testing"
  4. "github.com/grafana/grafana/pkg/setting"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestUploadToS3(t *testing.T) {
  8. SkipConvey("[Integration test] for external_image_store.webdav", t, func() {
  9. setting.NewConfigContext(&setting.CommandLineArgs{
  10. HomePath: "../../../",
  11. })
  12. s3Uploader, _ := NewImageUploader()
  13. path, err := s3Uploader.Upload("../../../public/img/logo_transparent_400x.png")
  14. So(err, ShouldBeNil)
  15. So(path, ShouldNotEqual, "")
  16. })
  17. }