Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
87308fd9
Commit
87308fd9
authored
Sep 15, 2017
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes broken tests
💥
parent
16b1c0e6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
pkg/components/imguploader/gcsuploader_test.go
+2
-1
pkg/components/imguploader/s3uploader_test.go
+2
-1
pkg/components/imguploader/webdavuploader_test.go
+3
-2
No files found.
pkg/components/imguploader/gcsuploader_test.go
View file @
87308fd9
package
imguploader
import
(
"context"
"testing"
"github.com/grafana/grafana/pkg/setting"
...
...
@@ -15,7 +16,7 @@ func TestUploadToGCS(t *testing.T) {
gcsUploader
,
_
:=
NewImageUploader
()
path
,
err
:=
gcsUploader
.
Upload
(
"../../../public/img/logo_transparent_400x.png"
)
path
,
err
:=
gcsUploader
.
Upload
(
context
.
Background
(),
"../../../public/img/logo_transparent_400x.png"
)
So
(
err
,
ShouldBeNil
)
So
(
path
,
ShouldNotEqual
,
""
)
...
...
pkg/components/imguploader/s3uploader_test.go
View file @
87308fd9
package
imguploader
import
(
"context"
"testing"
"github.com/grafana/grafana/pkg/setting"
...
...
@@ -15,7 +16,7 @@ func TestUploadToS3(t *testing.T) {
s3Uploader
,
_
:=
NewImageUploader
()
path
,
err
:=
s3Uploader
.
Upload
(
"../../../public/img/logo_transparent_400x.png"
)
path
,
err
:=
s3Uploader
.
Upload
(
context
.
Background
(),
"../../../public/img/logo_transparent_400x.png"
)
So
(
err
,
ShouldBeNil
)
So
(
path
,
ShouldNotEqual
,
""
)
...
...
pkg/components/imguploader/webdavuploader_test.go
View file @
87308fd9
package
imguploader
import
(
"context"
"testing"
.
"github.com/smartystreets/goconvey/convey"
...
...
@@ -11,7 +12,7 @@ func TestUploadToWebdav(t *testing.T) {
// Can be tested with this docker container: https://hub.docker.com/r/morrisjobke/webdav/
SkipConvey
(
"[Integration test] for external_image_store.webdav"
,
t
,
func
()
{
webdavUploader
,
_
:=
NewWebdavImageUploader
(
"http://localhost:8888/webdav/"
,
"test"
,
"test"
,
""
)
path
,
err
:=
webdavUploader
.
Upload
(
"../../../public/img/logo_transparent_400x.png"
)
path
,
err
:=
webdavUploader
.
Upload
(
context
.
Background
(),
"../../../public/img/logo_transparent_400x.png"
)
So
(
err
,
ShouldBeNil
)
So
(
path
,
ShouldStartWith
,
"http://localhost:8888/webdav/"
)
...
...
@@ -19,7 +20,7 @@ func TestUploadToWebdav(t *testing.T) {
SkipConvey
(
"[Integration test] for external_image_store.webdav with public url"
,
t
,
func
()
{
webdavUploader
,
_
:=
NewWebdavImageUploader
(
"http://localhost:8888/webdav/"
,
"test"
,
"test"
,
"http://publicurl:8888/webdav"
)
path
,
err
:=
webdavUploader
.
Upload
(
"../../../public/img/logo_transparent_400x.png"
)
path
,
err
:=
webdavUploader
.
Upload
(
context
.
Background
(),
"../../../public/img/logo_transparent_400x.png"
)
So
(
err
,
ShouldBeNil
)
So
(
path
,
ShouldStartWith
,
"http://publicurl:8888/webdav/"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment