|
1 | 1 | require 'spec_helper' |
2 | 2 |
|
3 | | -describe 'python::gunicorn', type: :define do |
| 3 | +describe 'python::gunicorn', :type => :define do |
4 | 4 | let(:title) { 'test-app' } |
5 | 5 | context 'on Debian OS' do |
6 | 6 | let :facts do |
7 | 7 | { |
8 | | - id: 'root', |
9 | | - kernel: 'Linux', |
10 | | - lsbdistcodename: 'squeeze', |
11 | | - osfamily: 'Debian', |
12 | | - operatingsystem: 'Debian', |
13 | | - operatingsystemrelease: '6', |
14 | | - path: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', |
15 | | - concat_basedir: '/dne' |
| 8 | + :id => 'root', |
| 9 | + :kernel => 'Linux', |
| 10 | + :lsbdistcodename => 'squeeze', |
| 11 | + :osfamily => 'Debian', |
| 12 | + :operatingsystem => 'Debian', |
| 13 | + :operatingsystemrelease => '6', |
| 14 | + :path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', |
| 15 | + :concat_basedir => '/dne', |
16 | 16 | } |
17 | 17 | end |
18 | 18 |
|
19 | | - describe 'gunicorn as' do |
| 19 | + describe 'test-app with default parameter values' do |
20 | 20 | context 'configures test app with default parameter values' do |
21 | | - let(:params) { { dir: '/srv/testapp' } } |
| 21 | + let(:params) { { :dir => '/srv/testapp' } } |
22 | 22 | it { is_expected.to contain_file('/etc/gunicorn.d/test-app').with_mode('0644').with_content(/--log-level=error/) } |
23 | 23 | end |
24 | 24 |
|
25 | | - context 'configures test app with custom log level' do |
26 | | - let(:params) { { dir: '/srv/testapp', loglevel: 'info' } } |
| 25 | + context 'test-app with custom log level' do |
| 26 | + let(:params) { { :dir => '/srv/testapp', :log_level => 'info' } } |
27 | 27 | it { is_expected.to contain_file('/etc/gunicorn.d/test-app').with_mode('0644').with_content(/--log-level=info/) } |
28 | 28 | end |
29 | 29 | end |
|
0 commit comments