File tree Expand file tree Collapse file tree
spec/octocatalog-diff/integration Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments