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
db170845
Commit
db170845
authored
Sep 10, 2018
by
Erik Sundell
Committed by
Daniel Lee
Sep 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stackdriver: Restructured ds proxy tests
parent
05f67104
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
12 deletions
+21
-12
pkg/api/pluginproxy/ds_auth_provider_test.go
+21
-0
pkg/api/pluginproxy/ds_proxy_test.go
+0
-12
No files found.
pkg/api/pluginproxy/ds_auth_provider_test.go
0 → 100644
View file @
db170845
package
pluginproxy
import
(
"testing"
.
"github.com/smartystreets/goconvey/convey"
)
func
TestDsAuthProvider
(
t
*
testing
.
T
)
{
Convey
(
"When interpolating string"
,
t
,
func
()
{
data
:=
templateData
{
SecureJsonData
:
map
[
string
]
string
{
"Test"
:
"0asd+asd"
,
},
}
interpolated
,
err
:=
interpolateString
(
"{{.SecureJsonData.Test}}"
,
data
)
So
(
err
,
ShouldBeNil
)
So
(
interpolated
,
ShouldEqual
,
"0asd+asd"
)
})
}
pkg/api/pluginproxy/ds_proxy_test.go
View file @
db170845
...
@@ -331,18 +331,6 @@ func TestDSRouteRule(t *testing.T) {
...
@@ -331,18 +331,6 @@ func TestDSRouteRule(t *testing.T) {
})
})
})
})
Convey
(
"When interpolating string"
,
func
()
{
data
:=
templateData
{
SecureJsonData
:
map
[
string
]
string
{
"Test"
:
"0asd+asd"
,
},
}
interpolated
,
err
:=
interpolateString
(
"{{.SecureJsonData.Test}}"
,
data
)
So
(
err
,
ShouldBeNil
)
So
(
interpolated
,
ShouldEqual
,
"0asd+asd"
)
})
Convey
(
"When proxying a data source with custom headers specified"
,
func
()
{
Convey
(
"When proxying a data source with custom headers specified"
,
func
()
{
plugin
:=
&
plugins
.
DataSourcePlugin
{}
plugin
:=
&
plugins
.
DataSourcePlugin
{}
...
...
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