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
9337972a
Commit
9337972a
authored
Apr 16, 2018
by
Daniel Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sqlds: fix text in comments for tests
parent
2bfd6ab3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
pkg/tsdb/mssql/mssql_test.go
+2
-2
pkg/tsdb/mysql/mysql_test.go
+3
-2
pkg/tsdb/postgres/postgres_test.go
+4
-3
No files found.
pkg/tsdb/mssql/mssql_test.go
View file @
9337972a
...
@@ -16,10 +16,10 @@ import (
...
@@ -16,10 +16,10 @@ import (
)
)
// To run this test, remove the Skip from SkipConvey
// To run this test, remove the Skip from SkipConvey
//
and set up
a MSSQL db named grafanatest and a user/password grafana/Password!
//
The tests require
a MSSQL db named grafanatest and a user/password grafana/Password!
// Use the docker/blocks/mssql_tests/docker-compose.yaml to spin up a
// Use the docker/blocks/mssql_tests/docker-compose.yaml to spin up a
// preconfigured MSSQL server suitable for running these tests.
// preconfigured MSSQL server suitable for running these tests.
// Ther
s'
s also a dashboard.json in same directory that you can import to Grafana
// Ther
e i
s also a dashboard.json in same directory that you can import to Grafana
// once you've created a datasource for the test server/database.
// once you've created a datasource for the test server/database.
// If needed, change the variable below to the IP address of the database.
// If needed, change the variable below to the IP address of the database.
var
serverIP
string
=
"localhost"
var
serverIP
string
=
"localhost"
...
...
pkg/tsdb/mysql/mysql_test.go
View file @
9337972a
...
@@ -17,10 +17,11 @@ import (
...
@@ -17,10 +17,11 @@ import (
)
)
// To run this test, set runMySqlTests=true
// To run this test, set runMySqlTests=true
// and set up a MySQL db named grafana_ds_tests and a user/password grafana/password
// Or from the commandline: GRAFANA_TEST_DB=mysql go test -v ./pkg/tsdb/mysql
// The tests require a MySQL db named grafana_ds_tests and a user/password grafana/password
// Use the docker/blocks/mysql_tests/docker-compose.yaml to spin up a
// Use the docker/blocks/mysql_tests/docker-compose.yaml to spin up a
// preconfigured MySQL server suitable for running these tests.
// preconfigured MySQL server suitable for running these tests.
// Ther
s'
s also a dashboard.json in same directory that you can import to Grafana
// Ther
e i
s also a dashboard.json in same directory that you can import to Grafana
// once you've created a datasource for the test server/database.
// once you've created a datasource for the test server/database.
func
TestMySQL
(
t
*
testing
.
T
)
{
func
TestMySQL
(
t
*
testing
.
T
)
{
// change to true to run the MySQL tests
// change to true to run the MySQL tests
...
...
pkg/tsdb/postgres/postgres_test.go
View file @
9337972a
...
@@ -17,11 +17,12 @@ import (
...
@@ -17,11 +17,12 @@ import (
.
"github.com/smartystreets/goconvey/convey"
.
"github.com/smartystreets/goconvey/convey"
)
)
// To run this test, set runMySqlTests=true
// To run this test, set runPostgresTests=true
// and set up a PostgreSQL db named grafanadstest and a user/password grafanatest/grafanatest!
// Or from the commandline: GRAFANA_TEST_DB=postgres go test -v ./pkg/tsdb/postgres
// The tests require a PostgreSQL db named grafanadstest and a user/password grafanatest/grafanatest!
// Use the docker/blocks/postgres_tests/docker-compose.yaml to spin up a
// Use the docker/blocks/postgres_tests/docker-compose.yaml to spin up a
// preconfigured Postgres server suitable for running these tests.
// preconfigured Postgres server suitable for running these tests.
// Ther
s'
s also a dashboard.json in same directory that you can import to Grafana
// Ther
e i
s also a dashboard.json in same directory that you can import to Grafana
// once you've created a datasource for the test server/database.
// once you've created a datasource for the test server/database.
func
TestPostgres
(
t
*
testing
.
T
)
{
func
TestPostgres
(
t
*
testing
.
T
)
{
// change to true to run the MySQL tests
// change to true to run the MySQL tests
...
...
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