}, }, PersistentDisk: 1024, Properties: &destiny.JobProperties{ Consul: destiny.JobPropertiesConsul{ Agent: destiny.JobPropertiesConsulAgent{ Mode: "client", }, }, }, ResourcePool: manifest.Jobs[0].ResourcePool, Templates: manifest.Jobs[0].Templates, Update: manifest.Jobs[0].Update, } manifest.Jobs = append(manifest.Jobs, consulClient) }) By("deploying with the original key", func() { yaml, err := manifest.ToYAML() Expect(err).NotTo(HaveOccurred()) yaml, err = client.ResolveManifestVersions(yaml) Expect(err).NotTo(HaveOccurred()) err = client.Deploy(yaml) Expect(err).NotTo(HaveOccurred()) Eventually(func() ([]bosh.VM, error) { return client.DeploymentVMs(manifest.Name) }, "1m", "10s").Should(ConsistOf([]bosh.VM{