197e2d7e70
- ensure_packages fails because Error: Sun packages must specify a package source - ensure_resource fails for the same reason - get_module_path fails because the modulepath is different - has_interface_with fails because the interface is lo0 not lo
24 lines
749 B
Ruby
Executable file
24 lines
749 B
Ruby
Executable file
#! /usr/bin/env ruby -S rspec
|
|
require 'spec_helper_acceptance'
|
|
|
|
describe 'ensure_packages function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
|
describe 'success' do
|
|
it 'ensure_packages a package' do
|
|
apply_manifest('package { "zsh": ensure => absent, }')
|
|
pp = <<-EOS
|
|
$a = "rake"
|
|
ensure_packages($a,{'provider' => 'gem'})
|
|
EOS
|
|
|
|
apply_manifest(pp, :expect_changes => true) do |r|
|
|
expect(r.stdout).to match(/Package\[zsh\]\/ensure: (created|ensure changed 'purged' to 'present')/)
|
|
end
|
|
end
|
|
it 'ensures a package already declared'
|
|
it 'takes defaults arguments'
|
|
end
|
|
describe 'failure' do
|
|
it 'handles no arguments'
|
|
it 'handles non strings'
|
|
end
|
|
end
|