Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixes INFRA-918
  • Loading branch information
R. Tyler Croy committed Sep 17, 2016
1 parent 2107325 commit a402cdb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
5 changes: 5 additions & 0 deletions dist/profile/manifests/buildmaster.pp
Expand Up @@ -157,6 +157,11 @@
}

apache::vhost { "${ci_fqdn} unsecured":
serveraliases => [
# Give all our buildmaster profiles this server alias; it's easier than
# parameterizing it for compatibility's sake
'ci.jenkins-ci.org',
],
servername => $ci_fqdn,
port => 80,
docroot => $docroot,
Expand Down
10 changes: 9 additions & 1 deletion spec/server/jenkins_master/jenkins_master_spec.rb
@@ -1,7 +1,8 @@
require_relative './../spec_helper'

describe 'jenkins_master' do
it_behaves_like "a standard Linux machine"
it_behaves_like 'a standard Linux machine'
it_behaves_like 'an Apache webserver'

context 'the jenkins service' do
describe service('jenkins') do
Expand All @@ -28,6 +29,13 @@
it { should be_listening }
end

context 'HTTP redirects' do
describe command("curl -kvH 'Host: ci.jenkins-ci.org' http://127.0.0.1") do
its(:stderr) { should match 'Location: https://ci.jenkins.io/' }
its(:exit_status) { should eq 0 }
end
end

context 'Blocking bots' do
# Bots are being redirected, booyah
['YisouSpider',
Expand Down

0 comments on commit a402cdb

Please sign in to comment.