|
1 | 1 | require 'spec_helper' |
2 | 2 |
|
3 | | -describe 'puppetdb::server::config_ini', :type => :class do |
| 3 | +describe 'puppetdb::server::command_processing', :type => :class do |
4 | 4 | context 'on a supported platform' do |
5 | 5 | let(:facts) do |
6 | 6 | { |
7 | 7 | :osfamily => 'OpenBSD', |
8 | 8 | } |
9 | 9 | end |
10 | 10 |
|
11 | | - it { should contain_class('puppetdb::server::config_ini') } |
| 11 | + it { should contain_class('puppetdb::server::command_processing') } |
12 | 12 |
|
13 | 13 | describe 'when using default values' do |
14 | | - it { should contain_ini_setting('puppetdb_config_command_processing_threads'). |
| 14 | + it { should contain_ini_setting('puppetdb_command_processing_threads'). |
15 | 15 | with( |
16 | 16 | 'ensure' => 'absent', |
17 | 17 | 'path' => '/etc/puppetlabs/puppetdb/conf.d/config.ini', |
18 | 18 | 'section' => 'command-processing', |
19 | 19 | 'setting' => 'threads' |
20 | 20 | )} |
21 | | - it { should contain_ini_setting('puppetdb_config_command_processing_store_usage'). |
| 21 | + it { should contain_ini_setting('puppetdb_command_processing_store_usage'). |
22 | 22 | with( |
23 | 23 | 'ensure' => 'absent', |
24 | 24 | 'path' => '/etc/puppetlabs/puppetdb/conf.d/config.ini', |
25 | 25 | 'section' => 'command-processing', |
26 | 26 | 'setting' => 'store-usage' |
27 | 27 | )} |
28 | | - it { should contain_ini_setting('puppetdb_config_command_processing_temp_usage'). |
| 28 | + it { should contain_ini_setting('puppetdb_command_processing_temp_usage'). |
29 | 29 | with( |
30 | 30 | 'ensure' => 'absent', |
31 | 31 | 'path' => '/etc/puppetlabs/puppetdb/conf.d/config.ini', |
|
36 | 36 |
|
37 | 37 | describe 'when using legacy PuppetDB' do |
38 | 38 | let (:pre_condition) { 'class { "puppetdb::globals": version => "2.2.0", }' } |
39 | | - it { should contain_ini_setting('puppetdb_config_command_processing_threads'). |
| 39 | + it { should contain_ini_setting('puppetdb_command_processing_threads'). |
40 | 40 | with( |
41 | 41 | 'ensure' => 'absent', |
42 | 42 | 'path' => '/etc/puppetdb/conf.d/config.ini', |
43 | 43 | 'section' => 'command-processing', |
44 | 44 | 'setting' => 'threads' |
45 | 45 | )} |
46 | | - it { should contain_ini_setting('puppetdb_config_command_processing_store_usage'). |
| 46 | + it { should contain_ini_setting('puppetdb_command_processing_store_usage'). |
47 | 47 | with( |
48 | 48 | 'ensure' => 'absent', |
49 | 49 | 'path' => '/etc/puppetdb/conf.d/config.ini', |
50 | 50 | 'section' => 'command-processing', |
51 | 51 | 'setting' => 'store-usage' |
52 | 52 | )} |
53 | | - it { should contain_ini_setting('puppetdb_config_command_processing_temp_usage'). |
| 53 | + it { should contain_ini_setting('puppetdb_command_processing_temp_usage'). |
54 | 54 | with( |
55 | 55 | 'ensure' => 'absent', |
56 | 56 | 'path' => '/etc/puppetdb/conf.d/config.ini', |
|
67 | 67 | 'temp_usage' => 2000, |
68 | 68 | } |
69 | 69 | end |
70 | | - it { should contain_ini_setting('puppetdb_config_command_processing_threads'). |
| 70 | + it { should contain_ini_setting('puppetdb_command_processing_threads'). |
71 | 71 | with( |
72 | 72 | 'ensure' => 'present', |
73 | 73 | 'path' => '/etc/puppetlabs/puppetdb/conf.d/config.ini', |
74 | 74 | 'section' => 'command-processing', |
75 | 75 | 'setting' => 'threads', |
76 | 76 | 'value' => '10' |
77 | 77 | )} |
78 | | - it { should contain_ini_setting('puppetdb_config_command_processing_store_usage'). |
| 78 | + it { should contain_ini_setting('puppetdb_command_processing_store_usage'). |
79 | 79 | with( |
80 | 80 | 'ensure' => 'present', |
81 | 81 | 'path' => '/etc/puppetlabs/puppetdb/conf.d/config.ini', |
82 | 82 | 'section' => 'command-processing', |
83 | 83 | 'setting' => 'store-usage', |
84 | 84 | 'value' => '4000' |
85 | 85 | )} |
86 | | - it { should contain_ini_setting('puppetdb_config_command_processing_temp_usage'). |
| 86 | + it { should contain_ini_setting('puppetdb_command_processing_temp_usage'). |
87 | 87 | with( |
88 | 88 | 'ensure' => 'present', |
89 | 89 | 'path' => '/etc/puppetlabs/puppetdb/conf.d/config.ini', |
|
0 commit comments