Project

General

Profile

« Previous | Next » 

Revision 45c9c9e9

Added by Michael Moll about 9 years ago

remove check if SOA record is in the same zone

View differences:

manifests/zone.pp
validate_bool($reverse)
validate_array($masters, $allow_transfer)
# Validate that the value for soa is within the zone
$soa_parts = split($soa, '[.]')
$soa_hostname = $soa_parts[0]
if $soa != "${soa_hostname}.${zone}" and ! $reverse {
fail('soa must be within the defined zone.')
}
$zonefilename = "${zonefilepath}/${filename}"
concat_fragment { "dns_zones+10_${zone}.dns":
spec/defines/dns_zone_spec.rb
end
end
context 'when soa is not a part of the zone' do
let(:params) {{ :soa => 'foo.example.tld', :zone => 'example.com' }}
it "should raise an error" do
expect { should compile }.to raise_error(/soa must be within the defined zone/)
end
end
end

Also available in: Unified diff