Page MenuHomeSoftware Heritage

unsupported_spec.rb
No OneTemporary

unsupported_spec.rb

require 'spec_helper_acceptance'
describe 'unsupported distributions and OSes', :if => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
it 'should fail' do
pp = <<-EOS
class { 'java': }
java_ks { 'puppetca:keystore':
ensure => latest,
certificate => '#{default['puppetpath']}/ssl/certs/ca.pem',
target => '/etc/keystore.ks',
password => 'puppet',
trustcacerts => true,
}
EOS
expect(apply_manifest(pp, :expect_failures => true).stderr).to match(/unsupported os/)
end
end

File Metadata

Mime Type
text/x-ruby
Expires
Jun 4 2025, 7:08 PM (10 w, 2 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3398947

Event Timeline