mirror of
https://github.com/grafana/grafana.git
synced 2025-02-16 18:34:52 -06:00
* wip: start on refactoring settings * settings: progress on settings refactor * refactor: progress on settings refactoring * fix: fixed failing test * settings: moved smtp settings from global to instance
26 lines
553 B
Go
26 lines
553 B
Go
package imguploader
|
|
|
|
import (
|
|
"context"
|
|
"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() {
|
|
cfg := setting.NewCfg()
|
|
cfg.Load(&setting.CommandLineArgs{
|
|
HomePath: "../../../",
|
|
})
|
|
|
|
s3Uploader, _ := NewImageUploader()
|
|
|
|
path, err := s3Uploader.Upload(context.Background(), "../../../public/img/logo_transparent_400x.png")
|
|
|
|
So(err, ShouldBeNil)
|
|
So(path, ShouldNotEqual, "")
|
|
})
|
|
}
|