File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,6 @@ import (
20
20
"testing"
21
21
"time"
22
22
23
- "github.com/cortexproject/cortex/integration/ca"
24
- "github.com/cortexproject/cortex/integration/e2e"
25
- e2edb "github.com/cortexproject/cortex/integration/e2e/db"
26
- "github.com/cortexproject/cortex/integration/e2ecortex"
27
- "github.com/cortexproject/cortex/pkg/ruler"
28
- "github.com/cortexproject/cortex/pkg/ruler/rulespb"
29
- "github.com/cortexproject/cortex/pkg/storage/tsdb"
30
23
v1 "github.com/prometheus/client_golang/api/prometheus/v1"
31
24
"github.com/prometheus/common/model"
32
25
"github.com/prometheus/prometheus/model/labels"
@@ -35,6 +28,14 @@ import (
35
28
"github.com/stretchr/testify/assert"
36
29
"github.com/stretchr/testify/require"
37
30
"github.com/thanos-io/objstore/providers/s3"
31
+
32
+ "github.com/cortexproject/cortex/integration/ca"
33
+ "github.com/cortexproject/cortex/integration/e2e"
34
+ e2edb "github.com/cortexproject/cortex/integration/e2e/db"
35
+ "github.com/cortexproject/cortex/integration/e2ecortex"
36
+ "github.com/cortexproject/cortex/pkg/ruler"
37
+ "github.com/cortexproject/cortex/pkg/ruler/rulespb"
38
+ "github.com/cortexproject/cortex/pkg/storage/tsdb"
38
39
)
39
40
40
41
func TestRulerAPI (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ groups:
148
148
func TestParseFormatted (t * testing.T ) {
149
149
dur , err := model .ParseDuration ("5m" )
150
150
require .NoError (t , err )
151
-
151
+
152
152
rulesV2 := []rulefmt.Rule {
153
153
{
154
154
Alert : "TestAlert" ,
Original file line number Diff line number Diff line change @@ -3,5 +3,6 @@ package configinit
3
3
import "github.com/prometheus/common/model"
4
4
5
5
func init () {
6
+ // nolint:staticcheck
6
7
model .NameValidationScheme = model .LegacyValidation
7
8
}
You can’t perform that action at this time.
0 commit comments