Skip to content

Commit 753261a

Browse files
committed
Update haproxy to 6bca1f0bc31bfeb397635c9867d51a847caddbcd
6bca1f0bc31bfeb397635c9867d51a847caddbcd Merge pull request redhat-openstack#187 from justinstoller/maint/master/set-puppet-version 6512813f38733e5ece696d41145a6ba2273fe59f (maint) allow setting PUPPET_VERSION in acceptance 8b25a7b950825c9e5430b7fc3b68ad257de27711 Merge pull request redhat-openstack#184 from puppetlabs/travisci_update b7c253984e6bc5169d4df2fbb83f3510174d5dbb Updated travisci file to remove allow_failures on Puppet 4 611cecbec7bea98a359d3afa82952b258d2ca5b6 Merge pull request redhat-openstack#186 from tphoney/puppet27_relax_unittest c1bf471eb1a0bf7f88a1efd47d8633ed1e185381 relax unit test for puppet 2.7 346c213d815ec2ed13bb839970c4db4025c5c5b1 Merge pull request redhat-openstack#185 from tphoney/puppet4_unittest cf2fc938cd40916b83bc595a296257c6016ebdac changes to fix puppet4 unit tests Change-Id: I0113da26685337eefb593cecd556ec88a4ee47ca
1 parent de33411 commit 753261a

9 files changed

Lines changed: 19 additions & 14 deletions

File tree

Puppetfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ mod 'gnocchi',
5555
:git => 'https://github.com/stackforge/puppet-gnocchi.git'
5656

5757
mod 'haproxy',
58-
:commit => '3007560fc47da48d576890b1823e0ccfac3d9207',
58+
:commit => '6bca1f0bc31bfeb397635c9867d51a847caddbcd',
5959
:git => 'https://github.com/puppetlabs/puppetlabs-haproxy.git'
6060

6161
mod 'heat',

haproxy/.fixtures.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ fixtures:
22
repositories:
33
concat:
44
repo: "git://github.com/puppetlabs/puppetlabs-concat.git"
5-
ref: '1.0.0'
5+
ref: '1.2.3'
66
stdlib:
77
repo: "git://github.com/puppetlabs/puppetlabs-stdlib.git"
88
ref: '2.4.0'

haproxy/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ spec/fixtures/
77
coverage/
88
.idea/
99
*.iml
10+
log/

haproxy/.travis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,5 @@ matrix:
2020
env: PUPPET_GEM_VERSION="~> 2.7.0" FACTER_GEM_VERSION="~> 1.6.0"
2121
- rvm: 1.8.7
2222
env: PUPPET_GEM_VERSION="~> 2.7.0" FACTER_GEM_VERSION="~> 1.7.0"
23-
allow_failures:
24-
- rvm: 2.1.6
25-
env: PUPPET_GEM_VERSION="~> 4.0" STRICT_VARIABLES="yes"
2623
notifications:
2724
email: false

haproxy/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,6 @@
6868
],
6969
"dependencies": [
7070
{"name":"puppetlabs/stdlib","version_requirement":">= 2.4.0 < 5.0.0"},
71-
{"name":"puppetlabs/concat","version_requirement":">= 1.1.0 < 2.0.0"}
71+
{"name":"puppetlabs/concat","version_requirement":">= 1.2.3 < 2.0.0"}
7272
]
7373
}

haproxy/spec/defines/peer_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
let(:title) { 'dero' }
55
let(:facts) do
66
{
7-
:ipaddress => '1.1.1.1',
8-
:hostname => 'dero',
7+
:ipaddress => '1.1.1.1',
8+
:hostname => 'dero',
9+
:concat_basedir => '/foo',
910
}
1011
end
1112

haproxy/spec/defines/peers_spec.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
require 'spec_helper'
22

33
describe 'haproxy::peers' do
4-
let(:facts) {{ :ipaddress => '1.1.1.1' }}
4+
let(:facts) {{
5+
:ipaddress => '1.1.1.1',
6+
:concat_basedir => '/foo',
7+
}}
58

69
context "when no options are passed" do
710
let(:title) { 'bar' }

haproxy/spec/spec_helper_acceptance.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
unless ENV['RS_PROVISION'] == 'no' or ENV['BEAKER_provision'] == 'no'
66
# This will install the latest available package on el and deb based
77
# systems fail on windows and osx, and install via gem on other *nixes
8-
foss_opts = { :default_action => 'gem_install' }
8+
foss_opts = {
9+
:default_action => 'gem_install',
10+
:version => (ENV['PUPPET_VERSION'] || '3.8.1'),
11+
}
912

1013
if default.is_pe?; then install_pe; else install_puppet( foss_opts ); end
1114

haproxy/spec/unit/facter/haproxy_version_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@
1111
HA-Proxy version 1.5.3 2014/07/25
1212
Copyright 2000-2014 Willy Tarreau <w@1wt.eu>
1313
EOS
14-
Facter::Util::Resolution.expects(:which).with("haproxy").returns(true)
15-
Facter::Util::Resolution.expects(:exec).with("haproxy -v 2>&1").returns(haproxy_version_output)
14+
Facter::Util::Resolution.expects(:which).at_least(1).with("haproxy").returns(true)
15+
Facter::Util::Resolution.expects(:exec).at_least(1).with("haproxy -v 2>&1").returns(haproxy_version_output)
1616
Facter.fact(:haproxy_version).value.should == "1.5.3"
1717
end
1818
end
1919

2020
context "haproxy not present" do
2121
it do
2222
Facter::Util::Resolution.stubs(:exec)
23-
Facter::Util::Resolution.expects(:which).with("haproxy").returns(false)
23+
Facter::Util::Resolution.expects(:which).at_least(1).with("haproxy").returns(false)
2424
Facter.fact(:haproxy_version).should be_nil
2525
end
2626
end
27-
end
27+
end

0 commit comments

Comments
 (0)