func writeConfigFile(daemonConfig config.Daemon) string {
	configFile, err := ioutil.TempFile("", "test-config")
	Expect(err).NotTo(HaveOccurred())

	daemonConfig.Marshal(configFile)
	Expect(configFile.Close()).To(Succeed())

	return configFile.Name()
}
	  "username": "******",
	  "password": "******",
	  "name": "ducati",
	  "ssl_mode": "disable"
	},
	"host_address": "10.244.16.3",
	"index": 9,
	"dns_server": "1.2.3.4",
	"overlay_dns_address": "192.168.255.254",
	"suffix": "potato",
	"debug_address": "127.0.0.1:19000"
}
`

var _ = Describe("Daemon config", func() {
	var fixtureDaemon config.Daemon
	BeforeEach(func() {
		fixtureDaemon = config.Daemon{
			ListenHost:     "0.0.0.0",
			ListenPort:     4001,
			LocalSubnet:    "192.168.${index}.0/16",
			OverlayNetwork: "192.168.0.0/16",
			SandboxDir:     "/var/vcap/data/ducati/sandbox",
			Database: db.Config{
				Host:     "10.244.16.9",
				Port:     5432,
				Username: "******",
				Password: "******",
				Name:     "ducati",
				SSLMode:  "disable",
			},