Skip to content

Commit

Permalink
test: centralise all suites into default suite
Browse files Browse the repository at this point in the history
Modify the `default` suite to use the `saltmajorversion` InSpec input
rather than the `version` variable in `pkgs_spec.rb`.
  • Loading branch information
myii committed Nov 17, 2021
1 parent 98c9dbf commit b475e24
Show file tree
Hide file tree
Showing 81 changed files with 2 additions and 5,277 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@
control 'salt packages' do
title 'should be installed'

version = '3002'

pkgs.each do |p|
describe package(p) do
it { should be_installed }
its('version') { should match(/^#{version}/) }
its('version') { should match(/^#{input('saltmajorversion')}/) }
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ values:
release: '3001'
restart_via_at: false
retry_options:
attempts: 2
attempts: 5
interval: 10
splay: 10
until: true
Expand Down
50 changes: 0 additions & 50 deletions test/integration/v3001-py3/README.md

This file was deleted.

47 changes: 0 additions & 47 deletions test/integration/v3001-py3/controls/_mapdata.rb

This file was deleted.

26 changes: 0 additions & 26 deletions test/integration/v3001-py3/controls/pkgs_spec.rb

This file was deleted.

115 changes: 0 additions & 115 deletions test/integration/v3001-py3/files/_mapdata/amazonlinux-2.yaml

This file was deleted.

115 changes: 0 additions & 115 deletions test/integration/v3001-py3/files/_mapdata/centos-7.yaml

This file was deleted.

Loading

0 comments on commit b475e24

Please sign in to comment.