beaker-pe 1.37.0 → 1.38.0

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: 87e34e4ec7fa04f50f10ba94ced6ba07747fe830
4
- data.tar.gz: 575b16a5a7f5e89286308d84fdb6401b06e786f6
3
+ metadata.gz: 27e92eecfdcc213e61799677bec5ed8bd276066e
4
+ data.tar.gz: e90e286369a943c793b2dff3b4311ff777b0a252
5
5
  SHA512:
6
- metadata.gz: 15a4439aa82bb097e1fe5b7842604947e23e247a21e7c3dd62d4af8789afd5020f68c7b552f3c28008eeedca280c252de1f3fc2dd4ef15c31de141de9d3aaf8a
7
- data.tar.gz: 80110427e1ca5bf345849d4339ab67ffe7a804878d52e3290110114ae179df43579b92f9d6bbc64dacadcfd1f40d9aea75f50b804636ddd396b8d2dc7e5cd278
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
@@ -3,7 +3,7 @@ module Beaker
3
3
  module PE
4
4
 
5
5
  module Version
6
- STRING = '1.37.0'
6
+ STRING = '1.38.0'
7
7
  end
8
8
 
9
9
  end
@@ -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(true)
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(false)
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.37.0
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-02-20 00:00:00.000000000 Z
11
+ date: 2018-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec