beaker-pe 1.29.0 → 1.30.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjJjMDhkODRmN2EzN2ZjMmQyMjViMzYyNjBmNTkxNjM2N2FiZTc3Zg==
4
+ YjViMjE3NDc2NGE0MThhNjc0OGZkODg5ODI1MzU3M2U2ZmNiMzgwNg==
5
5
  data.tar.gz: !binary |-
6
- MDYzNjdhN2QzZTkzZWVjMWY4YTkzM2NjZDY1NmVkZWZkZTRkZDBhNw==
6
+ OTE3ZmY4YjgyNDQ2ZDRmNGI0ZTQ1OWRkZWVkNWE3Y2E5MTE5NjJjNA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MmE5YWJlMmNiZjg5YTMzNTY5MGIwYjUzZWE5MDhmNDE2M2Q3YTFiMGE3MzQ2
10
- ZGQwNWMwMGRiZDA3NWNhMzcwNWJjNGM0NTg1Y2JkM2Y2YTViYzUxMDA1ZDky
11
- NGNlYjU0MTZlZTgyY2UzYjBiNmRkMDRmMzcwNGFiY2ZiY2FlNWU=
9
+ NzhhZGQ3ZjUwZWRhMzkzNTg5ZDcxZDQwNmE5MWM3ZWFmZjU5MzhmOTA5Mzdl
10
+ NmRlNjQxMDY4ZmQwOTVkMzRiMTJhNjgxMTA2ODZlODE2NzMzNWVkODg5Zjgy
11
+ NzU5ZDM4NjNmMjBlNzNkN2QxMDE5YWZlN2ZhZWE2Y2Y1NWQ4NjA=
12
12
  data.tar.gz: !binary |-
13
- ZmEyMTcxZmM0NDVmZDc4YTIwZTRhN2RlM2ViZjNhMWNhMWVmMjJiNjVlZmU3
14
- ZDllNDk4M2UyZmFiZDY0OTdmMzRjM2FhYTdjNGI2YjNlYmZlMTk1YWJkNjlm
15
- ZjMwOGMyODgyNTkwMWVkOTA3YjNlMTdiNWRjNTk4MGEyZjcyMmQ=
13
+ MGVmOGQ0NDBiNTEyMjc2MjA4MGI0Zjk0MDM3YWY3MWVjZmFlMmZjM2M2NmFh
14
+ YTdiY2RiMTYzYTc4YmYyODJiZTkxYmFiZGE5MjQ3ZTY3MGEzNzdmZGRiMzI3
15
+ NWQ2NGVhZWQwYjE4ZTY2NjIyNzQ3ZDdiMjMwY2QxZGY2ZTZhMmM=
@@ -524,7 +524,7 @@ module Beaker
524
524
  # Do a generic install if this is masterless, not all the same PE version, an upgrade, or earlier than 2016.4
525
525
  return :generic if opts[:masterless]
526
526
  return :generic if hosts.map {|host| host['pe_ver']}.uniq.length > 1
527
- return :generic if opts[:type] == :upgrade
527
+ return :generic if (opts[:type] == :upgrade) && (hosts.none? {|host| host['roles'].include?('pe_postgres')})
528
528
  return :generic if version_is_less(opts[:pe_ver] || hosts.first['pe_ver'], '2016.4')
529
529
  #PE-20610 Do a generic install for old versions on windows that needs msi install because of PE-18351
530
530
  return :generic if hosts.any? {|host| host['platform'] =~ /windows/ && install_via_msi?(host)}
@@ -3,7 +3,7 @@ module Beaker
3
3
  module PE
4
4
 
5
5
  module Version
6
- STRING = '1.29.0'
6
+ STRING = '1.30.0'
7
7
  end
8
8
 
9
9
  end
@@ -1102,6 +1102,11 @@ describe ClassMixedWithDSLInstallUtils do
1102
1102
  expect(subject.determine_install_type(hosts, {:type => :upgrade})).to eq(:generic)
1103
1103
  end
1104
1104
 
1105
+ it 'identifies an upgrade with postgres as pe_managed_postgres' do
1106
+ hosts = [master, puppetdb, console, pe_postgres]
1107
+ expect(subject.determine_install_type(hosts, {:type => :upgrade})).to eq(:pe_managed_postgres)
1108
+ end
1109
+
1105
1110
  it 'identifies a legacy PE version as generic' do
1106
1111
  old_monolithic = make_host('monolithic', :pe_ver => '3.8', :roles => [ 'master', 'database', 'dashboard' ])
1107
1112
  old_agent = make_host('agent', :pe_ver => '3.8', :roles => ['frictionless'])
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.29.0
4
+ version: 1.30.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppetlabs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-21 00:00:00.000000000 Z
11
+ date: 2018-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec