File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 12871287 ) . with_content ( %r{## Proxy rules} )
12881288 }
12891289 end
1290- context 'proxy_dest_match' do
1290+
1291+ context 'proxy_dest_match and no proxy_dest_reverse_match' do
12911292 let :params do
12921293 {
12931294 'docroot' => '/rspec/docroot' ,
12961297 end
12971298
12981299 it { is_expected . to contain_concat__fragment ( 'rspec.example.com-proxy' ) . with_content ( %r{## Proxy rules} ) }
1300+ it { is_expected . to contain_concat__fragment ( 'rspec.example.com-proxy' ) . with_content ( %r{ProxyPassMatch\s +/\s +//} ) }
1301+ it { is_expected . to contain_concat__fragment ( 'rspec.example.com-proxy' ) . with_content ( %r{ProxyPassReverse\s +/\s +/} ) }
1302+ end
1303+
1304+ context 'proxy_dest_match and proxy_dest_reverse_match' do
1305+ let :params do
1306+ {
1307+ 'docroot' => '/rspec/docroot' ,
1308+ 'proxy_dest_match' => '/' ,
1309+ 'proxy_dest_reverse_match' => 'http://localhost:8180' ,
1310+ }
1311+ end
1312+
1313+ it { is_expected . to contain_concat__fragment ( 'rspec.example.com-proxy' ) . with_content ( %r{## Proxy rules} ) }
1314+ it { is_expected . to contain_concat__fragment ( 'rspec.example.com-proxy' ) . with_content ( %r{ProxyPassMatch\s +/\s +//} ) }
1315+ it { is_expected . to contain_concat__fragment ( 'rspec.example.com-proxy' ) . with_content ( %r{ProxyPassReverse\s +/\s +http://localhost:8180/} ) }
12991316 end
1317+
13001318 context 'not everything can be set together...' do
13011319 let :params do
13021320 {
You can’t perform that action at this time.
0 commit comments