mirror of
https://github.com/grafana/grafana.git
synced 2025-01-27 00:37:04 -06:00
6538e86793
Fixes #7914. Fixes #7921
24 lines
510 B
Go
24 lines
510 B
Go
package imguploader
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/grafana/grafana/pkg/setting"
|
|
. "github.com/smartystreets/goconvey/convey"
|
|
)
|
|
|
|
func TestUploadToS3(t *testing.T) {
|
|
SkipConvey("[Integration test] for external_image_store.s3", t, func() {
|
|
setting.NewConfigContext(&setting.CommandLineArgs{
|
|
HomePath: "../../../",
|
|
})
|
|
|
|
s3Uploader, _ := NewImageUploader()
|
|
|
|
path, err := s3Uploader.Upload("../../../public/img/logo_transparent_400x.png")
|
|
|
|
So(err, ShouldBeNil)
|
|
So(path, ShouldNotEqual, "")
|
|
})
|
|
}
|