mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
@@ -9,7 +9,7 @@ machine:
|
|||||||
GOPATH: "/home/ubuntu/.go_workspace"
|
GOPATH: "/home/ubuntu/.go_workspace"
|
||||||
ORG_PATH: "github.com/grafana"
|
ORG_PATH: "github.com/grafana"
|
||||||
REPO_PATH: "${ORG_PATH}/grafana"
|
REPO_PATH: "${ORG_PATH}/grafana"
|
||||||
GODIST: "go1.9.3.linux-amd64.tar.gz"
|
GODIST: "go1.10.linux-amd64.tar.gz"
|
||||||
post:
|
post:
|
||||||
- mkdir -p ~/download
|
- mkdir -p ~/download
|
||||||
- mkdir -p ~/docker
|
- mkdir -p ~/docker
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ package sqlstore
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/go-xorm/xorm"
|
|
||||||
. "github.com/smartystreets/goconvey/convey"
|
. "github.com/smartystreets/goconvey/convey"
|
||||||
|
|
||||||
m "github.com/grafana/grafana/pkg/models"
|
m "github.com/grafana/grafana/pkg/models"
|
||||||
@@ -11,10 +10,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestDashboardFolderDataAccess(t *testing.T) {
|
func TestDashboardFolderDataAccess(t *testing.T) {
|
||||||
var x *xorm.Engine
|
|
||||||
|
|
||||||
Convey("Testing DB", t, func() {
|
Convey("Testing DB", t, func() {
|
||||||
x = InitTestDB(t)
|
InitTestDB(t)
|
||||||
|
|
||||||
Convey("Given one dashboard folder with two dashboards and one dashboard in the root folder", func() {
|
Convey("Given one dashboard folder with two dashboards and one dashboard in the root folder", func() {
|
||||||
folder := insertTestDashboard("1 test dash folder", 1, 0, true, "prod", "webapp")
|
folder := insertTestDashboard("1 test dash folder", 1, 0, true, "prod", "webapp")
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/go-xorm/xorm"
|
|
||||||
"github.com/grafana/grafana/pkg/components/simplejson"
|
"github.com/grafana/grafana/pkg/components/simplejson"
|
||||||
m "github.com/grafana/grafana/pkg/models"
|
m "github.com/grafana/grafana/pkg/models"
|
||||||
"github.com/grafana/grafana/pkg/services/search"
|
"github.com/grafana/grafana/pkg/services/search"
|
||||||
@@ -15,10 +14,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestDashboardDataAccess(t *testing.T) {
|
func TestDashboardDataAccess(t *testing.T) {
|
||||||
var x *xorm.Engine
|
|
||||||
|
|
||||||
Convey("Testing DB", t, func() {
|
Convey("Testing DB", t, func() {
|
||||||
x = InitTestDB(t)
|
InitTestDB(t)
|
||||||
|
|
||||||
Convey("Given saved dashboard", func() {
|
Convey("Given saved dashboard", func() {
|
||||||
savedFolder := insertTestDashboard("1 test dash folder", 1, 0, true, "prod", "webapp")
|
savedFolder := insertTestDashboard("1 test dash folder", 1, 0, true, "prod", "webapp")
|
||||||
|
|||||||
@@ -22,23 +22,10 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type OpenTsdbExecutor struct {
|
type OpenTsdbExecutor struct {
|
||||||
//*models.DataSource
|
|
||||||
//httpClient *http.Client
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewOpenTsdbExecutor(datasource *models.DataSource) (tsdb.TsdbQueryEndpoint, error) {
|
func NewOpenTsdbExecutor(datasource *models.DataSource) (tsdb.TsdbQueryEndpoint, error) {
|
||||||
/*
|
return &OpenTsdbExecutor{}, nil
|
||||||
httpClient, err := datasource.GetHttpClient()
|
|
||||||
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
return &OpenTsdbExecutor{
|
|
||||||
//DataSource: datasource,
|
|
||||||
//httpClient: httpClient,
|
|
||||||
}, nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A170311380
|
|||||||
RUN curl --silent --location https://rpm.nodesource.com/setup_6.x | bash - && \
|
RUN curl --silent --location https://rpm.nodesource.com/setup_6.x | bash - && \
|
||||||
yum install -y nodejs --nogpgcheck
|
yum install -y nodejs --nogpgcheck
|
||||||
|
|
||||||
ENV GOLANG_VERSION 1.9.3
|
ENV GOLANG_VERSION 1.10
|
||||||
|
|
||||||
RUN wget https://dl.yarnpkg.com/rpm/yarn.repo -O /etc/yum.repos.d/yarn.repo && \
|
RUN wget https://dl.yarnpkg.com/rpm/yarn.repo -O /etc/yum.repos.d/yarn.repo && \
|
||||||
yum install -y yarn --nogpgcheck && \
|
yum install -y yarn --nogpgcheck && \
|
||||||
|
|||||||
Reference in New Issue
Block a user