summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md5
-rw-r--r--Modulefile2
-rw-r--r--metadata.json19
-rwxr-xr-xspec/acceptance/ensure_packages_spec.rb4
-rwxr-xr-xspec/acceptance/ensure_resource_spec.rb4
-rwxr-xr-xspec/acceptance/get_module_path_spec.rb18
-rwxr-xr-xspec/acceptance/has_interface_with_spec.rb6
7 files changed, 29 insertions, 29 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5a3597e..97979bf 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,8 @@
+##2014-06-04 - Release 4.2.2
+### Summary
+
+This release adds PE3.3 support in the metadata and fixes a few tests.
+
## 2014-05-08 - Release - 4.2.1
### Summary
This release moves a stray symlink that can cause problems.
diff --git a/Modulefile b/Modulefile
index c5da72d..bf80e3b 100644
--- a/Modulefile
+++ b/Modulefile
@@ -1,5 +1,5 @@
name 'puppetlabs-stdlib'
-version '4.2.1'
+version '4.2.2'
source 'git://github.com/puppetlabs/puppetlabs-stdlib.git'
author 'puppetlabs'
license 'Apache 2.0'
diff --git a/metadata.json b/metadata.json
index 9d3847b..acb880f 100644
--- a/metadata.json
+++ b/metadata.json
@@ -5,7 +5,8 @@
"operatingsystemrelease": [
"4",
"5",
- "6"
+ "6",
+ "7"
]
},
{
@@ -13,7 +14,8 @@
"operatingsystemrelease": [
"4",
"5",
- "6"
+ "6",
+ "7"
]
},
{
@@ -21,7 +23,8 @@
"operatingsystemrelease": [
"4",
"5",
- "6"
+ "6",
+ "7"
]
},
{
@@ -29,7 +32,8 @@
"operatingsystemrelease": [
"4",
"5",
- "6"
+ "6",
+ "7"
]
},
{
@@ -49,7 +53,8 @@
"operatingsystem": "Ubuntu",
"operatingsystemrelease": [
"10.04",
- "12.04"
+ "12.04",
+ "14.04"
]
},
{
@@ -84,7 +89,7 @@
"requirements": [
{
"name": "pe",
- "version_requirement": "3.2.x"
+ "version_requirement": ">= 3.2.0 < 3.4.0"
},
{
"name": "puppet",
@@ -92,7 +97,7 @@
}
],
"name": "puppetlabs-stdlib",
- "version": "4.2.1",
+ "version": "4.2.2",
"source": "git://github.com/puppetlabs/puppetlabs-stdlib",
"author": "puppetlabs",
"license": "Apache 2.0",
diff --git a/spec/acceptance/ensure_packages_spec.rb b/spec/acceptance/ensure_packages_spec.rb
index aa7b14c..f3d2256 100755
--- a/spec/acceptance/ensure_packages_spec.rb
+++ b/spec/acceptance/ensure_packages_spec.rb
@@ -6,8 +6,8 @@ describe 'ensure_packages function', :unless => UNSUPPORTED_PLATFORMS.include?(f
it 'ensure_packages a package' do
apply_manifest('package { "zsh": ensure => absent, }')
pp = <<-EOS
- $a = "zsh"
- ensure_packages($a)
+ $a = "rake"
+ ensure_packages($a,{'provider' => 'gem'})
EOS
apply_manifest(pp, :expect_changes => true) do |r|
diff --git a/spec/acceptance/ensure_resource_spec.rb b/spec/acceptance/ensure_resource_spec.rb
index c4d8887..725f5df 100755
--- a/spec/acceptance/ensure_resource_spec.rb
+++ b/spec/acceptance/ensure_resource_spec.rb
@@ -6,8 +6,8 @@ describe 'ensure_resource function', :unless => UNSUPPORTED_PLATFORMS.include?(f
it 'ensure_resource a package' do
apply_manifest('package { "zsh": ensure => absent, }')
pp = <<-EOS
- $a = "zsh"
- ensure_resource('package', $a)
+ $a = "rake"
+ ensure_resource('package', $a, {'provider' => 'gem'})
EOS
apply_manifest(pp, :expect_changes => true) do |r|
diff --git a/spec/acceptance/get_module_path_spec.rb b/spec/acceptance/get_module_path_spec.rb
index 34d91fa..6ac690c 100755
--- a/spec/acceptance/get_module_path_spec.rb
+++ b/spec/acceptance/get_module_path_spec.rb
@@ -3,22 +3,6 @@ require 'spec_helper_acceptance'
describe 'get_module_path function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
describe 'success' do
- it 'get_module_paths stdlib' do
- pp = <<-EOS
- $a = $::is_pe ? {
- 'true' => '/opt/puppet/share/puppet/modules/stdlib',
- 'false' => '/etc/puppet/modules/stdlib',
- }
- $o = get_module_path('stdlib')
- if $o == $a {
- notify { 'output correct': }
- }
- EOS
-
- apply_manifest(pp, :catch_failures => true) do |r|
- expect(r.stdout).to match(/Notice: output correct/)
- end
- end
it 'get_module_paths dne' do
pp = <<-EOS
$a = $::is_pe ? {
@@ -28,6 +12,8 @@ describe 'get_module_path function', :unless => UNSUPPORTED_PLATFORMS.include?(f
$o = get_module_path('dne')
if $o == $a {
notify { 'output correct': }
+ } else {
+ notify { "failed; module path is '$o'": }
}
EOS
diff --git a/spec/acceptance/has_interface_with_spec.rb b/spec/acceptance/has_interface_with_spec.rb
index 41ae19f..7b38c95 100755
--- a/spec/acceptance/has_interface_with_spec.rb
+++ b/spec/acceptance/has_interface_with_spec.rb
@@ -27,7 +27,11 @@ describe 'has_interface_with function', :unless => UNSUPPORTED_PLATFORMS.include
end
it 'has_interface_with existing interface' do
pp = <<-EOS
- $a = 'lo'
+ if $osfamily == 'Solaris' {
+ $a = 'lo0'
+ } else {
+ $a = 'lo'
+ }
$o = has_interface_with($a)
notice(inline_template('has_interface_with is <%= @o.inspect %>'))
EOS