(t *testing.T)
| 199 | } |
| 200 | |
| 201 | func TestQueryFrontendProtobufCodec(t *testing.T) { |
| 202 | runQueryFrontendTest(t, queryFrontendTestConfig{ |
| 203 | testMissingMetricName: false, |
| 204 | querySchedulerEnabled: true, |
| 205 | setup: func(t *testing.T, s *e2e.Scenario) (configFile string, flags map[string]string) { |
| 206 | require.NoError(t, writeFileToSharedDir(s, cortexConfigFile, []byte(BlocksStorageConfig))) |
| 207 | |
| 208 | minio := e2edb.NewMinio(9000, BlocksStorageFlags()["-blocks-storage.s3.bucket-name"]) |
| 209 | require.NoError(t, s.StartAndWaitReady(minio)) |
| 210 | |
| 211 | flags = mergeFlags(e2e.EmptyFlags(), map[string]string{ |
| 212 | "-api.querier-default-codec": "protobuf", |
| 213 | }) |
| 214 | return cortexConfigFile, flags |
| 215 | }, |
| 216 | }) |
| 217 | } |
| 218 | |
| 219 | func TestQuerierToQueryFrontendCompression(t *testing.T) { |
| 220 | for _, compression := range []string{"gzip", "zstd", "snappy", ""} { |
nothing calls this directly
no test coverage detected