azureblobuploader_test.go 584 B

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