onceover 3.14.0 → 3.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/onceover.gemspec +1 -1
- data/templates/test_spec.rb.erb +14 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fc8f5328e601e4a0cc55f358d2afec89e212bb655c95dd458435ec082cf4dcc
|
4
|
+
data.tar.gz: b470779fca4e348f5a15f3ed033bc19de361e8eec77388d2eda8d1ed38ce5022
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 236786489a55997815844aa4d291163adde6de6163ca6f7cdc927bed441070e4da7acdc8a54b30eb9f21a2d8e79010786c9597096963438eeb378fe204189368
|
7
|
+
data.tar.gz: dd485c7f78ff5a8bc0ae36350fed8fb98ec7ec0ba9f6f753e38046f76a31bb1067f626189a21890c76001347f4fdf1326393c2d35da6e8e80040b95127a38a81
|
data/onceover.gemspec
CHANGED
@@ -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.
|
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"
|
data/templates/test_spec.rb.erb
CHANGED
@@ -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| -%>
|