MCPcopy Index your code
hub / github.com/cortexproject/cortex / TestQueryFrontendProtobufCodec

Function TestQueryFrontendProtobufCodec

integration/query_frontend_test.go:201–217  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

199}
200
201func 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
219func TestQuerierToQueryFrontendCompression(t *testing.T) {
220 for _, compression := range []string{"gzip", "zstd", "snappy", ""} {

Callers

nothing calls this directly

Calls 4

EmptyFlagsFunction · 0.92
runQueryFrontendTestFunction · 0.85
writeFileToSharedDirFunction · 0.85
StartAndWaitReadyMethod · 0.80

Tested by

no test coverage detected