simp-beaker-helpers 1.5.1 → 1.5.2

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: e8882ab90efc503edf3b79dd740f67113638742a
4
- data.tar.gz: 503cc5f3e423d32ac0e18bf5408f43e20a9dfa5d
3
+ metadata.gz: c5f010fc7c285530d86bc638c6d5bfbc417aa859
4
+ data.tar.gz: 3634d944e794eb9ddcba53540bb474a93d8385b2
5
5
  SHA512:
6
- metadata.gz: e64b7f85a079395c428a05a8724b98a6811b1d51787b951d778a5c5f6f1cb1722371bd13f06c9feaf7a382c5853c5ac65913edb345044d057bcaec860d6e25bd
7
- data.tar.gz: 857d0014ca8bf6b79036a7cf9cf80cb3bd82328f016198efeb10a33824dc220228cb1604eb01eb46fb6247e3d7cc793073a0617a9a19ba942af9cdc3d18916d0
6
+ metadata.gz: d7a9de47d6d22f0035a0e98153517a48f820861fb2dc7ef7633e930fde5d8e6974155be36cf0578dba2885be53d6061b299644ac9abbcff1aff63b51c3960f89
7
+ data.tar.gz: f4e2109ddae74fc105d9ad46871ee4363e6c4dc66f36e42f3fb9aae1424a0ac69a44ed4aa21854eb8ae661f55bfadb8c091fca01dfb7c6f7ae73351fafa04a8d
@@ -1,7 +1,7 @@
1
1
  module Simp; end
2
2
 
3
3
  module Simp::BeakerHelpers
4
- VERSION = '1.5.1'
4
+ VERSION = '1.5.2'
5
5
 
6
6
  # use the `puppet fact` face to look up facts on an SUT
7
7
  def pfact_on(sut, fact_name)
@@ -116,6 +116,17 @@ module Simp::Rake
116
116
 
117
117
  raise("Error: Suites Directory at '#{suite_basedir}'!") unless File.directory?(suite_basedir)
118
118
 
119
+ unless File.directory?(File.join(suite_basedir, suite))
120
+ STDERR.puts("Error: Could not find suite '#{suite}'")
121
+ STDERR.puts("Available Suites:")
122
+ STDERR.puts(' * ' + Dir.glob(
123
+ File.join(suite_basedir, '*')).sort.map{ |x|
124
+ File.basename(x)
125
+ }.join("\n * ")
126
+ )
127
+ exit(1)
128
+ end
129
+
119
130
  suite_config = {
120
131
  'fail_fast' => true
121
132
  }
@@ -127,6 +138,8 @@ module Simp::Rake
127
138
  suites = Hash.new
128
139
  if suite
129
140
  suites[suite] = Hash.new
141
+ # If a suite was set, make sure it runs.
142
+ suites[suite]['default_run'] = true
130
143
  else
131
144
  Dir.glob(File.join(suite_basedir,'*')) do |file|
132
145
  if File.directory?(file)
@@ -178,12 +191,17 @@ module Simp::Rake
178
191
  $stdout.puts("\n\n=== Suite '#{name}' Starting ===\n\n")
179
192
 
180
193
  if nodeset
181
- unless File.file?(File.join(suites[ste]['path'],"#{nodeset}.yml"))
194
+ nodeset_yml = File.join(suites[ste]['path'], 'nodesets', "#{nodeset}.yml")
195
+ unless File.file?(nodeset_yml)
182
196
  $stdout.puts("=== Suite #{name} Nodeset '#{nodeset}' Not Found, Skipping ===")
183
197
  next
184
198
  end
185
199
 
186
- ENV['BEAKER_set'] = nodeset
200
+ ENV['BEAKER_setfile'] = nodeset_yml
201
+ else
202
+ nodeset_yml = File.join(suites[ste]['path'], 'nodesets', 'default.yml')
203
+
204
+ ENV['BEAKER_setfile'] = nodeset_yml
187
205
  end
188
206
 
189
207
  Rake::Task[:beaker].clear
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simp-beaker-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Tessmer
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-06-24 00:00:00.000000000 Z
12
+ date: 2016-07-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: beaker