File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 232232 expect ( stderr ) . not_to match ( /DEBUG -- : :header => \( Symbol\) :default/ )
233233 expect ( stderr ) . not_to match ( /DEBUG -- : Loaded 3 settings from/ )
234234 expect ( stderr ) . not_to match ( /INFO -- : Exiting now because --config-test was specified/ )
235- expect ( stderr ) . to match ( /Catalog for 'to' \( .\) failed to compile with/ )
236235 expect ( stderr ) . to match ( /ArgumentError: Unable to compute facts for node./ )
237236 end
238237 end
Original file line number Diff line number Diff line change 160160 )
161161 expect ( result [ :exitcode ] ) . to eq ( -1 )
162162 expect ( result [ :exception ] ) . to be_a_kind_of ( OctocatalogDiff ::Errors ::CatalogError )
163- expect ( result [ :exception ] . message ) . to match ( /failed to compile with Errno::ENOENT/ )
163+ expect ( result [ :exception ] . message ) . to match ( /Errno::ENOENT: No such file or directory / )
164164 expect ( result [ :exception ] . message ) . to match ( %r{Unable to resolve 'puppet:///modules/test/foo-new'} )
165165 end
166166 end
Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ def valid?
198198 logger , _logger_string = OctocatalogDiff ::Spec . setup_logger
199199 testobj = OctocatalogDiff ::Util ::Catalogs . new ( options , logger )
200200 re = %r{ENC.*/asdkfjlfjkalksdfads wasn't found}
201- expect { testobj . catalogs } . to raise_error ( Errno :: ENOENT , re )
201+ expect { testobj . catalogs } . to raise_error ( OctocatalogDiff :: Errors :: CatalogError , re )
202202 end
203203 end
204204 end
@@ -211,7 +211,7 @@ def valid?
211211 logger , _logger_string = OctocatalogDiff ::Spec . setup_logger
212212 testobj = OctocatalogDiff ::Util ::Catalogs . new ( options , logger )
213213 re = %r{hiera.yaml.*/asdkfjlfjkalksdfads\) wasn't found}
214- expect { testobj . catalogs } . to raise_error ( Errno :: ENOENT , re )
214+ expect { testobj . catalogs } . to raise_error ( OctocatalogDiff :: Errors :: CatalogError , re )
215215 end
216216 end
217217 end
You can’t perform that action at this time.
0 commit comments