1
- //go:build requires_docker
2
- // +build requires_docker
1
+ //go:build integration_querier
2
+ // +build integration_querier
3
3
4
4
package integration
5
5
9
9
"github.com/stretchr/testify/require"
10
10
11
11
"github.com/cortexproject/cortex/integration/e2e"
12
+ e2edb "github.com/cortexproject/cortex/integration/e2e/db"
13
+ "github.com/cortexproject/cortex/integration/e2ecortex"
12
14
)
13
15
14
16
func Test_ResourceBasedLimiter_shouldStartWithoutError (t * testing.T ) {
@@ -17,21 +19,22 @@ func Test_ResourceBasedLimiter_shouldStartWithoutError(t *testing.T) {
17
19
defer s .Close ()
18
20
19
21
flags := mergeFlags (BlocksStorageFlags (), map [string ]string {
20
- "-monitored.resource " : "cpu,heap" ,
22
+ "-monitored.resources " : "cpu,heap" ,
21
23
})
22
24
23
25
// Start dependencies.
24
26
consul := e2edb .NewConsul ()
25
- require .NoError (t , s .StartAndWaitReady (consul ))
27
+ minio := e2edb .NewMinio (9000 , flags ["-blocks-storage.s3.bucket-name" ])
28
+ require .NoError (t , s .StartAndWaitReady (consul , minio ))
26
29
27
30
// Start Cortex components.
28
31
ingester := e2ecortex .NewIngester ("ingester" , e2ecortex .RingStoreConsul , consul .NetworkHTTPEndpoint (), mergeFlags (flags , map [string ]string {
29
- "-ingester.instance-limits.cpu-utilization" : 0.8 ,
30
- "-ingester.instance-limits.heap-utilization" : 0.8 ,
32
+ "-ingester.instance-limits.cpu-utilization" : " 0.8" ,
33
+ "-ingester.instance-limits.heap-utilization" : " 0.8" ,
31
34
}), "" )
32
35
storeGateway := e2ecortex .NewStoreGateway ("store-gateway" , e2ecortex .RingStoreConsul , consul .NetworkHTTPEndpoint (), mergeFlags (flags , map [string ]string {
33
- "-store-gateway.instance-limits.cpu-utilization" : 0.8 ,
34
- "-store-gateway.instance-limits.heap-utilization" : 0.8 ,
36
+ "-store-gateway.instance-limits.cpu-utilization" : " 0.8" ,
37
+ "-store-gateway.instance-limits.heap-utilization" : " 0.8" ,
35
38
}), "" )
36
39
require .NoError (t , s .StartAndWaitReady (ingester , storeGateway ))
37
40
}
0 commit comments