|
10 | 10 | 'with version => 1.7.0' => {
|
11 | 11 | 'version' => '1.7.0'
|
12 | 12 | },
|
13 |
| - 'when proxy is provided' => { |
14 |
| - 'version' => '1.7.0', |
15 |
| - 'proxy' => 'http://proxy.example.org:3128/' |
16 |
| - }, |
17 |
| - 'when proxy is not a http proxy' => { |
18 |
| - 'proxy' => 'this is not a URL' |
19 |
| - }, |
20 |
| - 'when proxy contains username and password' => { |
21 |
| - 'version' => '1.7.0', |
22 |
| - 'proxy' => 'http://user:[email protected]:3128/' |
23 |
| - }, |
24 |
| - 'when proxy IP is provided' => { |
25 |
| - 'version' => '1.7.0', |
26 |
| - 'proxy' => 'http://10.10.10.10:3128/' |
27 |
| - }, |
28 |
| - 'when base_url is provided' => { |
29 |
| - 'version' => '1.7.0', |
30 |
| - 'base_url' => 'http://example.org' |
31 |
| - }, |
32 |
| - 'when raw_url is provided' => { |
33 |
| - 'version' => '1.7.0', |
34 |
| - 'raw_url' => 'http://example.org' |
35 |
| - } |
36 | 13 | }
|
37 | 14 |
|
38 | 15 | describe 'docker::compose', type: :class do
|
|
57 | 34 | params = {
|
58 | 35 | 'ensure' => 'present',
|
59 | 36 | 'version' => defaults['compose_version'],
|
60 |
| - 'install_path' => defaults['compose_install_path'], |
61 |
| - 'symlink_name' => defaults['compose_symlink_name'], |
62 |
| - 'proxy' => :undef, |
63 |
| - 'base_url' => defaults['compose_base_url'], |
64 |
| - 'raw_url' => :undef, |
65 |
| - 'curl_ensure' => defaults['curl_ensure'] |
66 | 37 | }.merge(local_params)
|
67 | 38 |
|
68 | 39 | let(:facts) do
|
|
73 | 44 | params
|
74 | 45 | end
|
75 | 46 |
|
76 |
| - if title == 'when proxy is not a http proxy' |
77 |
| - it 'raises an error for invalid proxy URL' do |
78 |
| - expect(subject).to compile.and_raise_error( |
79 |
| - %r{parameter 'proxy' expects an undef value or a match for Pattern}, |
80 |
| - ) |
81 |
| - end |
82 |
| - else |
83 |
| - include_examples 'compose', params, facts |
84 |
| - end |
| 47 | + include_examples 'compose', params, facts |
85 | 48 | end
|
86 | 49 | end
|
87 | 50 | end
|
|
0 commit comments