MCPcopy Create free account
hub / github.com/cortexproject/cortex / testKVs

Function testKVs

integration/kv_test.go:166–177  ·  view source on GitHub ↗
(t *testing.T, testFn func(t *testing.T, client kv.Client, reg *prometheus.Registry))

Source from the content-addressed store, hash-verified

164}
165
166func testKVs(t *testing.T, testFn func(t *testing.T, client kv.Client, reg *prometheus.Registry)) {
167 setupFns := map[string]func(t *testing.T, scenario *e2e.Scenario, reg prometheus.Registerer, logger log.Logger) kv.Client{
168 "etcd": setupEtcd,
169 "consul": setupConsul,
170 }
171
172 for name, setupFn := range setupFns {
173 t.Run(name, func(t *testing.T) {
174 testKVScenario(t, setupFn, testFn)
175 })
176 }
177}
178
179func testKVScenario(t *testing.T, kvSetupFn func(t *testing.T, scenario *e2e.Scenario, reg prometheus.Registerer, logger log.Logger) kv.Client, testFn func(t *testing.T, client kv.Client, reg *prometheus.Registry)) {
180 s, err := e2e.NewScenario(networkName)

Callers 3

TestKVListFunction · 0.85
TestKVDeleteFunction · 0.85
TestKVWatchAndDeleteFunction · 0.85

Calls 2

testKVScenarioFunction · 0.85
RunMethod · 0.65

Tested by

no test coverage detected