|
45 | 45 | 'group' => 'www-data' |
46 | 46 | ) } |
47 | 47 |
|
48 | | - it { is_expected.to contain_exec('uit-cms-cache-rebuild pre').with( |
49 | | - 'command' => 'drush cache:rebuild', |
50 | | - 'cwd' => '/var/www/uit-cms', |
51 | | - 'path' => ['/usr/local/bin', '/usr/bin', '/bin', '/var/www/uit-cms/vendor/bin'], |
52 | | - 'environment' => ['HOME=/'], |
53 | | - 'user' => 'www-data', |
54 | | - 'refreshonly' => true |
55 | | - ) } |
56 | | - |
57 | | - it { is_expected.to contain_exec('uit-cms-updatedb').with( |
58 | | - 'command' => 'drush updatedb -y', |
59 | | - 'cwd' => '/var/www/uit-cms', |
60 | | - 'path' => ['/usr/local/bin', '/usr/bin', '/bin', '/var/www/uit-cms/vendor/bin'], |
61 | | - 'environment' => ['HOME=/'], |
62 | | - 'user' => 'www-data', |
63 | | - 'refreshonly' => true |
64 | | - ) } |
65 | | - |
66 | | - it { is_expected.to contain_exec('uit-cms-config-import').with( |
67 | | - 'command' => 'drush config:import -y', |
68 | | - 'cwd' => '/var/www/uit-cms', |
69 | | - 'path' => ['/usr/local/bin', '/usr/bin', '/bin', '/var/www/uit-cms/vendor/bin'], |
70 | | - 'environment' => ['HOME=/'], |
71 | | - 'user' => 'www-data', |
72 | | - 'refreshonly' => true |
73 | | - ) } |
74 | | - |
75 | | - it { is_expected.to contain_exec('uit-cms-cache-rebuild post').with( |
76 | | - 'command' => 'drush cache:rebuild', |
| 48 | + it { is_expected.to contain_exec('uit-cms-drush-deploy').with( |
| 49 | + 'command' => 'drush deploy -v -y', |
77 | 50 | 'cwd' => '/var/www/uit-cms', |
78 | 51 | 'path' => ['/usr/local/bin', '/usr/bin', '/bin', '/var/www/uit-cms/vendor/bin'], |
79 | 52 | 'environment' => ['HOME=/'], |
80 | 53 | 'user' => 'www-data', |
| 54 | + 'logoutput' => 'on_failure', |
81 | 55 | 'refreshonly' => true |
82 | 56 | ) } |
83 | 57 |
|
|
113 | 87 | it { is_expected.to contain_file('uit-cms-drush-config').that_requires('User[www-data]') } |
114 | 88 | it { is_expected.to contain_file('uit-cms-drush-config').that_requires('Package[uit-cms]') } |
115 | 89 | it { is_expected.to contain_file('uit-cms-drush-config').that_notifies('Service[uit-cms]') } |
116 | | - it { is_expected.to contain_exec('uit-cms-cache-rebuild pre').that_requires('User[www-data]') } |
117 | | - it { is_expected.to contain_exec('uit-cms-cache-rebuild pre').that_subscribes_to('Package[uit-cms]') } |
118 | | - it { is_expected.to contain_exec('uit-cms-cache-rebuild pre').that_subscribes_to('File[uit-cms-settings]') } |
119 | | - it { is_expected.to contain_exec('uit-cms-cache-rebuild pre').that_subscribes_to('File[uit-cms-drush-config]') } |
120 | | - it { is_expected.to contain_exec('uit-cms-updatedb').that_requires('User[www-data]') } |
121 | | - it { is_expected.to contain_exec('uit-cms-updatedb').that_subscribes_to('Package[uit-cms]') } |
122 | | - it { is_expected.to contain_exec('uit-cms-updatedb').that_subscribes_to('File[uit-cms-settings]') } |
123 | | - it { is_expected.to contain_exec('uit-cms-updatedb').that_subscribes_to('File[uit-cms-drush-config]') } |
124 | | - it { is_expected.to contain_exec('uit-cms-updatedb').that_requires('Exec[uit-cms-cache-rebuild pre]') } |
125 | | - it { is_expected.to contain_exec('uit-cms-config-import').that_requires('User[www-data]') } |
126 | | - it { is_expected.to contain_exec('uit-cms-config-import').that_subscribes_to('Package[uit-cms]') } |
127 | | - it { is_expected.to contain_exec('uit-cms-config-import').that_subscribes_to('File[uit-cms-settings]') } |
128 | | - it { is_expected.to contain_exec('uit-cms-config-import').that_subscribes_to('File[uit-cms-drush-config]') } |
129 | | - it { is_expected.to contain_exec('uit-cms-config-import').that_requires('Exec[uit-cms-updatedb]') } |
130 | | - it { is_expected.to contain_exec('uit-cms-cache-rebuild post').that_requires('User[www-data]') } |
131 | | - it { is_expected.to contain_exec('uit-cms-cache-rebuild post').that_subscribes_to('Package[uit-cms]') } |
132 | | - it { is_expected.to contain_exec('uit-cms-cache-rebuild post').that_subscribes_to('File[uit-cms-settings]') } |
133 | | - it { is_expected.to contain_exec('uit-cms-cache-rebuild post').that_subscribes_to('File[uit-cms-drush-config]') } |
134 | | - it { is_expected.to contain_exec('uit-cms-cache-rebuild post').that_requires('Exec[uit-cms-config-import]') } |
| 90 | + it { is_expected.to contain_exec('uit-cms-drush-deploy').that_requires('User[www-data]') } |
| 91 | + it { is_expected.to contain_exec('uit-cms-drush-deploy').that_subscribes_to('Package[uit-cms]') } |
| 92 | + it { is_expected.to contain_exec('uit-cms-drush-deploy').that_subscribes_to('File[uit-cms-settings]') } |
| 93 | + it { is_expected.to contain_exec('uit-cms-drush-deploy').that_subscribes_to('File[uit-cms-drush-config]') } |
135 | 94 | it { is_expected.to contain_cron('uit-cms-core-cron').that_requires('User[www-data]') } |
136 | | - it { is_expected.to contain_cron('uit-cms-core-cron').that_requires('Exec[uit-cms-cache-rebuild post]') } |
| 95 | + it { is_expected.to contain_cron('uit-cms-core-cron').that_requires('Exec[uit-cms-drush-deploy]') } |
137 | 96 | it { is_expected.to contain_cron('uit-cms-curator-sync').that_requires('User[www-data]') } |
138 | | - it { is_expected.to contain_cron('uit-cms-curator-sync').that_requires('Exec[uit-cms-cache-rebuild post]') } |
| 97 | + it { is_expected.to contain_cron('uit-cms-curator-sync').that_requires('Exec[uit-cms-drush-deploy]') } |
139 | 98 | it { is_expected.to contain_service('uit-cms').that_requires('Profiles::Php::Fpm_service_alias[uit-cms]') } |
140 | 99 |
|
141 | 100 | context "without hieradata" do |
|
0 commit comments