Skip to content

Commit 12e1e87

Browse files
author
Kevin Paulisse
committed
Add integration for reference validation disabled
1 parent 520045f commit 12e1e87

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

spec/octocatalog-diff/integration/reference_validation_spec.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,22 @@ def self.catalog_contains_resource(result, type, title)
3333
end
3434
end
3535

36+
describe 'validation specifically disabled' do
37+
before(:all) do
38+
argv = ['--catalog-only', '-n', 'rspec-node.github.net', '--no-reference-validation']
39+
@result = OctocatalogDiff::Integration.integration(
40+
hiera_config: 'hiera.yaml',
41+
spec_fact_file: 'facts.yaml',
42+
spec_repo: 'reference-validation',
43+
argv: argv
44+
)
45+
end
46+
47+
it 'should return the valid catalog' do
48+
expect(@result.exitcode).to eq(2)
49+
end
50+
end
51+
3652
describe 'validation of sample catalog' do
3753
before(:all) do
3854
@result = OctocatalogDiff::Spec.reference_validation_catalog('valid', [])

0 commit comments

Comments
 (0)