Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Sep 25, 2024
1 parent 81c0209 commit 9123a8e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/definitions/features/installer_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,16 @@

context 'installer with scenarios' do
before do
installer_config_dir(["#{data_dir}/installer/simple_config"])
installer_config_dir("#{data_dir}/installer/simple_config")
mock_installer_package('foreman-installer')
end

it 'loads list of configs on the start' do
expected_config_files = [
"#{data_dir}/installer/simple_config/scenarios.d",
"#{data_dir}/installer/simple_config/scenarios.d/foreman-answers.yaml",
"#{data_dir}/installer/simple_config/scenarios.d/foreman.yaml",
"#{data_dir}/installer/simple_config/scenarios.d/last_scenario.yaml",
"#{data_dir}/installer/simple_config",
'/opt/puppetlabs/puppet/cache/foreman_cache_data',
'/opt/puppetlabs/puppet/cache/pulpcore_cache_data',
'test/data/installer/simple_config/scenarios.d/foreman-answers.yaml',
].sort
_(subject.config_files.sort).must_equal(expected_config_files)
end
Expand Down

0 comments on commit 9123a8e

Please sign in to comment.