Skip to content

Commit 7c3ce1e

Browse files
authored
Merge pull request #190 from amanda11/remove_mistral
Remove mistral tests
2 parents ed40e93 + 7f08c5b commit 7c3ce1e

File tree

4 files changed

+0
-340
lines changed

4 files changed

+0
-340
lines changed

cli/test_execution_tail.bats

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,6 @@ load '../test_helpers/bats-assert/load'
3939
assert_output --regexp "Execution [0-9a-f]{24} has completed \\(status=succeeded\\)."
4040
}
4141

42-
@test "st2 execution tail command works correctly for Mistral workflows" {
43-
run st2 runner get mistral-v2 > /dev/null
44-
if [[ "$status" -ne 0 ]]; then
45-
skip "Mistral not available, skipping tests"
46-
fi
47-
48-
# Run the run + execution tail command - this may take awhile
49-
run eval "st2 run examples.mistral-streaming-demo count=2 sleep_delay=0.2 --tail"
50-
51-
assert_success
52-
assert_output --regexp "Child execution \\(task=task3\\) [0-9a-f]{24} has started\..*"
53-
assert_output --regexp "Child execution \\(task=task3\\) [0-9a-f]{24} has finished \\(status=succeeded\\)\."
54-
assert_output --regexp "Child execution \\(task=task10\\) [0-9a-f]{24} has started\..*"
55-
assert_output --regexp "Child execution \\(task=task10\\) [0-9a-f]{24} has finished \\(status=succeeded\\)\."
56-
assert_output --regexp "Execution [0-9a-f]{24} has completed \\(status=succeeded\\)."
57-
}
58-
5942
@test "st2 execution tail command works correctly for Orquesta workflows" {
6043
run st2 runner get orquesta > /dev/null
6144
if [[ "$status" -ne 0 ]]; then

packs/tests/actions/chains/test_inquiry_mistral.yaml

Lines changed: 0 additions & 240 deletions
This file was deleted.

packs/tests/actions/test_inquiry_mistral.meta.yaml

Lines changed: 0 additions & 20 deletions
This file was deleted.

spec/vagrant/core_spec.rb

Lines changed: 0 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -152,69 +152,6 @@
152152
it { should be_directory }
153153
end
154154

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-
218155
describe port(8989) do
219156
it { should be_listening }
220157
end

0 commit comments

Comments
 (0)