beaker-pe 1.40.1 → 1.40.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d2f3a830172fb8639723a327bbb42f4b2653c2c
4
- data.tar.gz: 94c9fce23f9dc3c23a25e0c8f9b868247d6024ad
3
+ metadata.gz: 9ce3b0cc778156127d97c43444bae44ec5a62e2b
4
+ data.tar.gz: ba1a70b26ac998dbc015ea94dab32643a52ca111
5
5
  SHA512:
6
- metadata.gz: 726297dc8a378882eecbb8e6432e087770e5cc5c4b52d3dbc911e57c72959e9df464c26c17ebad402501596c4c52d587f16d0da62dde56cf908e37c092f9ddb7
7
- data.tar.gz: 21ea61bb695784c515e407ebc74f7d4fa971e74a6b1f090a1122a8733ac7901b193c1622e91a94624d6dbce7c90127811dd7b831fcff9ce93539f3e46f03699c
6
+ metadata.gz: ac36a389316076d94eb6d0c91bd07d525b6d83e61dfadeb4a003fe73b94ed351dd9925677bd985b940b4ae491ff50662aebd2e3c24edd2c7e112a69ffc39994a
7
+ data.tar.gz: ccacfd0acb784cfb52746f5d0658aba26d3302e23eed5008cdbb212f0b2bfc3b14f44810e510b4a9adea79c1cdbdd9c8d007873b75040d7b60abb9e4de564fb5
@@ -1515,7 +1515,9 @@ module Beaker
1515
1515
  latest_installer_log_file = on(host, "ls -1t #{installer_log_dir} | head -n1").stdout.chomp
1516
1516
  # As of PE Irving (PE 2018.1.x), these are the only two expected errors
1517
1517
  allowed_errors = ["The operation could not be completed because RBACs database has not been initialized",
1518
- "Timeout waiting for the database pool to become ready"]
1518
+ "Timeout waiting for the database pool to become ready",
1519
+ "Systemd restart for pe-console-services failed",
1520
+ "Reloading pe-console-services: Reload timed out after 120 seconds"]
1519
1521
 
1520
1522
  allowed_errors.each do |error|
1521
1523
  if(on(host, "grep '#{error}' #{installer_log_dir}/#{latest_installer_log_file}", :acceptable_exit_codes => [0,1]).exit_code == 0)
@@ -3,7 +3,7 @@ module Beaker
3
3
  module PE
4
4
 
5
5
  module Version
6
- STRING = '1.40.1'
6
+ STRING = '1.40.2'
7
7
  end
8
8
 
9
9
  end
@@ -1235,6 +1235,8 @@ describe ClassMixedWithDSLInstallUtils do
1235
1235
  allow(subject).to receive(:on).with(mono_master, "ls -1t /var/log/puppetlabs/installer | head -n1").and_return(@installer_log_file_name)
1236
1236
  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(zero_exit_code_mock)
1237
1237
  allow(subject).to receive(:on).with(mono_master, "grep 'Timeout waiting for the database pool to become ready' /var/log/puppetlabs/installer/installer_log_name", :acceptable_exit_codes=>[0, 1]).and_return(one_exit_code_mock)
1238
+ allow(subject).to receive(:on).with(mono_master, "grep 'Systemd restart for pe-console-services failed' /var/log/puppetlabs/installer/installer_log_name", :acceptable_exit_codes=>[0, 1]).and_return(one_exit_code_mock)
1239
+ allow(subject).to receive(:on).with(mono_master, "grep 'Reloading pe-console-services: Reload timed out after 120 seconds' /var/log/puppetlabs/installer/installer_log_name", :acceptable_exit_codes=>[0, 1]).and_return(one_exit_code_mock)
1238
1240
  expect(subject.is_expected_pe_postgres_failure?(mono_master)). to eq(true)
1239
1241
  end
1240
1242
 
@@ -1248,6 +1250,38 @@ describe ClassMixedWithDSLInstallUtils do
1248
1250
  allow(subject).to receive(:on).with(mono_master, "ls -1t /var/log/puppetlabs/installer | head -n1").and_return(@installer_log_file_name)
1249
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(one_exit_code_mock)
1250
1252
  allow(subject).to receive(:on).with(mono_master, "grep 'Timeout waiting for the database pool to become ready' /var/log/puppetlabs/installer/installer_log_name", :acceptable_exit_codes=>[0, 1]).and_return(zero_exit_code_mock)
