})

				It("returns an error when the job does not exist", func() {
					manifest.Jobs[0].Networks[0].StaticIPs[0] = "%%%%"
					_, err := manifest.SetJobInstanceCount("etcd_z1", 3)
					Expect(err).To(MatchError(`'%%%%' is not a valid ip address`))
				})
			})
		})
	})

	Describe("RemoveJob", func() {
		It("returns a manifest with specified job removed", func() {
			manifest := etcd.Manifest{
				Jobs: []core.Job{
					{Name: "some-job-name-1"},
					{Name: "some-job-name-2"},
					{Name: "some-job-name-3"},
				},
			}

			manifest = manifest.RemoveJob("some-job-name-2")

			Expect(manifest.Jobs).To(Equal([]core.Job{
				{Name: "some-job-name-1"},
				{Name: "some-job-name-3"},
			}))
		})
	})
})