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
b511788c
Commit
b511788c
authored
Jan 15, 2018
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code style fixes
parent
b63c834a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
6 deletions
+4
-6
pkg/plugins/dashboard_importer_test.go
+1
-1
pkg/plugins/dashboards_test.go
+1
-1
pkg/plugins/plugins.go
+0
-2
pkg/plugins/plugins_test.go
+2
-2
No files found.
pkg/plugins/dashboard_importer_test.go
View file @
b511788c
...
@@ -92,7 +92,7 @@ func pluginScenario(desc string, t *testing.T, fn func()) {
...
@@ -92,7 +92,7 @@ func pluginScenario(desc string, t *testing.T, fn func()) {
setting
.
Cfg
=
ini
.
Empty
()
setting
.
Cfg
=
ini
.
Empty
()
sec
,
_
:=
setting
.
Cfg
.
NewSection
(
"plugin.test-app"
)
sec
,
_
:=
setting
.
Cfg
.
NewSection
(
"plugin.test-app"
)
sec
.
NewKey
(
"path"
,
"../../tests/test-app"
)
sec
.
NewKey
(
"path"
,
"../../tests/test-app"
)
err
:=
initPlugins
(
context
.
TODO
())
err
:=
initPlugins
(
context
.
Background
())
So
(
err
,
ShouldBeNil
)
So
(
err
,
ShouldBeNil
)
...
...
pkg/plugins/dashboards_test.go
View file @
b511788c
...
@@ -18,7 +18,7 @@ func TestPluginDashboards(t *testing.T) {
...
@@ -18,7 +18,7 @@ func TestPluginDashboards(t *testing.T) {
setting
.
Cfg
=
ini
.
Empty
()
setting
.
Cfg
=
ini
.
Empty
()
sec
,
_
:=
setting
.
Cfg
.
NewSection
(
"plugin.test-app"
)
sec
,
_
:=
setting
.
Cfg
.
NewSection
(
"plugin.test-app"
)
sec
.
NewKey
(
"path"
,
"../../tests/test-app"
)
sec
.
NewKey
(
"path"
,
"../../tests/test-app"
)
err
:=
initPlugins
(
context
.
TODO
())
err
:=
initPlugins
(
context
.
Background
())
So
(
err
,
ShouldBeNil
)
So
(
err
,
ShouldBeNil
)
...
...
pkg/plugins/plugins.go
View file @
b511788c
...
@@ -35,8 +35,6 @@ type PluginScanner struct {
...
@@ -35,8 +35,6 @@ type PluginScanner struct {
errors
[]
error
errors
[]
error
}
}
type
Dispose
func
()
type
PluginManager
struct
{
type
PluginManager
struct
{
log
log
.
Logger
log
log
.
Logger
}
}
...
...
pkg/plugins/plugins_test.go
View file @
b511788c
...
@@ -15,7 +15,7 @@ func TestPluginScans(t *testing.T) {
...
@@ -15,7 +15,7 @@ func TestPluginScans(t *testing.T) {
Convey
(
"When scaning for plugins"
,
t
,
func
()
{
Convey
(
"When scaning for plugins"
,
t
,
func
()
{
setting
.
StaticRootPath
,
_
=
filepath
.
Abs
(
"../../public/"
)
setting
.
StaticRootPath
,
_
=
filepath
.
Abs
(
"../../public/"
)
setting
.
Cfg
=
ini
.
Empty
()
setting
.
Cfg
=
ini
.
Empty
()
err
:=
initPlugins
(
context
.
TODO
())
err
:=
initPlugins
(
context
.
Background
())
So
(
err
,
ShouldBeNil
)
So
(
err
,
ShouldBeNil
)
So
(
len
(
DataSources
),
ShouldBeGreaterThan
,
1
)
So
(
len
(
DataSources
),
ShouldBeGreaterThan
,
1
)
...
@@ -30,7 +30,7 @@ func TestPluginScans(t *testing.T) {
...
@@ -30,7 +30,7 @@ func TestPluginScans(t *testing.T) {
setting
.
Cfg
=
ini
.
Empty
()
setting
.
Cfg
=
ini
.
Empty
()
sec
,
_
:=
setting
.
Cfg
.
NewSection
(
"plugin.nginx-app"
)
sec
,
_
:=
setting
.
Cfg
.
NewSection
(
"plugin.nginx-app"
)
sec
.
NewKey
(
"path"
,
"../../tests/test-app"
)
sec
.
NewKey
(
"path"
,
"../../tests/test-app"
)
err
:=
initPlugins
(
context
.
TODO
())
err
:=
initPlugins
(
context
.
Background
())
So
(
err
,
ShouldBeNil
)
So
(
err
,
ShouldBeNil
)
So
(
len
(
Apps
),
ShouldBeGreaterThan
,
0
)
So
(
len
(
Apps
),
ShouldBeGreaterThan
,
0
)
...
...
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