77 "github.com/cortexproject/cortex/pkg/chunk"
88 "github.com/cortexproject/cortex/pkg/chunk/testutils"
99 "github.com/cortexproject/cortex/pkg/util"
10- "github.com/prometheus/common/model"
1110)
1211
1312type fixture struct {
@@ -32,7 +31,7 @@ var Fixtures = []testutils.Fixture{
3231 fixture {
3332 name : "S3 chunks" ,
3433 clients : func () (chunk.IndexClient , chunk.ObjectClient , chunk.TableClient , chunk.SchemaConfig , error ) {
35- schemaConfig := chunk. SchemaConfig {} // Defaults == S3
34+ schemaConfig := testutils . DefaultSchemaConfig ( "s3" )
3635 dynamoDB := newMockDynamoDB (0 , 0 )
3736 table := & dynamoTableClient {
3837 DynamoDB : dynamoDB ,
@@ -61,16 +60,7 @@ func dynamoDBFixture(provisionedErr, gangsize, maxParallelism int) testutils.Fix
6160 provisionedErr , gangsize , maxParallelism ),
6261 clients : func () (chunk.IndexClient , chunk.ObjectClient , chunk.TableClient , chunk.SchemaConfig , error ) {
6362 dynamoDB := newMockDynamoDB (0 , provisionedErr )
64- schemaCfg := chunk.SchemaConfig {
65- Configs : []chunk.PeriodConfig {{
66- IndexType : "aws" ,
67- From : model .Now (),
68- ChunkTables : chunk.PeriodicTableConfig {
69- Prefix : "chunks" ,
70- Period : 10 * time .Minute ,
71- },
72- }},
73- }
63+ schemaCfg := testutils .DefaultSchemaConfig ("aws" )
7464 table := & dynamoTableClient {
7565 DynamoDB : dynamoDB ,
7666 }
0 commit comments