-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tests): use --versions-report to check the correct python version…
… is used
- Loading branch information
1 parent
7b38182
commit 3546f88
Showing
1 changed file
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
version = input('salt_version') == 'develop' ? 'Fluorine' : input('salt_version') | ||
salt_version = input('salt_version') == 'develop' ? 'Fluorine' : input('salt_version') | ||
python_version = input('py_version') == '3' ? '3' : '2' | ||
|
||
control 'salt call' do | ||
title 'should be installed' | ||
|
||
describe command('salt-call --version') do | ||
its('stdout') { should match /#{version}/ } | ||
its('stdout') { should match /#{salt_version}/ } | ||
its('exit_status') { should eq 0 } | ||
end | ||
end | ||
|
||
control 'salt packages' do | ||
title 'should be using the desired python' | ||
|
||
describe command('salt-call --versions-report') do | ||
its('stdout') { should match /Python: #{python_version}/ } | ||
its('exit_status') { should eq 0 } | ||
end | ||
end |