|
45 | 45 | 'orchestrator' => false,
|
46 | 46 | 'puppetdb' => false,
|
47 | 47 | 'rbac' => false,
|
| 48 | + 'hac' => false, |
| 49 | + 'patching' => false, |
48 | 50 | }
|
49 | 51 | }
|
50 | 52 | end
|
@@ -175,7 +177,22 @@ def expect_peadm_config_fallback(backup_dir, file)
|
175 | 177 | end
|
176 | 178 | end
|
177 | 179 |
|
178 |
| - context '>= 2023.7.0' do |
| 180 | + context '>= 2025.0.0' do |
| 181 | + let(:pe_version) { '2025.0.0' } |
| 182 | + |
| 183 | + include_context('all 2023.6.0 backups') |
| 184 | + |
| 185 | + it 'runs with backup type custom, all params set to true', valid_cluster: true do |
| 186 | + expect_restore_for_db('hac', 'primary') |
| 187 | + expect_restore_for_db('patching', 'primary') |
| 188 | + |
| 189 | + expect(run_plan('peadm::restore', all_recovery_options)).to be_ok |
| 190 | + end |
| 191 | + end |
| 192 | + |
| 193 | + context '>= 2023.7.0 < 2025.0' do |
| 194 | + let(:pe_version) { '2023.7.0' } |
| 195 | + |
179 | 196 | include_context('all 2023.6.0 backups')
|
180 | 197 |
|
181 | 198 | it 'runs with backup type custom, all params set to true', valid_cluster: true do
|
@@ -211,7 +228,8 @@ def expect_peadm_config_fallback(backup_dir, file)
|
211 | 228 | it 'warns that hac is ignored', valid_cluster: false do
|
212 | 229 | expect_out_message.with_params(<<~MSG.strip)
|
213 | 230 | WARNING: Retrieved a missing or unparseable PE version of ''.
|
214 |
| - The host_action_collector database will be skipped from defaults. |
| 231 | + Newer service databases released in 2023.7+ will be skipped from defaults. |
| 232 | + (host-action-collector, patching) |
215 | 233 | MSG
|
216 | 234 |
|
217 | 235 | expect_peadm_config_fallback(backup_dir, 'peadm_config.no_pe_version.json')
|
|
0 commit comments