File tree Expand file tree Collapse file tree
spec/octocatalog-diff/tests/catalog-util Expand file tree Collapse file tree Original file line number Diff line number Diff line change 167167 logs = @logger_str . string . split ( /\n / ) . compact . map { |x | OctocatalogDiff ::Spec . strip_log_message ( x ) }
168168 expect ( logs ) . to include ( 'DEBUG - ENC override: foo = "bar"' )
169169 end
170+
171+ it 'should not error if ENC regexp has ::s' do
172+ options = {
173+ enc_override : [ OctocatalogDiff ::API ::V1 ::Override . create_from_input ( '/parameters::o+/=(string)bar' ) ]
174+ }
175+ subject = described_class . allocate
176+ subject . instance_variable_set ( '@options' , options )
177+ subject . instance_variable_set ( '@content' , "---\n parameters:\n foo: baz\n fizz: buzz\n " )
178+ subject . send ( :override_enc_parameters , @logger )
179+ expect ( subject . instance_variable_get ( '@content' ) ) . to eq ( "---\n parameters:\n foo: baz\n fizz: buzz\n " )
180+ logs = @logger_str . string . split ( /\n / ) . compact . map { |x | OctocatalogDiff ::Spec . strip_log_message ( x ) }
181+ expect ( logs ) . not_to match ( /DEBUG - ENC override/ )
182+ end
170183 end
171184
172185 describe '#merge_enc_param' do
You can’t perform that action at this time.
0 commit comments