beaker-pe 1.35.0 → 1.36.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: 90ed458292d1bb6544717ab386c9a85410c79b1b
4
- data.tar.gz: 95447c5d837868bd09b2c97e71c280cae245ca09
3
+ metadata.gz: a17dc91d56e07d14fd5547212a846aa002361d91
4
+ data.tar.gz: a9b79e20ba95a43f3250a654389d9ff28f15ce3b
5
5
  SHA512:
6
- metadata.gz: 8fccbd15d0d9972742f4b38fdda770552a44e38cbff0f286b7559a595499ed883917fea55999d5676793608feced6e43418dba9519afcf173c6ce7b8ff487ecd
7
- data.tar.gz: 1c7303c454a4bf2905d8be138b5679fd1443a63f3fd581caed7da670916a6fda610a319cc78d5aa7574493d7f38f8e308f8da1eebb1981a9f1eac0a382450d54
6
+ metadata.gz: 53bb7ca46de519fd5b8c96649e58a04f44befc203eaa63d187f29e585d312543b7f9b729005f08e8331f9b996f639dafac842eaf42485c0386b656a6bde0be8d
7
+ data.tar.gz: 65316498104bb3e13ef92afbb44b33dc017fa2df9b0405e14f876fc3121809d9bf45d9457ebc0e40a9bbe8adb8eaa3fa9faa89941427f0bf4c81072956b3672f
@@ -148,6 +148,13 @@ module Beaker
148
148
  end
149
149
  end
150
150
 
151
+ # pe_repo also supports flags that will determine what happens during the frictionless install
152
+ # Current support in beaker-pe is for:
153
+ # --puppet-service-debug, when running puppet service enable, the debug flag is passed into puppt service
154
+ if host[:puppet_service_debug_flag] == true
155
+ frictionless_install_opts << '--puppet-service-debug'
156
+ end
157
+
151
158
  # If this is an agent node configured to connect to the loadbalancer
152
159
  # using 'lb_connect' role, then use loadbalancer in the download url
153
160
  # instead of master
@@ -3,7 +3,7 @@ module Beaker
3
3
  module PE
4
4
 
5
5
  module Version
6
- STRING = '1.35.0'
6
+ STRING = '1.36.0'
7
7
  end
8
8
 
9
9
  end
@@ -314,6 +314,18 @@ describe ClassMixedWithDSLInstallUtils do
314
314
 
315
315
  expect( subject.frictionless_agent_installer_cmd( lb_test_hosts[3], {}, '2016.4.0' ) ).to eq(expecting)
316
316
  end
317
+
318
+ it 'generates a unix PE frictionless install command with the puppet service debug flag' do
319
+ host[:puppet_service_debug_flag] = true
320
+ expecting = [
321
+ "FRICTIONLESS_TRACE='true'",
322
+ "export FRICTIONLESS_TRACE",
323
+ "cd /tmp && curl --tlsv1 -O -k https://testmaster:8140/packages/current/install.bash && bash install.bash --puppet-service-debug"
324
+ ].join("; ")
325
+
326
+ expect( subject.frictionless_agent_installer_cmd( host, {}, '2016.4.0' ) ).to eq(expecting)
327
+ end
328
+
317
329
  end
318
330
 
319
331
  describe 'install_ca_cert_on' do
@@ -1379,6 +1391,7 @@ describe ClassMixedWithDSLInstallUtils do
1379
1391
  end
1380
1392
 
1381
1393
  it 'can perform a simple installation' do
1394
+ allow( subject ).to receive( :verify_network_resources).with(hosts, nil)
1382
1395
  allow( subject ).to receive( :on ).and_return( Beaker::Result.new( {}, '' ) )
1383
1396
  allow( subject ).to receive( :fetch_pe ).and_return( true )
1384
1397
  allow( subject ).to receive( :create_remote_file ).and_return( true )
@@ -1451,6 +1464,7 @@ describe ClassMixedWithDSLInstallUtils do
1451
1464
  }, 1)
1452
1465
  opts[:masterless] = true
1453
1466
 
1467
+ allow( subject ).to receive( :verify_network_resources).with(hosts, nil)
1454
1468
  allow( subject ).to receive( :hosts ).and_return( hosts )
1455
1469
  allow( subject ).to receive( :on ).and_return( Beaker::Result.new( {}, '' ) )
1456
1470
  allow( subject ).to receive( :fetch_pe ).and_return( true )
@@ -1484,6 +1498,7 @@ describe ClassMixedWithDSLInstallUtils do
1484
1498
  hosts[2][:pe_promoted_builds_url] = nil
1485
1499
  hosts[3][:pe_promoted_builds_url] = 'test-url'
1486
1500
 
1501
+ allow( subject ).to receive( :verify_network_resources).with(hosts, nil)
1487
1502
  allow( subject ).to receive( :hosts ).and_return( hosts )
1488
1503
  allow( subject ).to receive( :options ).and_return(Beaker::Options::Presets.new.presets)
1489
1504
  allow( subject ).to receive( :on ).and_return( Beaker::Result.new( {}, '' ) )
@@ -1568,6 +1583,7 @@ describe ClassMixedWithDSLInstallUtils do
1568
1583
  hosts[2][:platform] = Beaker::Platform.new('el-6-x86_64')
1569
1584
  hosts[2][:pe_ver] = '3.8'
1570
1585
 
1586
+ allow( subject ).to receive( :verify_network_resources).with(hosts, nil)
1571
1587
  pa_version = 'rarified_air_1675'
1572
1588
  allow( subject ).to receive( :get_puppet_agent_version ).and_return( pa_version )
1573
1589
 
@@ -1638,6 +1654,7 @@ describe ClassMixedWithDSLInstallUtils do
1638
1654
  opts[:HOSTS][host.name] = host
1639
1655
  end
1640
1656
 
1657
+ allow( subject ).to receive( :verify_network_resources).with(hosts, nil)
1641
1658
  pa_version = 'rarified_air_75699'
1642
1659
  allow( subject ).to receive( :get_puppet_agent_version ).and_return( pa_version )
1643
1660
 
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.35.0
4
+ version: 1.36.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-07 00:00:00.000000000 Z
11
+ date: 2018-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec