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
d964a650
Unverified
Commit
d964a650
authored
Sep 18, 2018
by
Torkel Ödegaard
Committed by
GitHub
Sep 18, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13305 from bergquist/devenv_cleanup
removes unused files
parents
ccf3cb5c
8dbba467
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
4 additions
and
4 deletions
+4
-4
pkg/plugins/dashboard_importer_test.go
+2
-2
pkg/plugins/dashboards_test.go
+1
-1
pkg/plugins/plugins_test.go
+1
-1
pkg/plugins/testdata/datasource-test/module.js
+0
-0
pkg/plugins/testdata/datasource-test/plugin.json
+0
-0
pkg/plugins/testdata/test-app/dashboards/connections.json
+0
-0
pkg/plugins/testdata/test-app/dashboards/connections_result.json
+0
-0
pkg/plugins/testdata/test-app/dashboards/memory.json
+0
-0
pkg/plugins/testdata/test-app/plugin.json
+0
-0
No files found.
pkg/plugins/dashboard_importer_test.go
View file @
d964a650
...
@@ -35,7 +35,7 @@ func TestDashboardImport(t *testing.T) {
...
@@ -35,7 +35,7 @@ func TestDashboardImport(t *testing.T) {
So
(
cmd
.
Result
,
ShouldNotBeNil
)
So
(
cmd
.
Result
,
ShouldNotBeNil
)
resultStr
,
_
:=
mock
.
SavedDashboards
[
0
]
.
Dashboard
.
Data
.
EncodePretty
()
resultStr
,
_
:=
mock
.
SavedDashboards
[
0
]
.
Dashboard
.
Data
.
EncodePretty
()
expectedBytes
,
_
:=
ioutil
.
ReadFile
(
"
../../tests
/test-app/dashboards/connections_result.json"
)
expectedBytes
,
_
:=
ioutil
.
ReadFile
(
"
testdata
/test-app/dashboards/connections_result.json"
)
expectedJson
,
_
:=
simplejson
.
NewJson
(
expectedBytes
)
expectedJson
,
_
:=
simplejson
.
NewJson
(
expectedBytes
)
expectedStr
,
_
:=
expectedJson
.
EncodePretty
()
expectedStr
,
_
:=
expectedJson
.
EncodePretty
()
...
@@ -89,7 +89,7 @@ func pluginScenario(desc string, t *testing.T, fn func()) {
...
@@ -89,7 +89,7 @@ func pluginScenario(desc string, t *testing.T, fn func()) {
Convey
(
"Given a plugin"
,
t
,
func
()
{
Convey
(
"Given a plugin"
,
t
,
func
()
{
setting
.
Raw
=
ini
.
Empty
()
setting
.
Raw
=
ini
.
Empty
()
sec
,
_
:=
setting
.
Raw
.
NewSection
(
"plugin.test-app"
)
sec
,
_
:=
setting
.
Raw
.
NewSection
(
"plugin.test-app"
)
sec
.
NewKey
(
"path"
,
"
../../tests
/test-app"
)
sec
.
NewKey
(
"path"
,
"
testdata
/test-app"
)
pm
:=
&
PluginManager
{}
pm
:=
&
PluginManager
{}
err
:=
pm
.
Init
()
err
:=
pm
.
Init
()
...
...
pkg/plugins/dashboards_test.go
View file @
d964a650
...
@@ -16,7 +16,7 @@ func TestPluginDashboards(t *testing.T) {
...
@@ -16,7 +16,7 @@ func TestPluginDashboards(t *testing.T) {
Convey
(
"When asking plugin dashboard info"
,
t
,
func
()
{
Convey
(
"When asking plugin dashboard info"
,
t
,
func
()
{
setting
.
Raw
=
ini
.
Empty
()
setting
.
Raw
=
ini
.
Empty
()
sec
,
_
:=
setting
.
Raw
.
NewSection
(
"plugin.test-app"
)
sec
,
_
:=
setting
.
Raw
.
NewSection
(
"plugin.test-app"
)
sec
.
NewKey
(
"path"
,
"
../../tests
/test-app"
)
sec
.
NewKey
(
"path"
,
"
testdata
/test-app"
)
pm
:=
&
PluginManager
{}
pm
:=
&
PluginManager
{}
err
:=
pm
.
Init
()
err
:=
pm
.
Init
()
...
...
pkg/plugins/plugins_test.go
View file @
d964a650
...
@@ -30,7 +30,7 @@ func TestPluginScans(t *testing.T) {
...
@@ -30,7 +30,7 @@ func TestPluginScans(t *testing.T) {
Convey
(
"When reading app plugin definition"
,
t
,
func
()
{
Convey
(
"When reading app plugin definition"
,
t
,
func
()
{
setting
.
Raw
=
ini
.
Empty
()
setting
.
Raw
=
ini
.
Empty
()
sec
,
_
:=
setting
.
Raw
.
NewSection
(
"plugin.nginx-app"
)
sec
,
_
:=
setting
.
Raw
.
NewSection
(
"plugin.nginx-app"
)
sec
.
NewKey
(
"path"
,
"
../../tests
/test-app"
)
sec
.
NewKey
(
"path"
,
"
testdata
/test-app"
)
pm
:=
&
PluginManager
{}
pm
:=
&
PluginManager
{}
err
:=
pm
.
Init
()
err
:=
pm
.
Init
()
...
...
tests
/datasource-test/module.js
→
pkg/plugins/testdata
/datasource-test/module.js
View file @
d964a650
File moved
tests
/datasource-test/plugin.json
→
pkg/plugins/testdata
/datasource-test/plugin.json
View file @
d964a650
File moved
tests
/test-app/dashboards/connections.json
→
pkg/plugins/testdata
/test-app/dashboards/connections.json
View file @
d964a650
File moved
tests
/test-app/dashboards/connections_result.json
→
pkg/plugins/testdata
/test-app/dashboards/connections_result.json
View file @
d964a650
File moved
tests
/test-app/dashboards/memory.json
→
pkg/plugins/testdata
/test-app/dashboards/memory.json
View file @
d964a650
File moved
tests
/test-app/plugin.json
→
pkg/plugins/testdata
/test-app/plugin.json
View file @
d964a650
File moved
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