(t *testing.T)
| 130 | } |
| 131 | |
| 132 | func TestWALDirectory(t *testing.T) { |
| 133 | cluster := new(v1beta1.PostgresCluster) |
| 134 | cluster.Spec.PostgresVersion = 13 |
| 135 | |
| 136 | // without WAL volume |
| 137 | instance := new(v1beta1.PostgresInstanceSetSpec) |
| 138 | assert.Equal(t, WALDirectory(cluster, instance), "/pgdata/pg13_wal") |
| 139 | |
| 140 | // with WAL volume |
| 141 | instance.WALVolumeClaimSpec = new(v1beta1.VolumeClaimSpecWithAutoGrow) |
| 142 | assert.Equal(t, WALDirectory(cluster, instance), "/pgwal/pg13_wal") |
| 143 | } |
| 144 | |
| 145 | func TestBashHalt(t *testing.T) { |
| 146 | t.Run("NoPipeline", func(t *testing.T) { |
nothing calls this directly
no test coverage detected