beaker-pe 2.1.3 → 2.1.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31865709a8e1ab78d989ec9755b8408726a2d5fb
|
4
|
+
data.tar.gz: 50de0ccbbb8044ef6175acad3e03339077a730b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21ff873513cfdbd52e26e52dff0a78ba667cd324846e344ac9f5cbccd145cf0f6fcb5698bca9553e7296375689a998a58cc7d947ac18ac768306f68451d572f2
|
7
|
+
data.tar.gz: 7b42ba05485dff1fc4afa091509efd676e8c09e3e8284fdcdc64817efb1f259edf7d2d9a730722571167037f4be52cb228f79d74b251a34cb1eaeb216597cb49
|
@@ -6,6 +6,7 @@ require "beaker-answers"
|
|
6
6
|
require "timeout"
|
7
7
|
require "json"
|
8
8
|
require "deep_merge"
|
9
|
+
|
9
10
|
module Beaker
|
10
11
|
module DSL
|
11
12
|
module InstallUtils
|
@@ -1556,6 +1557,10 @@ module Beaker
|
|
1556
1557
|
end
|
1557
1558
|
end
|
1558
1559
|
|
1560
|
+
step "Stop agent service on infrastructure nodes" do
|
1561
|
+
stop_agent_on(pe_infrastructure, :run_in_parallel => true)
|
1562
|
+
end
|
1563
|
+
|
1559
1564
|
step "First puppet run on infrastructure + postgres node" do
|
1560
1565
|
[master, database, dashboard, pe_postgres].uniq.each do |host|
|
1561
1566
|
on host, 'puppet agent -t', :acceptable_exit_codes => [0,2]
|
@@ -99,7 +99,8 @@ module Beaker
|
|
99
99
|
)
|
100
100
|
|
101
101
|
scp_to host, list, '/etc/apt/sources.list.d'
|
102
|
-
|
102
|
+
# Ubuntu platform gets host['platform'].with_version_codename (see line 57)
|
103
|
+
if variant == 'ubuntu' && version == 'bionic'
|
103
104
|
apt_conf_content = 'Acquire::AllowInsecureRepositories "true";'
|
104
105
|
else
|
105
106
|
apt_conf_content = 'APT::Get::AllowUnauthenticated "true";'
|
data/lib/beaker-pe/version.rb
CHANGED
@@ -1387,6 +1387,9 @@ describe ClassMixedWithDSLInstallUtils do
|
|
1387
1387
|
allow(subject).to receive(:execute_installer_cmd).with(mono_master, {}).twice
|
1388
1388
|
allow(subject).to receive(:execute_installer_cmd).with(pe_postgres, {}).once
|
1389
1389
|
|
1390
|
+
allow(subject).to receive(:stop_agent_on).and_return(true)
|
1391
|
+
expect(subject).to receive(:stop_agent_on).with([mono_master, pe_postgres], :run_in_parallel => true).once
|
1392
|
+
|
1390
1393
|
allow(subject).to receive(:on).with(mono_master, "puppet agent -t", :acceptable_exit_codes=>[0, 2]).exactly(3).times
|
1391
1394
|
allow(subject).to receive(:on).with(pe_postgres, "puppet agent -t", :acceptable_exit_codes=> [0, 2]).once
|
1392
1395
|
|
@@ -1413,6 +1416,10 @@ describe ClassMixedWithDSLInstallUtils do
|
|
1413
1416
|
allow(subject).to receive(:is_expected_pe_postgres_failure?).and_return(true)
|
1414
1417
|
allow(subject).to receive(:execute_installer_cmd).with(pe_postgres, {}).once
|
1415
1418
|
expect(subject).to receive(:execute_installer_cmd).with(mono_master, {}).once.ordered
|
1419
|
+
|
1420
|
+
allow(subject).to receive(:stop_agent_on).and_return(true)
|
1421
|
+
expect(subject).to receive(:stop_agent_on).with([mono_master, pe_postgres], :run_in_parallel => true).once
|
1422
|
+
|
1416
1423
|
allow(subject).to receive(:on).with(mono_master, "puppet agent -t", :acceptable_exit_codes=>[0, 2]).exactly(3).times
|
1417
1424
|
allow(subject).to receive(:on).with(pe_postgres, "puppet agent -t", :acceptable_exit_codes=> [0, 2]).once
|
1418
1425
|
|
@@ -1454,6 +1461,10 @@ describe ClassMixedWithDSLInstallUtils do
|
|
1454
1461
|
allow(subject).to receive(:execute_installer_cmd).with(mono_master, {}).once
|
1455
1462
|
allow(subject).to receive(:execute_installer_cmd).with(pe_postgres, {}).once
|
1456
1463
|
|
1464
|
+
allow(subject).to receive(:stop_agent_on).and_return(true)
|
1465
|
+
expect(subject).to receive(:stop_agent_on).with([mono_master, pe_postgres], :run_in_parallel => true).once
|
1466
|
+
|
1467
|
+
|
1457
1468
|
allow(subject).to receive(:on).with(mono_master, "puppet agent -t", :acceptable_exit_codes=>[0, 2]).twice
|
1458
1469
|
allow(subject).to receive(:on).with(pe_postgres, "puppet agent -t", :acceptable_exit_codes=> [0, 2]).once
|
1459
1470
|
|
@@ -1477,6 +1488,9 @@ describe ClassMixedWithDSLInstallUtils do
|
|
1477
1488
|
allow(subject).to receive(:execute_installer_cmd).with(split_console, {}).once
|
1478
1489
|
allow(subject).to receive(:execute_installer_cmd).with(pe_postgres, {}).once
|
1479
1490
|
|
1491
|
+
allow(subject).to receive(:stop_agent_on).and_return(true)
|
1492
|
+
expect(subject).to receive(:stop_agent_on).with([split_master, split_database, split_console, pe_postgres], :run_in_parallel => true).once
|
1493
|
+
|
1480
1494
|
allow(subject).to receive(:on).with(split_master, "puppet agent -t", :acceptable_exit_codes=>[0, 2]).twice
|
1481
1495
|
allow(subject).to receive(:on).with(split_database, "puppet agent -t", :acceptable_exit_codes=>[0, 2]).once
|
1482
1496
|
allow(subject).to receive(:on).with(split_console, "puppet agent -t", :acceptable_exit_codes=>[0, 2]).once
|
@@ -1502,6 +1516,9 @@ describe ClassMixedWithDSLInstallUtils do
|
|
1502
1516
|
allow(subject).to receive(:execute_installer_cmd).with(split_console, {}).once
|
1503
1517
|
allow(subject).to receive(:execute_installer_cmd).with(pe_postgres, {}).once
|
1504
1518
|
|
1519
|
+
allow(subject).to receive(:stop_agent_on).and_return(true)
|
1520
|
+
expect(subject).to receive(:stop_agent_on).with([split_master, split_database, split_console, pe_postgres], :run_in_parallel => true).once
|
1521
|
+
|
1505
1522
|
allow(subject).to receive(:on).with(split_master, "puppet agent -t", :acceptable_exit_codes=>[0, 2]).twice
|
1506
1523
|
allow(subject).to receive(:on).with(split_database, "puppet agent -t", :acceptable_exit_codes=>[0, 2]).once
|
1507
1524
|
allow(subject).to receive(:on).with(split_console, "puppet agent -t", :acceptable_exit_codes=>[0, 2]).once
|
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: 2.1.
|
4
|
+
version: 2.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppetlabs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|