onceover 3.0.6 → 3.0.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dcd6ae85ed397165b0be23b34790c9f8b52a3f68
4
- data.tar.gz: a23571dcacd9dd5b7bc703f7c46e045431cf29fe
3
+ metadata.gz: 5793369dbc229784ac127ea5423beb981d755962
4
+ data.tar.gz: 96431e9aeae8575c5bd718d448f7c5b61d438f29
5
5
  SHA512:
6
- metadata.gz: 16b79ab89c3eedf30ecc2ae67b3ce115c4a3f91ffc03f83da0a91482ac9668fe46717569b2ed54b5fcf3582d0f401e27322691c1f796868882db83bb9d65b877
7
- data.tar.gz: b00f9e885a561659c18545fdda62d6956944c9cc88a1d0df751059e4658833901b95900d1691394a24c3df3e16af4cdbf2765a9bf5be096cc88e9c7864cc66c7
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:
@@ -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"
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"
@@ -17,6 +17,7 @@
17
17
  "boardproductname": "VirtualBox",
18
18
  "boardserialnumber": "0",
19
19
  "chassistype": "Other",
20
+ "concat_basedir": "/opt/puppetlabs/puppet/cache/concat",
20
21
  "dhcp_servers": {
21
22
  "eth0": "10.0.2.2",
22
23
  "system": "10.0.2.2"
@@ -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.6
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-24 00:00:00.000000000 Z
11
+ date: 2016-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake