simp-beaker-helpers 1.18.2 → 1.18.3

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
  SHA256:
3
- metadata.gz: 03e7502836d3999beb48af49d409f757204fa6dc29e2037e035514e397e2dab0
4
- data.tar.gz: b96ed98c778d593741e1310a27860d68a91fb5b97a106c36974cb4fa4ebbfa2e
3
+ metadata.gz: 36231d0862e7ae76a3675efc9bc5339527b2704ead1dbbf41e2df3ce962439d4
4
+ data.tar.gz: 83d88bae5f3822c2e13754ee79fe1cc98a34b0f04c885861b61f76a1a32219ae
5
5
  SHA512:
6
- metadata.gz: afc42807301347fbac121680a6b63b00f2863eddd6ada9a0028e60dc82cba4b2082c627ecb468600c14a8891f350672789f000ecd2167d13d2aacee974bc3ae1
7
- data.tar.gz: 69ac18cd076b980408b42b9983e59a7d96a229278daf776f31488fd20ef4d82f797ae21540845a9d451b8b81f9f239826f1684bf81b0391e18f5371579111029
6
+ metadata.gz: 174f5a6496239de911c55a42d5ad08ee21fa54de6fbf244c1a6c167ccbd83780d9520ae51ccb8301f86ed45ddca7f97651126453af3c2d9a80caa288e6166457
7
+ data.tar.gz: f059ace7f23bbd687c5af6870f7d294230009984ef02b75a1e77fcfe710b1edd23c1ef4dc24f81efea2d7ac39c02217faea0542ea754d945767a881b2edaebf8
data/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ ### 1.18.3 / 2020-02-24
2
+ * Fix the Windows library loading location.
3
+ * No longer attempt to load windows libraries by default unless the system is
4
+ actually Windows
5
+
6
+ ### 1.18.2 / 2020-02-24
7
+
8
+ * The previous location for loading the Windows libraries would not work in a
9
+ `:before` block. This moves it into its own module space.
10
+ * Bump to the working version of beaker and beaker-puppet
11
+
1
12
  ### 1.18.1 / 2020-02-12
2
13
  * Fix gemspec dependencies
3
14
  * Fix the windows library loading location
@@ -11,7 +11,6 @@ module Simp::BeakerHelpers
11
11
  require 'simp/beaker_helpers/snapshot'
12
12
  require 'simp/beaker_helpers/ssg'
13
13
  require 'simp/beaker_helpers/version'
14
- require 'simp/beaker_helpers/windows'
15
14
 
16
15
  # Stealing this from the Ruby 2.5 Dir::Tmpname workaround from Rails
17
16
  def self.tmpname
@@ -19,26 +18,8 @@ module Simp::BeakerHelpers
19
18
  "simp-beaker-helpers-#{t}-#{$$}-#{rand(0x100000000).to_s(36)}.tmp"
20
19
  end
21
20
 
22
- def load_windows_requirements
23
- if is_windows
24
- begin
25
- require 'beaker-windows'
26
- rescue LoadError
27
- logger.error(%{You must include 'beaker-windows' in your Gemfile for windows support on #{host}})
28
- exit 1
29
- end
30
-
31
- include BeakerWindows::Path
32
- include BeakerWindows::Powershell
33
- include BeakerWindows::Registry
34
- include BeakerWindows::WindowsFeature
35
- end
36
-
37
- return is_windows
38
- end
39
-
40
21
  def is_windows?(sut)
41
- is_windows = fact_on(sut, 'osfamily').casecmp?('windows')
22
+ sut[:platform] =~ /windows/i
42
23
  end
43
24
 
44
25
  # We can't cache this because it may change during a run
@@ -299,7 +280,7 @@ module Simp::BeakerHelpers
299
280
  parallel = (ENV['BEAKER_SIMP_parallel'] == 'yes')
300
281
 
301
282
  block_on(suts, :run_in_parallel => parallel) do |sut|
302
- if sut[:platform] =~ /windows/
283
+ if is_windows?(sut)
303
284
  puts " -- SKIPPING #{sut} because it is windows"
304
285
  next
305
286
  end
@@ -625,7 +606,10 @@ module Simp::BeakerHelpers
625
606
  def fix_errata_on( suts = hosts )
626
607
  parallel = (ENV['BEAKER_SIMP_parallel'] == 'yes')
627
608
  block_on(suts, :run_in_parallel => parallel) do |sut|
628
- if sut[:platform] =~ /windows/
609
+ if is_windows?(sut)
610
+ # Load the Windows requirements
611
+ require 'simp/beaker_helpers/windows'
612
+
629
613
  # Install the necessary windows certificate for testing
630
614
  #
631
615
  # https://petersouter.xyz/testing-windows-with-beaker-without-cygwin/
@@ -1,5 +1,5 @@
1
1
  module Simp; end
2
2
 
3
3
  module Simp::BeakerHelpers
4
- VERSION = '1.18.2'
4
+ VERSION = '1.18.3'
5
5
  end
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.18.2
4
+ version: 1.18.3
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: 2020-02-23 00:00:00.000000000 Z
12
+ date: 2020-02-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: beaker