beaker 1.14.0 → 1.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/beaker/dsl/install_utils.rb +6 -4
- data/lib/beaker/version.rb +1 -1
- data/spec/beaker/dsl/install_utils_spec.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OWJiMDQwNDIwYmU4MzZkYzYyYjg2M2JiMjg4OWVlOWZhYzYzNzk1Yw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTVlN2FlNzBkZmYzN2NiZjcwYTM0ZGYzYmE0ZWRmNTQ2ZDI3ZGEyNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MmIxNGE0MGQyZGVjZmQ2YTJiODkyMThmMGI1ZGNjZTYxMTgzMTJlYThkNDYw
|
10
|
+
MzNlMmI2Yzk0NTkzZGYzZWRiODgzODIxZGM2YmYyZTdkNjE0ZmM5MTFkMTg2
|
11
|
+
OWQ4Nzg3MWY5MWI2N2QzOGU3ZTA0YjA3NDI1ZTk2MjZlMGM1NTU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NWQzZDJkZTk2MDI1NWM3NDljMjA3Y2RiNWEzODQyNDNlNWNmZWVmMTIwYzU1
|
14
|
+
MjI5MGU0NmQyMGJhNDU4ZDdlYTg4ZGI2OWY3Yzk2YzdkOTNkM2M1ZTVkYjBm
|
15
|
+
N2ZjNDJjMWMwMjk1NDUxZGEzZThhMWVhYjA0NGI4ODM4YWU2MGI=
|
@@ -818,6 +818,8 @@ module Beaker
|
|
818
818
|
_, protocol, hostname = options[:dev_builds_url].partition /.*:\/\//
|
819
819
|
dev_builds_url = protocol + hostname
|
820
820
|
|
821
|
+
on host, "mkdir -p /root/#{package_name}"
|
822
|
+
|
821
823
|
case variant
|
822
824
|
when /^(fedora|el|centos)$/
|
823
825
|
variant = (($1 == 'centos') ? 'el' : $1)
|
@@ -861,10 +863,10 @@ module Beaker
|
|
861
863
|
|
862
864
|
config_dir = '/etc/yum.repos.d/'
|
863
865
|
scp_to host, repo, config_dir
|
864
|
-
scp_to host, repo_dir,
|
866
|
+
scp_to host, repo_dir, "/root/#{package_name}"
|
865
867
|
|
866
868
|
search = "baseurl\\s*=\\s*http:\\/\\/#{hostname}.*$"
|
867
|
-
replace = "baseurl=file:\\/\\/\\/root\\/#{arch}"
|
869
|
+
replace = "baseurl=file:\\/\\/\\/root\\/#{package_name}\\/#{arch}"
|
868
870
|
sed_command = "sed -i 's/#{search}/#{replace}/'"
|
869
871
|
find_and_sed = "find #{config_dir} -name \"*.repo\" -exec #{sed_command} {} \\;"
|
870
872
|
|
@@ -884,10 +886,10 @@ module Beaker
|
|
884
886
|
|
885
887
|
config_dir = '/etc/apt/sources.list.d'
|
886
888
|
scp_to host, list, config_dir
|
887
|
-
scp_to host, repo_dir,
|
889
|
+
scp_to host, repo_dir, "/root/#{package_name}"
|
888
890
|
|
889
891
|
search = "'deb\\s\\+http:\\/\\/#{hostname}.*$"
|
890
|
-
replace = "'deb file:\\/\\/\\/root\\/#{codename} #{codename} main'"
|
892
|
+
replace = "'deb file:\\/\\/\\/root\\/#{package_name}\\/#{codename} #{codename} main'"
|
891
893
|
sed_command = "sed -i 's/#{search}/#{replace}/'"
|
892
894
|
find_and_sed = "find #{config_dir} -name \"*.list\" -exec #{sed_command} {} \\;"
|
893
895
|
|
data/lib/beaker/version.rb
CHANGED
@@ -572,6 +572,7 @@ describe ClassMixedWithDSLInstallUtils do
|
|
572
572
|
end
|
573
573
|
|
574
574
|
it "scp's files to SUT then modifies them with find-and-sed 2-hit combo" do
|
575
|
+
expect(subject).to receive(:on).with( host, /^mkdir -p .*$/ ).ordered
|
575
576
|
expect(subject).to receive(:scp_to).with( host, repo_config, /.*/ ).ordered
|
576
577
|
expect(subject).to receive(:scp_to).with( host, repo_dir, /.*/ ).ordered
|
577
578
|
expect(subject).to receive(:on).with( host, /^find .* sed .*/ ).ordered
|
@@ -593,6 +594,7 @@ describe ClassMixedWithDSLInstallUtils do
|
|
593
594
|
let( :platform ) { Beaker::Platform.new('solaris-7-i386') }
|
594
595
|
|
595
596
|
it "raises an exception." do
|
597
|
+
expect(subject).to receive(:on).with( host, /^mkdir -p .*$/ ).ordered
|
596
598
|
allow(subject).to receive(:options) { opts }
|
597
599
|
expect{
|
598
600
|
subject.install_puppetlabs_dev_repo host, package_name, package_version
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beaker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.14.
|
4
|
+
version: 1.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppetlabs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|