Commit 27022240 authored by Patrick J Cherry's avatar Patrick J Cherry
Browse files

httpd: Added test for bug 7593.

This was already fixed, but this is a test to make sure it definitely
is.

Fixes #7953
parent c58c8fbf
......@@ -163,4 +163,34 @@ class TestSymbiosisHttpdConfigure < Test::Unit::TestCase
end
def test_bug_7593
domain = Symbiosis::Domain.new(nil, @prefix)
domain.create
name = domain.name
#
# Don't create a public/htdocs directory for this domain and
# disable mass hosting
#
FileUtils.touch("#{@root}/etc/symbiosis/apache.d/disabled.zz-mass-hosting")
#
# We don't expect any files to be created, since the domain has no document
# root, and mass hosting is disabled.
#
conf_files = [File.join(@apache2_dir, "sites-enabled", domain.name+".conf")]
conf_files += %w(zz-mass-hosting.ssl zz-mass-hosting).collect do |fn|
File.join(@apache2_dir,"sites-enabled",fn)
end
system("#{@script} --root-dir #{@root} --no-reload")
assert_equal($?,0,"#{@script} exited with a non-zero status")
conf_files.each do |fn|
assert(!File.exist?(fn), "File #{fn} present, when it shouldn't be.")
end
end
end
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment