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 +4 -4
- data/CHANGELOG.md +11 -0
- data/lib/simp/beaker_helpers.rb +6 -22
- data/lib/simp/beaker_helpers/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36231d0862e7ae76a3675efc9bc5339527b2704ead1dbbf41e2df3ce962439d4
|
4
|
+
data.tar.gz: 83d88bae5f3822c2e13754ee79fe1cc98a34b0f04c885861b61f76a1a32219ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/simp/beaker_helpers.rb
CHANGED
@@ -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
|
-
|
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
|
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
|
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/
|
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.
|
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-
|
12
|
+
date: 2020-02-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: beaker
|