onceover 3.0.6 → 3.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/controlrepo.gemspec +1 -1
- data/factsets/CentOS-6.6-32.json +1 -0
- data/templates/test_spec.rb.erb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5793369dbc229784ac127ea5423beb981d755962
|
4
|
+
data.tar.gz: 96431e9aeae8575c5bd718d448f7c5b61d438f29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2dcb286035893ab1d539745552edd83b263bd87f20f9caa468428550c94656dffcc7ba6328c8858d4817a379e4a95ad4f1176439dd5304578472b75fbccf5ff
|
7
|
+
data.tar.gz: 2f657473b5c46f12b582c65b67573d83bdd893dae4e6c8c232cb19d6572c02dd34157d6a768edba9c491f9e6777c98b5ebc279f5778be2ea56076feed91621eb
|
data/README.md
CHANGED
@@ -366,6 +366,8 @@ Here we are specifying custom commands to run for starting, stopping and checkin
|
|
366
366
|
|
367
367
|
**NOTE:** If you need to run some pre_conditions during acceptance tests but not spec tests or vice versa you can check the status of the `$controlrepo_accpetance` variable. It will be `true` when run as an acceptance test and `undef` otherwise. If you want to limit pre_conditions to only certain nodes just use conditional logic based on facts like you normally would.
|
368
368
|
|
369
|
+
**NOTE:** If you want to access the class or factset that onceover is running against just use the `$onceover_class` and `$onceover_node` variables respectively.
|
370
|
+
|
369
371
|
## Extra Tooling
|
370
372
|
|
371
373
|
Is this all too simple for you? Great! This is supposed to be a gateway to writing your own super-awesome really complicated tests using more traditional tools. If you want to ditch this tool in favour of doing it yourself, go ahead, but take these ruby methods as a parting gift:
|
data/controlrepo.gemspec
CHANGED
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "onceover"
|
6
|
-
s.version = "3.0.
|
6
|
+
s.version = "3.0.7"
|
7
7
|
s.authors = ["Dylan Ratcliffe"]
|
8
8
|
s.email = ["dylan.ratcliffe@puppet.com"]
|
9
9
|
s.homepage = "https://github.com/dylanratcliffe/onceover"
|
data/factsets/CentOS-6.6-32.json
CHANGED
data/templates/test_spec.rb.erb
CHANGED
@@ -21,7 +21,9 @@ let!(:<%= function %>) { MockFunction.new('<%= function %>') { |f|
|
|
21
21
|
let(:facts) { <%= node.fact_set %> }
|
22
22
|
<% if pre_condition -%>
|
23
23
|
let(:pre_condition) {
|
24
|
-
pp = <<END
|
24
|
+
pp = <%= '<<' %>-END
|
25
|
+
$onceover_class = '<%= cls.name %>'
|
26
|
+
$onceover_node = '<%= node.name %>'
|
25
27
|
<%= pre_condition.chomp %>
|
26
28
|
END
|
27
29
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: onceover
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dylan Ratcliffe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|