rspec-puppet 2.6.3 → 2.6.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b281ece69d4cace3c52f168407b4908346ba8a0
4
- data.tar.gz: 9283c5b26b51922083be60949279b67b5596e4b4
3
+ metadata.gz: 1b4f7cd327bd2ebc223082a8f2ec4fa260a33099
4
+ data.tar.gz: 5f863681cfce560d3c821d097aa9b659b1911ff2
5
5
  SHA512:
6
- metadata.gz: a3f49d510e15dd345dc15c8cca0a7c23642f70fe6f8efef15763a1846cc46a004d65097435715086db7a65c203a6862269d4fde4bd6d9e1321ef18caa586b623
7
- data.tar.gz: ba1bb977bf0f91a1d0478bd5631abea1b3893c5d38ba80e4b146f95c549cee704ed3cae184f38caa388f91459f9aba5d9d65410437a773bc3a9fc1732c09b952
6
+ metadata.gz: d8ac24b9e683cb744bbe2102bf05c13c439594b4923b3aea580837b96795ee99973342ffab028e2feaaa9a0da1ccca6152ecbbc25c866f06d227c44b72e7840e
7
+ data.tar.gz: 933f349b6375c4e158afa6f87069c37b764989b315dbf0801c3f3e3b45a9519d441ae17ce6de30299500356730a36f15d19fe3e52dc60c3c38e92cf681d1aa84
data/CHANGELOG.md CHANGED
@@ -2,6 +2,17 @@
2
2
  All notable changes to this project will be documented in this file. This
3
3
  project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
+ ## [2.6.4]
6
+
7
+ ### Fixed
8
+
9
+ * A regression that prevented environment names to be specified as a symbol.
10
+ * A regression that prevented the `environmentpath` setting from taking
11
+ effect.
12
+ * Stubbed out the automatic confines created by resource providers on their
13
+ specified commands, which was preventing the correct provider from being
14
+ assigned to a resource when performing cross-platform testing.
15
+
5
16
  ## [2.6.3]
6
17
 
7
18
  ### Fixed
@@ -50,6 +50,11 @@ module RSpec::Puppet
50
50
 
51
51
  if Puppet.settings.respond_to?(:initialize_app_defaults)
52
52
  Puppet.settings.initialize_app_defaults(settings_hash)
53
+
54
+ # Forcefully apply the environmentpath setting instead of relying on
55
+ # the application defaults as Puppet::Test::TestHelper automatically
56
+ # sets this value as well, overriding our application default
57
+ Puppet.settings[:environmentpath] = settings_hash[:environmentpath] if settings_hash.key?(:environmentpath)
53
58
  else
54
59
  # Set settings the old way for Puppet 2.x, because that's how
55
60
  # they're defaulted in that version of Puppet::Test::TestHelper and
@@ -111,6 +111,20 @@ module Puppet
111
111
  module_function :pretend_platform
112
112
  end
113
113
  end
114
+
115
+ if defined?(Puppet::Confine)
116
+ class Confine::Exists < Puppet::Confine
117
+ def pass?(value)
118
+ true
119
+ end
120
+ end
121
+ else
122
+ class Provider::Confine::Exists < Puppet::Provider::Confine
123
+ def pass?(value)
124
+ true
125
+ end
126
+ end
127
+ end
114
128
  end
115
129
 
116
130
  class Pathname
@@ -206,7 +206,7 @@ module RSpec::Puppet
206
206
  def facts_hash(node)
207
207
  base_facts = {
208
208
  'clientversion' => Puppet::PUPPETVERSION,
209
- 'environment' => environment,
209
+ 'environment' => environment.to_s,
210
210
  }
211
211
 
212
212
  node_facts = {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.3
4
+ version: 2.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Sharpe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-04 00:00:00.000000000 Z
11
+ date: 2017-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec