Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions cli/test_execution_tail.bats
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,6 @@ load '../test_helpers/bats-assert/load'
assert_output --regexp "Execution [0-9a-f]{24} has completed \\(status=succeeded\\)."
}

@test "st2 execution tail command works correctly for Mistral workflows" {
run st2 runner get mistral-v2 > /dev/null
if [[ "$status" -ne 0 ]]; then
skip "Mistral not available, skipping tests"
fi

# Run the run + execution tail command - this may take awhile
run eval "st2 run examples.mistral-streaming-demo count=2 sleep_delay=0.2 --tail"

assert_success
assert_output --regexp "Child execution \\(task=task3\\) [0-9a-f]{24} has started\..*"
assert_output --regexp "Child execution \\(task=task3\\) [0-9a-f]{24} has finished \\(status=succeeded\\)\."
assert_output --regexp "Child execution \\(task=task10\\) [0-9a-f]{24} has started\..*"
assert_output --regexp "Child execution \\(task=task10\\) [0-9a-f]{24} has finished \\(status=succeeded\\)\."
assert_output --regexp "Execution [0-9a-f]{24} has completed \\(status=succeeded\\)."
}

@test "st2 execution tail command works correctly for Orquesta workflows" {
run st2 runner get orquesta > /dev/null
if [[ "$status" -ne 0 ]]; then
Expand Down
240 changes: 0 additions & 240 deletions packs/tests/actions/chains/test_inquiry_mistral.yaml

This file was deleted.

20 changes: 0 additions & 20 deletions packs/tests/actions/test_inquiry_mistral.meta.yaml

This file was deleted.

63 changes: 0 additions & 63 deletions spec/vagrant/core_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,69 +152,6 @@
it { should be_directory }
end

# mistral
MISTRAL_DEBIAN_PACKAGES = %w(mysql-server)
MISTRAL_REDHAT_PACKAGES = %w(mariadb mariadb-libs mariadb-devel mariadb-server)

MISTRAL_DEBIAN_PACKAGES.each do |package|
describe package(package), :if => os[:family] == 'ubuntu' do
it { should be_installed }
end
end

MISTRAL_REDHAT_PACKAGES.each do |package|
describe package(package), :if => os[:family] == 'redhat' do
it { should be_installed }
end
end

# describe connection string in config
# ensure mysql is setup with mistral

describe file('/opt/openstack/mistral') do
it { should be_directory }
end

describe file('/opt/openstack/mistral/.git') do
it { should be_directory }
end

describe file('/opt/openstack/mistral/.venv') do
it { should be_directory }
end

describe file('/etc/mistral/mistral.conf') do
it { should be_file }
it { should contain 'connection = mysql://mistral:StackStorm@localhost/mistral' }
it { should contain 'max_pool_size = 100' }
it { should contain 'auth_enable = false' }
end

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"

describe file('/etc/mistral/wf_trace_logging.conf') do
it { should be_file }
it { should contain 'args=("/var/log/mistral_wf_trace.log",)' }
end

describe file('/etc/init/mistral.conf'), :if => os[:family] == 'ubuntu' do
it { should be_file }
it { should contain MISTRAL_INIT_COMMAND }
end

describe file('/etc/systemd/system/mistral.service'), :if => os[:family] == 'redhat' do
it { should be_file }
it { should contain MISTRAL_INIT_COMMAND }
end

describe file('/etc/mistral/actions/st2mistral') do
it { should be_directory }
end

describe file('/etc/mistral/actions/st2mistral/.git') do
it { should be_directory }
end

describe port(8989) do
it { should be_listening }
end
Expand Down