Skip to content

Commit

Permalink
fix(tests): use --versions-report to check the correct python version…
Browse files Browse the repository at this point in the history
… is used
  • Loading branch information
javierbertoli committed Jul 10, 2019
1 parent 7b38182 commit 3546f88
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions test/integration/controls/salt_pkgs.rb
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

0 comments on commit 3546f88

Please sign in to comment.