Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (18 sloc) 0.517 kb
package main
import (
. "launchpad.net/gocheck"
"testing"
)
// Hook up gocheck into the gotest runner.
func Test(t *testing.T) { TestingT(t) }
type ConfigSuite struct {
zones Zones
}
var _ = Suite(&ConfigSuite{})
func (s *ConfigSuite) TestReadConfigs(c *C) {
s.zones = make(Zones)
configReadDir("dns", s.zones)
c.Check(s.zones["example.com"].Origin, Equals, "example.com")
c.Check(s.zones["example.com"].Options.MaxHosts, Equals, 2)
c.Check(s.zones["example.com"].Labels["weight"].MaxHosts, Equals, 1)
}
Jump to Line
Something went wrong with that request. Please try again.