@@ -118,7 +118,7 @@ func TestGenerateSpiloJSONConfiguration(t *testing.T) {
118118 Auth : config.Auth {
119119 PamRoleName : "zalandos" ,
120120 },
121- EnablePatroniFailsafeMode : true ,
121+ EnablePatroniFailsafeMode : util . True () ,
122122 },
123123 result : `{"postgresql":{"bin_dir":"/usr/lib/postgresql/14/bin"},"bootstrap":{"initdb":[{"auth-host":"md5"},{"auth-local":"trust"}],"users":{"zalandos":{"password":"","options":["CREATEDB","NOLOGIN"]}},"dcs":{"failsafe_mode":true}}}` ,
124124 },
@@ -132,9 +132,9 @@ func TestGenerateSpiloJSONConfiguration(t *testing.T) {
132132 Auth : config.Auth {
133133 PamRoleName : "zalandos" ,
134134 },
135- EnablePatroniFailsafeMode : true ,
135+ EnablePatroniFailsafeMode : util . True () ,
136136 },
137- result : `{"postgresql":{"bin_dir":"/usr/lib/postgresql/14/bin"},"bootstrap":{"initdb":[{"auth-host":"md5"},{"auth-local":"trust"}],"users":{"zalandos":{"password":"","options":["CREATEDB","NOLOGIN"]}},"dcs":{}}}` ,
137+ result : `{"postgresql":{"bin_dir":"/usr/lib/postgresql/14/bin"},"bootstrap":{"initdb":[{"auth-host":"md5"},{"auth-local":"trust"}],"users":{"zalandos":{"password":"","options":["CREATEDB","NOLOGIN"]}},"dcs":{"failsafe_mode":false }}}` ,
138138 },
139139 {
140140 subtest : "Patroni failsafe_mode disabled globally, configured for cluster" ,
@@ -146,7 +146,7 @@ func TestGenerateSpiloJSONConfiguration(t *testing.T) {
146146 Auth : config.Auth {
147147 PamRoleName : "zalandos" ,
148148 },
149- EnablePatroniFailsafeMode : false ,
149+ EnablePatroniFailsafeMode : util . False () ,
150150 },
151151 result : `{"postgresql":{"bin_dir":"/usr/lib/postgresql/14/bin"},"bootstrap":{"initdb":[{"auth-host":"md5"},{"auth-local":"trust"}],"users":{"zalandos":{"password":"","options":["CREATEDB","NOLOGIN"]}},"dcs":{"failsafe_mode":true}}}` ,
152152 },
0 commit comments