| 13 | ) |
| 14 | |
| 15 | func 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 | |
| 31 | func TestStringFormat(t *testing.T) { |
| 32 | t.Parallel() |