MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / TestDefaults

Function TestDefaults

internal/feature/features_test.go:15–29  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

13)
14
15func TestDefaults(t *testing.T) {
16 t.Parallel()
17 gate := NewGate()
18
19 assert.Assert(t, false == gate.Enabled(AppendCustomQueries))
20 assert.Assert(t, true == gate.Enabled(AutoCreateUserSchema))
21 assert.Assert(t, true == gate.Enabled(AutoGrowVolumes))
22 assert.Assert(t, true == gate.Enabled(InstanceSidecars))
23 assert.Assert(t, false == gate.Enabled(OpenTelemetryLogs))
24 assert.Assert(t, false == gate.Enabled(OpenTelemetryMetrics))
25 assert.Assert(t, false == gate.Enabled(PGBouncerSidecars))
26 assert.Assert(t, true == gate.Enabled(PGUpgradeCPUConcurrency))
27 assert.Assert(t, false == gate.Enabled(TablespaceVolumes))
28 assert.Assert(t, false == gate.Enabled(VolumeSnapshots))
29}
30
31func TestStringFormat(t *testing.T) {
32 t.Parallel()

Callers

nothing calls this directly

Calls 2

EnabledMethod · 0.95
NewGateFunction · 0.85

Tested by

no test coverage detected