File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
spec/octocatalog-diff/integration Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 40
40
'-n' , 'rspec-node.github.net' ,
41
41
'--environment' , 'asdfgh' ,
42
42
'--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' ,
44
44
'--hiera-path-strip' , '/var/lib/puppet' , '--no-parallel'
45
45
]
46
46
)
47
47
end
48
48
49
49
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 )
51
51
expect ( @result . exception ) . to be_nil , OctocatalogDiff ::Integration . format_exception ( @result )
52
52
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
57
53
end
58
54
59
55
context 'with --create-symlinks set' do
You can’t perform that action at this time.
0 commit comments