|
152 | 152 | it { should be_directory } |
153 | 153 | end |
154 | 154 |
|
155 | | -# mistral |
156 | | -MISTRAL_DEBIAN_PACKAGES = %w(mysql-server) |
157 | | -MISTRAL_REDHAT_PACKAGES = %w(mariadb mariadb-libs mariadb-devel mariadb-server) |
158 | | - |
159 | | -MISTRAL_DEBIAN_PACKAGES.each do |package| |
160 | | - describe package(package), :if => os[:family] == 'ubuntu' do |
161 | | - it { should be_installed } |
162 | | - end |
163 | | -end |
164 | | - |
165 | | -MISTRAL_REDHAT_PACKAGES.each do |package| |
166 | | - describe package(package), :if => os[:family] == 'redhat' do |
167 | | - it { should be_installed } |
168 | | - end |
169 | | -end |
170 | | - |
171 | | -# describe connection string in config |
172 | | -# ensure mysql is setup with mistral |
173 | | - |
174 | | -describe file('/opt/openstack/mistral') do |
175 | | - it { should be_directory } |
176 | | -end |
177 | | - |
178 | | -describe file('/opt/openstack/mistral/.git') do |
179 | | - it { should be_directory } |
180 | | -end |
181 | | - |
182 | | -describe file('/opt/openstack/mistral/.venv') do |
183 | | - it { should be_directory } |
184 | | -end |
185 | | - |
186 | | -describe file('/etc/mistral/mistral.conf') do |
187 | | - it { should be_file } |
188 | | - it { should contain 'connection = mysql://mistral:StackStorm@localhost/mistral' } |
189 | | - it { should contain 'max_pool_size = 100' } |
190 | | - it { should contain 'auth_enable = false' } |
191 | | -end |
192 | | - |
193 | | -MISTRAL_INIT_COMMAND="/opt/openstack/mistral/.venv/bin/python /opt/openstack/mistral/mistral/cmd/launch.py --config-file /etc/mistral/mistral.conf --log-file /var/log/mistral.log --log-config-append /etc/mistral/wf_trace_logging.conf" |
194 | | - |
195 | | -describe file('/etc/mistral/wf_trace_logging.conf') do |
196 | | - it { should be_file } |
197 | | - it { should contain 'args=("/var/log/mistral_wf_trace.log",)' } |
198 | | -end |
199 | | - |
200 | | -describe file('/etc/init/mistral.conf'), :if => os[:family] == 'ubuntu' do |
201 | | - it { should be_file } |
202 | | - it { should contain MISTRAL_INIT_COMMAND } |
203 | | -end |
204 | | - |
205 | | -describe file('/etc/systemd/system/mistral.service'), :if => os[:family] == 'redhat' do |
206 | | - it { should be_file } |
207 | | - it { should contain MISTRAL_INIT_COMMAND } |
208 | | -end |
209 | | - |
210 | | -describe file('/etc/mistral/actions/st2mistral') do |
211 | | - it { should be_directory } |
212 | | -end |
213 | | - |
214 | | -describe file('/etc/mistral/actions/st2mistral/.git') do |
215 | | - it { should be_directory } |
216 | | -end |
217 | | - |
218 | 155 | describe port(8989) do |
219 | 156 | it { should be_listening } |
220 | 157 | end |
|
0 commit comments