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 +4 -4
- data/controlrepo.gemspec +1 -1
- data/lib/onceover/cli/run.rb +5 -4
- data/lib/onceover/testconfig.rb +2 -0
- data/templates/spec_helper.rb.erb +1 -0
- 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: 7cc4b6a12f15647aaa3d9c8e6fd3b9c861755a33
|
4
|
+
data.tar.gz: e849504c04131575ac616c3bb8a12b589784160f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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"
|
data/lib/onceover/cli/run.rb
CHANGED
@@ -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,
|
22
|
-
optional :c,
|
23
|
-
optional :n,
|
24
|
-
optional :s,
|
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])
|
data/lib/onceover/testconfig.rb
CHANGED
@@ -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)
|
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.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-
|
11
|
+
date: 2016-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|