1253
+ allow(subject).to receive(:on).with(mono_master, "grep 'Systemd restart for pe-console-services failed' /var/log/puppetlabs/installer/installer_log_name", :acceptable_exit_codes=>[0, 1]).and_return(one_exit_code_mock)
1254
+ allow(subject).to receive(:on).with(mono_master, "grep 'Reloading pe-console-services: Reload timed out after 120 seconds' /var/log/puppetlabs/installer/installer_log_name", :acceptable_exit_codes=>[0, 1]).and_return(one_exit_code_mock)
1255
+ expect(subject.is_expected_pe_postgres_failure?(mono_master)). to eq(true)
1256
+ end
1257
+
1258
+ it 'will return true if it is the systemd restart of cosnole-services failure matcher' do
1259
+ @installer_log_file_name = Beaker::Result.new( {}, '' )
1260
+ @installer_log_file_name.stdout = "installer_log_name"
1261
+ zero_exit_code_mock = Object.new
1262
+ allow(zero_exit_code_mock).to receive(:exit_code).and_return(0)
1263
+ one_exit_code_mock = Object.new
1264
+ allow(one_exit_code_mock).to receive(:exit_code).and_return(1)
1265
+ allow(subject).to receive(:on).with(mono_master, "ls -1t /var/log/puppetlabs/installer | head -n1").and_return(@installer_log_file_name)
1266
+ 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(one_exit_code_mock)
1267
+ allow(subject).to receive(:on).with(mono_master, "grep 'Timeout waiting for the database pool to become ready' /var/log/puppetlabs/installer/installer_log_name", :acceptable_exit_codes=>[0, 1]).and_return(one_exit_code_mock)
1268
+ allow(subject).to receive(:on).with(mono_master, "grep 'Systemd restart for pe-console-services failed' /var/log/puppetlabs/installer/installer_log_name", :acceptable_exit_codes=>[0, 1]).and_return(zero_exit_code_mock)
1269
+ allow(subject).to receive(:on).with(mono_master, "grep 'Reloading pe-console-services: Reload timed out after 120 seconds' /var/log/puppetlabs/installer/installer_log_name", :acceptable_exit_codes=>[0, 1]).and_return(one_exit_code_mock)
1270
+ expect(subject.is_expected_pe_postgres_failure?(mono_master)). to eq(true)
1271
+ end
1272
+
1273
+ it 'will return true if it is the console-services reload timeout string matcher' do
1274
+ @installer_log_file_name = Beaker::Result.new( {}, '' )
1275
+ @installer_log_file_name.stdout = "installer_log_name"
1276
+ zero_exit_code_mock = Object.new
1277
+ allow(zero_exit_code_mock).to receive(:exit_code).and_return(0)
1278
+ one_exit_code_mock = Object.new
1279
+ allow(one_exit_code_mock).to receive(:exit_code).and_return(1)
1280
+ allow(subject).to receive(:on).with(mono_master, "ls -1t /var/log/puppetlabs/installer | head -n1").and_return(@installer_log_file_name)
1281
+ 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(one_exit_code_mock)
1282
+ allow(subject).to receive(:on).with(mono_master, "grep 'Timeout waiting for the database pool to become ready' /var/log/puppetlabs/installer/installer_log_name", :acceptable_exit_codes=>[0, 1]).and_return(one_exit_code_mock)
1283
+ allow(subject).to receive(:on).with(mono_master, "grep 'Systemd restart for pe-console-services failed' /var/log/puppetlabs/installer/installer_log_name", :acceptable_exit_codes=>[0, 1]).and_return(one_exit_code_mock)
1284
+ allow(subject).to receive(:on).with(mono_master, "grep 'Reloading pe-console-services: Reload timed out after 120 seconds' /var/log/puppetlabs/installer/installer_log_name", :acceptable_exit_codes=>[0, 1]).and_return(zero_exit_code_mock)
1251
1285
  expect(subject.is_expected_pe_postgres_failure?(mono_master)). to eq(true)
1252
1286
  end
1253
1287
 
@@ -1259,6 +1293,8 @@ describe ClassMixedWithDSLInstallUtils do
1259
1293
  allow(subject).to receive(:on).with(mono_master, "ls -1t /var/log/puppetlabs/installer | head -n1").and_return(@installer_log_file_name)
1260
1294
  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(one_exit_code_mock)
1261
1295
  allow(subject).to receive(:on).with(mono_master, "grep 'Timeout waiting for the database pool to become ready' /var/log/puppetlabs/installer/installer_log_name", :acceptable_exit_codes=>[0, 1]).and_return(one_exit_code_mock)
1296
+ allow(subject).to receive(:on).with(mono_master, "grep 'Systemd restart for pe-console-services failed' /var/log/puppetlabs/installer/installer_log_name", :acceptable_exit_codes=>[0, 1]).and_return(one_exit_code_mock)
1297
+ allow(subject).to receive(:on).with(mono_master, "grep 'Reloading pe-console-services: Reload timed out after 120 seconds' /var/log/puppetlabs/installer/installer_log_name", :acceptable_exit_codes=>[0, 1]).and_return(one_exit_code_mock)
1262
1298
  expect(subject.is_expected_pe_postgres_failure?(mono_master)). to eq(false)
1263
1299
  end
1264
1300
  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.40.1
4
+ version: 1.40.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppetlabs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-04 00:00:00.000000000 Z
11
+ date: 2018-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec