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
9144701f
Commit
9144701f
authored
Mar 15, 2018
by
Marcus Efraimsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mssql: disable mssql integration tests per default
parent
3b03dce3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
33 deletions
+2
-33
pkg/tsdb/mssql/mssql_test.go
+2
-33
No files found.
pkg/tsdb/mssql/mssql_test.go
View file @
9144701f
...
...
@@ -20,7 +20,7 @@ import (
var
serverIP
string
=
"localhost"
func
TestMSSQL
(
t
*
testing
.
T
)
{
Convey
(
"MSSQL"
,
t
,
func
()
{
Skip
Convey
(
"MSSQL"
,
t
,
func
()
{
x
:=
InitMSSQLTestDB
(
t
)
endpoint
:=
&
MssqlQueryEndpoint
{
...
...
@@ -93,7 +93,7 @@ func TestMSSQL(t *testing.T) {
_
,
err
=
sess
.
Exec
(
sql
)
So
(
err
,
ShouldBeNil
)
Convey
(
"
Query with Table format
should map MSSQL column types to Go types"
,
func
()
{
Convey
(
"
When doing a table query
should map MSSQL column types to Go types"
,
func
()
{
query
:=
&
tsdb
.
TsdbQuery
{
Queries
:
[]
*
tsdb
.
Query
{
{
...
...
@@ -141,37 +141,6 @@ func TestMSSQL(t *testing.T) {
So
(
column
[
21
]
.
(
time
.
Time
),
ShouldEqual
,
time
.
Date
(
1
,
1
,
1
,
dt
.
Hour
(),
dt
.
Minute
(),
dt
.
Second
(),
dt
.
Nanosecond
(),
time
.
UTC
))
So
(
column
[
22
]
.
(
time
.
Time
),
ShouldEqual
,
dt2
.
In
(
time
.
FixedZone
(
"UTC"
,
int
(
-
7
*
time
.
Hour
))))
})
// Convey("stored procedure", func() {
// sql := `
// create procedure dbo.test_sp as
// begin
// select 1
// end
// `
// sess.Exec(sql)
// sql = `
// ALTER PROCEDURE dbo.test_sp
// @from int,
// @to int
// AS
// BEGIN
// select
// GETDATE() AS Time,
// 1 as value,
// 'metric' as metric
// END
// `
// _, err := sess.Exec(sql)
// So(err, ShouldBeNil)
// sql = `
// EXEC dbo.test_sp 1, 2
// `
// _, err = sess.Exec(sql)
// So(err, ShouldBeNil)
// })
})
Convey
(
"Given a table with metrics"
,
func
()
{
...
...
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