onceover 3.0.9 → 3.0.10

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: 27913d7150232a117cd229899972ddb6944a9376
4
- data.tar.gz: 2162e9f5ad9facbd371abeb1e9f5cf325c1a9456
3
+ metadata.gz: 7cc4b6a12f15647aaa3d9c8e6fd3b9c861755a33
4
+ data.tar.gz: e849504c04131575ac616c3bb8a12b589784160f
5
5
  SHA512:
6
- metadata.gz: ac49810d82e072f6a9004df8b82588ff69bb06ed941eb3b530524252893169da7c498dd7bf3fde09bcb98845ccb0dd0811393113e37d0119c174fedebf630beb
7
- data.tar.gz: b2ec3e2cbe178cb3ab4554fe880027adb0880ac0d362f1e3a4afb12d2c4a73f1486654aa84445bce6f2cabedef03f52c3e75edc051b31a296689225c4002c377
6
+ metadata.gz: 51a531b68836433a1d1adcf95301c84c5c19e02af589ea8cf88a49d76f3618cef142fa6ccd1e7347e98cdc6d70873b73f2afa7903dbf6522acddfc395fab54a2
7
+ data.tar.gz: d096c470967ad83e6e8158e72f6cfa17b4b070917d81287f5f9ff31cca2355edb63a8c50f8f96d1e4bc9c02b25684ac4bdfa6ef453b32ba107e4044e55373728
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.9"
6
+ s.version = "3.0.10"
7
7
  s.authors = ["Dylan Ratcliffe"]
8
8
  s.email = ["dylan.ratcliffe@puppet.com"]
9
9
  s.homepage = "https://github.com/dylanratcliffe/onceover"
@@ -18,10 +18,11 @@ This will run the full set of spec or acceptance tests.
18
18
  This includes deploying using r10k and running all custom tests.
19
19
  DESCRIPTION
20
20
 
21
- optional :t, :tags, 'A list of tags. Only tests with these tags will be run'
22
- optional :c, :classes, 'A list of classes. Only tests with these classes will be run'
23
- optional :n, :nodes, 'A list of nodes. Only tests with these nodes will be run'
24
- optional :s, :skip_r10k, 'Skip the r10k step'
21
+ optional :t, :tags, 'A list of tags. Only tests with these tags will be run'
22
+ optional :c, :classes, 'A list of classes. Only tests with these classes will be run'
23
+ optional :n, :nodes, 'A list of nodes. Only tests with these nodes will be run'
24
+ optional :s, :skip_r10k, 'Skip the r10k step'
25
+ optional :sv, :strict_variables, 'Run with strict_variables set to yes'
25
26
 
26
27
  run do |opts, args, cmd|
27
28
  puts cmd.help(:verbose => opts[:verbose])
@@ -24,6 +24,7 @@ class Onceover
24
24
  attr_accessor :filter_nodes
25
25
  attr_accessor :mock_functions
26
26
  attr_accessor :skip_r10k
27
+ attr_accessor :strict_variables
27
28
 
28
29
  def initialize(file,opts = {})
29
30
  begin
@@ -42,6 +43,7 @@ class Onceover
42
43
  @acceptance_tests = []
43
44
  @opts = opts
44
45
  @mock_functions = config['functions']
46
+ @strict_variables = opts[:strict_variables] ? 'yes' : 'no'
45
47
 
46
48
  # Add the 'all_classes' and 'all_nodes' default groups
47
49
  @node_groups << Onceover::Group.new('all_nodes',@nodes)
@@ -13,4 +13,5 @@ RSpec.configure do |c|
13
13
  c.module_path = '<%= modulepath %>'
14
14
  c.hiera_config = '<%= environmentpath %>/production/hiera.yaml'
15
15
  c.manifest = '<%= repo.temp_manifest %>'
16
+ ENV['STRICT_VARIABLES'] = '<%= self.strict_variables %>'
16
17
  end
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.9
4
+ version: 3.0.10
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-12-13 00:00:00.000000000 Z
11
+ date: 2016-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake