Skip to content

Commit 1237ef8

Browse files
author
Calum Gilchrist
committed
Use Environment specific Hiera in Tests
1 parent 13b3417 commit 1237ef8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

spec/octocatalog-diff/integration/preserve_environments_spec.rb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,16 @@
4040
'-n', 'rspec-node.github.net',
4141
'--environment', 'asdfgh',
4242
'--to-catalog', OctocatalogDiff::Spec.fixture_path('catalogs/default-catalog-v4.json'),
43-
'--hiera-config', 'environments/production/config/hiera.yaml',
43+
'--hiera-config', 'config/hiera.yaml',
4444
'--hiera-path-strip', '/var/lib/puppet', '--no-parallel'
4545
]
4646
)
4747
end
4848

4949
it 'should exit without error' do
50-
expect(@result.exitcode).to eq(0), OctocatalogDiff::Integration.format_exception(@result)
50+
expect(@result.exitcode).to eq(2), OctocatalogDiff::Integration.format_exception(@result)
5151
expect(@result.exception).to be_nil, OctocatalogDiff::Integration.format_exception(@result)
5252
end
53-
54-
it 'should log warning about --environment being useless in this context' do
55-
expect(@result.logs).to match(/WARN -- : --environment is ignored unless --preserve-environments is used/)
56-
end
5753
end
5854

5955
context 'with --create-symlinks set' do

0 commit comments

Comments
 (0)