beaker-pe 1.37.0 → 1.38.0
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 +4 -4
- data/lib/beaker-pe/install/pe_utils.rb +1 -1
- data/lib/beaker-pe/version.rb +1 -1
- data/spec/beaker-pe/install/pe_utils_spec.rb +6 -2
- 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: 27e92eecfdcc213e61799677bec5ed8bd276066e
|
|
4
|
+
data.tar.gz: e90e286369a943c793b2dff3b4311ff777b0a252
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5f6106081204c645a007bb513f5e8ead7fe4d163ba532e5c6f0ae5f5d5c04899dae7f38079af907e791bbece8d52ebca6afc8fa84e94cf741f80800de9f464ff
|
|
7
|
+
data.tar.gz: 73f71045099372b06f175d014a12b589be56ea93ef2370067daf577bd651232f67c877117e86306db405380b5ff1a6d2385b2b15c080a4c1f1a67302f1b8d292
|
|
@@ -1427,7 +1427,7 @@ module Beaker
|
|
|
1427
1427
|
installer_log_dir = '/var/log/puppetlabs/installer'
|
|
1428
1428
|
latest_installer_log_file = on(master, "ls -1t #{installer_log_dir} | head -n1").stdout.chomp
|
|
1429
1429
|
#Check the lastest install log to confirm the expected failure is there
|
|
1430
|
-
unless on(master, "grep 'The operation could not be completed because RBACs database has not been initialized' #{installer_log_dir}/#{latest_installer_log_file}")
|
|
1430
|
+
unless on(master, "grep 'The operation could not be completed because RBACs database has not been initialized' #{installer_log_dir}/#{latest_installer_log_file}", :acceptable_exit_codes => [0,1]).exit_code == 0
|
|
1431
1431
|
raise "Install on master failed in an unexpected manner"
|
|
1432
1432
|
end
|
|
1433
1433
|
end
|
data/lib/beaker-pe/version.rb
CHANGED
|
@@ -1213,8 +1213,10 @@ describe ClassMixedWithDSLInstallUtils do
|
|
|
1213
1213
|
#Error handling
|
|
1214
1214
|
@installer_log_file_name = Beaker::Result.new( {}, '' )
|
|
1215
1215
|
@installer_log_file_name.stdout = "installer_log_name"
|
|
1216
|
+
exit_code_mock = Object.new
|
|
1217
|
+
allow(exit_code_mock).to receive(:exit_code).and_return( 0 )
|
|
1216
1218
|
allow(subject).to receive(:on).with(mono_master, "ls -1t /var/log/puppetlabs/installer | head -n1").and_return(@installer_log_file_name)
|
|
1217
|
-
allow(subject).to receive(:on).with(mono_master, "grep 'The operation could not be completed because RBACs database has not been initialized' /var/log/puppetlabs/installer/installer_log_name").and_return(
|
|
1219
|
+
allow(subject).to receive(:on).with(mono_master, "grep 'The operation could not be completed because RBACs database has not been initialized' /var/log/puppetlabs/installer/installer_log_name", :acceptable_exit_codes=>[0, 1]).and_return(exit_code_mock)
|
|
1218
1220
|
|
|
1219
1221
|
allow(subject).to receive(:execute_installer_cmd).with(pe_postgres, {}).once
|
|
1220
1222
|
expect(subject).to receive(:execute_installer_cmd).with(mono_master, {}).once.ordered
|
|
@@ -1243,8 +1245,10 @@ describe ClassMixedWithDSLInstallUtils do
|
|
|
1243
1245
|
#Error handling
|
|
1244
1246
|
@installer_log_file_name = Beaker::Result.new( {}, '' )
|
|
1245
1247
|
@installer_log_file_name.stdout = "installer_log_name"
|
|
1248
|
+
exit_code_mock = Object.new
|
|
1249
|
+
allow(exit_code_mock).to receive(:exit_code).and_return(1)
|
|
1246
1250
|
allow(subject).to receive(:on).with(mono_master, "ls -1t /var/log/puppetlabs/installer | head -n1").and_return(@installer_log_file_name)
|
|
1247
|
-
allow(subject).to receive(:on).with(mono_master, "grep 'The operation could not be completed because RBACs database has not been initialized' /var/log/puppetlabs/installer/installer_log_name").and_return(
|
|
1251
|
+
allow(subject).to receive(:on).with(mono_master, "grep 'The operation could not be completed because RBACs database has not been initialized' /var/log/puppetlabs/installer/installer_log_name", :acceptable_exit_codes=>[0, 1]).and_return(exit_code_mock)
|
|
1248
1252
|
|
|
1249
1253
|
expect{ subject.do_install_pe_with_pe_managed_external_postgres([mono_master, pe_postgres, agent], {}) }.to raise_error(RuntimeError, "Install on master failed in an unexpected manner")
|
|
1250
1254
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: beaker-pe
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.38.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Puppetlabs
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-03-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|