diff --git a/spec/acceptance/cs_primitive_spec.rb b/spec/acceptance/cs_primitive_spec.rb index c6d9ed34..07fbb4fd 100644 --- a/spec/acceptance/cs_primitive_spec.rb +++ b/spec/acceptance/cs_primitive_spec.rb @@ -21,11 +21,15 @@ J76GtqoIOh+CTeY/BMwBotdQdgeR0zvjE9FuLWkhTmRtVFhbVIzJbFlFuYq5d3LH NWyN0RsTXFaqowV1/HSyvfD7LoF/CrmN5gOAM3Ierv/Ti9uqGVhdGBd/kw==' File.open('/tmp/ca.pem', 'w') { |f| f.write(cert) } - promotable_metadata_name = if Gem::Version.new(fact('pcs_version')) < Gem::Version.new('0.10.0') - 'master' - else - 'promotable' - end + promotable_metadata_name = if fact('default_provider') == 'pcs' + if Gem::Version.new(fact('pcs_version')) < Gem::Version.new('0.10.0') + 'master' + else + 'promotable' + end + else + 'master' + end it 'with defaults' do pp = <<-EOS file { '/tmp/ca.pem':