-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathmigration_opts_default_spec.rb
51 lines (48 loc) · 1.31 KB
/
migration_opts_default_spec.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
require 'spec_helper'
describe 'peadm::migration_opts_default' do
it 'returns pre 2023.7 defaults' do
is_expected.to run.with_params('2023.6.0').and_return(
{
'activity' => true,
'ca' => true,
'classifier' => true,
'code' => false,
'config' => false,
'orchestrator' => true,
'puppetdb' => true,
'rbac' => true,
},
)
end
it 'returns 2023.7+ defaults with hac' do
is_expected.to run.with_params('2023.7.0').and_return(
{
'activity' => true,
'ca' => true,
'classifier' => true,
'code' => false,
'config' => false,
'orchestrator' => true,
'puppetdb' => true,
'rbac' => true,
'hac' => true,
},
)
end
it 'returns 2025.0+ defaults with hac and patching' do
is_expected.to run.with_params('2025.0.0').and_return(
{
'activity' => true,
'ca' => true,
'classifier' => true,
'code' => false,
'config' => false,
'orchestrator' => true,
'puppetdb' => true,
'rbac' => true,
'hac' => true,
'patching' => true,
},
)
end
end