comparison modules/apache/spec/defines/balancermember_spec.rb @ 36:37675581a273 puppet-3.6

Update Puppet module for Apache (pulls in concat module)
author IBBoard <dev@ibboard.co.uk>
date Sat, 14 Mar 2015 20:07:04 +0000
parents
children 675c1cc61eaf
comparison
equal deleted inserted replaced
35:1bb941522ebf 36:37675581a273
1 require 'spec_helper'
2
3 describe 'apache::balancermember', :type => :define do
4 let :pre_condition do
5 'include apache
6 apache::balancer {"balancer":}
7 apache::balancer {"balancer-external":}
8 apache::balancermember {"http://127.0.0.1:8080-external": url => "http://127.0.0.1:8080/", balancer_cluster => "balancer-external"}
9 '
10 end
11 let :title do
12 'http://127.0.0.1:8080/'
13 end
14 let :params do
15 {
16 :options => [],
17 :url => 'http://127.0.0.1:8080/',
18 :balancer_cluster => 'balancer-internal'
19 }
20 end
21 let :facts do
22 {
23 :osfamily => 'Debian',
24 :operatingsystem => 'Debian',
25 :operatingsystemrelease => '6',
26 :lsbdistcodename => 'squeeze',
27 :id => 'root',
28 :concat_basedir => '/dne',
29 :path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
30 :kernel => 'Linux',
31 :is_pe => false,
32 }
33 end
34 describe "allows multiple balancermembers with the same url" do
35 it { should contain_concat__fragment('BalancerMember http://127.0.0.1:8080/') }
36 end
37 end