mirror of https://github.com/grafana/grafana.git
				
				
				
			
		
			
				
	
	
		
			25 lines
		
	
	
		
			561 B
		
	
	
	
		
			Go
		
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			561 B
		
	
	
	
		
			Go
		
	
	
	
| package imguploader
 | |
| 
 | |
| import (
 | |
| 	"context"
 | |
| 	"testing"
 | |
| 
 | |
| 	"github.com/grafana/grafana/pkg/setting"
 | |
| 	. "github.com/smartystreets/goconvey/convey"
 | |
| )
 | |
| 
 | |
| func TestUploadToAzureBlob(t *testing.T) {
 | |
| 	SkipConvey("[Integration test] for external_image_store.azure_blob", t, func() {
 | |
| 		err := setting.NewConfigContext(&setting.CommandLineArgs{
 | |
| 			HomePath: "../../../",
 | |
| 		})
 | |
| 
 | |
| 		uploader, _ := NewImageUploader()
 | |
| 
 | |
| 		path, err := uploader.Upload(context.Background(), "../../../public/img/logo_transparent_400x.png")
 | |
| 
 | |
| 		So(err, ShouldBeNil)
 | |
| 		So(path, ShouldNotEqual, "")
 | |
| 	})
 | |
| }
 |