|
31 | 31 | context 'with default parameters' do |
32 | 32 | it { should contain_file(conf_file).with_content(/status_url: http:\/\/localhost\/status/) } |
33 | 33 | it { should contain_file(conf_file).with_content(/ping_url: http:\/\/localhost\/ping/) } |
| 34 | + it { should contain_file(conf_file).with_content(/ping_reply: pong/) } |
34 | 35 | end |
35 | 36 |
|
36 | 37 | context 'with parameters set' do |
37 | 38 | let(:params) {{ |
38 | 39 | status_url: 'http://localhost/fpm_status', |
39 | 40 | ping_url: 'http://localhost/fpm_ping', |
| 41 | + ping_reply: 'success', |
40 | 42 | }} |
41 | 43 | it { should contain_file(conf_file).with_content(/status_url: http:\/\/localhost\/fpm_status/) } |
42 | 44 | it { should contain_file(conf_file).with_content(/ping_url: http:\/\/localhost\/fpm_ping/) } |
| 45 | + it { should contain_file(conf_file).with_content(/ping_reply: success/) } |
43 | 46 | end |
44 | 47 |
|
45 | 48 | context 'with http_host set' do |
46 | 49 | let(:params) {{ |
47 | 50 | status_url: 'http://localhost/fpm_status', |
48 | 51 | ping_url: 'http://localhost/fpm_ping', |
| 52 | + ping_reply: 'success', |
49 | 53 | http_host: 'php_fpm_server', |
50 | 54 | }} |
51 | 55 | it { should contain_file(conf_file).with_content(/http_host: php_fpm_server/) } |
52 | 56 | it { should contain_file(conf_file).with_content(/status_url: http:\/\/localhost\/fpm_status/) } |
| 57 | + it { should contain_file(conf_file).with_content(/ping_reply: success/) } |
53 | 58 | it { should contain_file(conf_file).with_content(/ping_url: http:\/\/localhost\/fpm_ping/) } |
54 | 59 | end |
55 | 60 |
|
|
63 | 68 | { |
64 | 69 | 'status_url' => 'http://localhost/b/fpm_status', |
65 | 70 | 'ping_url' => 'http://localhost/b/fpm_ping', |
| 71 | + 'ping_reply' => 'success', |
66 | 72 | }, |
67 | 73 | ] |
68 | 74 | }} |
69 | 75 | it { should contain_file(conf_file).with_content(/status_url: http:\/\/localhost\/a\/fpm_status/) } |
70 | 76 | it { should contain_file(conf_file).with_content(/ping_url: http:\/\/localhost\/a\/fpm_ping/) } |
| 77 | + it { should contain_file(conf_file).with_content(/ping_reply: pong/) } |
71 | 78 | it { should contain_file(conf_file).with_content(/status_url: http:\/\/localhost\/b\/fpm_status/) } |
72 | 79 | it { should contain_file(conf_file).with_content(/ping_url: http:\/\/localhost\/b\/fpm_ping/) } |
| 80 | + it { should contain_file(conf_file).with_content(/ping_reply: success/) } |
73 | 81 | end |
74 | 82 | end |
75 | 83 | end |
|
0 commit comments