onceover 3.14.0 → 3.14.1

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
  SHA256:
3
- metadata.gz: 0d6c972cf07194a1c1e9241024d8eb5d636d65e653496ad23db5153cf054001e
4
- data.tar.gz: 70b6ec4fc67378ab886af67a09e82aaae4ae017d403529d6d93362878fabccf5
3
+ metadata.gz: 0fc8f5328e601e4a0cc55f358d2afec89e212bb655c95dd458435ec082cf4dcc
4
+ data.tar.gz: b470779fca4e348f5a15f3ed033bc19de361e8eec77388d2eda8d1ed38ce5022
5
5
  SHA512:
6
- metadata.gz: e42b021c7ddf16731d0aee35306bd1a4c3e4c51083d7b1de9c1af2be5b423b79cc2599d3dfa819716e2ad08514948ad9b096796245ddcfb68f27a17465f5c560
7
- data.tar.gz: 1fada5b3aa7fc42e714fb34e2f5ccc4cbfb3b5557cd584bb42e76dfd7ff33e583f1d1ddd1c327441ef0354df83864982337eab1c7666e458410fdad94296bbc7
6
+ metadata.gz: 236786489a55997815844aa4d291163adde6de6163ca6f7cdc927bed441070e4da7acdc8a54b30eb9f21a2d8e79010786c9597096963438eeb378fe204189368
7
+ data.tar.gz: dd485c7f78ff5a8bc0ae36350fed8fb98ec7ec0ba9f6f753e38046f76a31bb1067f626189a21890c76001347f4fdf1326393c2d35da6e8e80040b95127a38a81
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "onceover"
7
- s.version = "3.14.0"
7
+ s.version = "3.14.1"
8
8
  s.authors = ["Dylan Ratcliffe"]
9
9
  s.email = ["dylan.ratcliffe@puppet.com"]
10
10
  s.homepage = "https://github.com/dylanratcliffe/onceover"
@@ -29,6 +29,20 @@ describe "<%= cls.name %>" do
29
29
  end
30
30
  <% end -%>
31
31
 
32
+ before :each do
33
+ # Curtrently there is some code within Puppet that will try to execute
34
+ # commands when compiling a catalog even though it shouldn't. One example is
35
+ # the groups attribute of the user resource on AIX. If we are running on
36
+ # Windows but pretending to be UNIX this will definitely fail so we need to
37
+ # mock it (or vice versa)
38
+ # Details:
39
+ # https://github.com/puppetlabs/puppet/blob/master/lib/puppet/util/execution.rb#L191
40
+ expected_null_file = Puppet::Util::Platform.windows? ? 'NUL' : '/dev/null'
41
+ unless File.exist? expected_null_file
42
+ Puppet::Util::Execution.stubs(:execute).raises(Puppet::ExecutionFailure.new("Onceover caused this"))
43
+ end
44
+ end
45
+
32
46
  <% if @after_conditions -%>
33
47
  after :each do
34
48
  <% @after_conditions.each do |function| -%>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onceover
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.14.0
4
+ version: 3.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Ratcliffe