|
8 | 8 | context 'valid config' do |
9 | 9 | let(:title) { 'unique-name' } |
10 | 10 | let(:params) {{ |
11 | | - :file => '/etc/php5/fpm/conf.d/unique-name.ini', |
| 11 | + :file => '/etc/php/7.0/fpm/conf.d/unique-name.ini', |
12 | 12 | :config => ['set .anon/apc.enabled 1'], |
13 | 13 | }} |
14 | 14 |
|
15 | 15 | it { should contain_php__fpm__config('unique-name') |
16 | 16 | .with({ |
17 | | - 'file' => '/etc/php5/fpm/conf.d/unique-name.ini', |
| 17 | + 'file' => '/etc/php/7.0/fpm/conf.d/unique-name.ini', |
18 | 18 | 'config' => ['set .anon/apc.enabled 1'] |
19 | 19 | }) |
20 | 20 | } |
21 | 21 |
|
22 | 22 | it { should contain_php__config('unique-name') |
23 | 23 | .with({ |
24 | | - 'file' => '/etc/php5/fpm/conf.d/unique-name.ini', |
| 24 | + 'file' => '/etc/php/7.0/fpm/conf.d/unique-name.ini', |
25 | 25 | 'config' => ['set .anon/apc.enabled 1'], |
26 | | - 'notify' => 'Service[php5-fpm]', |
| 26 | + 'notify' => 'Service[php7.0-fpm]', |
27 | 27 | }) |
28 | 28 | } |
29 | 29 |
|
30 | 30 | it { should contain_augeas("php-fpm-unique-name-config") |
31 | 31 | .with({ |
32 | | - 'incl' => '/etc/php5/fpm/conf.d/unique-name.ini', |
| 32 | + 'incl' => '/etc/php/7.0/fpm/conf.d/unique-name.ini', |
33 | 33 | 'changes' => "set .anon/apc.enabled 1" |
34 | 34 | }) |
35 | 35 | } |
|
39 | 39 | context 'invalid config (string)' do |
40 | 40 | let(:title) { 'unique-name' } |
41 | 41 | let(:params) {{ |
42 | | - :file => '/etc/php5/fpm/conf.d/unique-name.ini', |
| 42 | + :file => '/etc/php/7.0/fpm/conf.d/unique-name.ini', |
43 | 43 | :config => 'hello world' |
44 | 44 | }} |
45 | 45 |
|
|
51 | 51 |
|
52 | 52 | it { should contain_php__config('upload_max_filesize=20M').with({ |
53 | 53 | 'ensure' => 'present', |
54 | | - 'file' => '/etc/php5/fpm/php.ini', |
| 54 | + 'file' => '/etc/php/7.0/fpm/php.ini', |
55 | 55 | 'section' => 'PHP', |
56 | 56 | } )} |
57 | 57 |
|
58 | | - it { should contain_ini_setting('upload_max_filesize=20M in /etc/php5/fpm/php.ini').with({ |
| 58 | + it { should contain_ini_setting('upload_max_filesize=20M in /etc/php/7.0/fpm/php.ini').with({ |
59 | 59 | 'ensure' => 'present', |
60 | | - 'path' => '/etc/php5/fpm/php.ini', |
| 60 | + 'path' => '/etc/php/7.0/fpm/php.ini', |
61 | 61 | 'section' => 'PHP', |
62 | 62 | 'setting' => 'upload_max_filesize', |
63 | 63 | 'value' => '20M', |
|
0 commit comments