"other-property": "property-value", })).To(BeFalse()) Expect(container.HasProperties(garden.Properties{ "property-name": "property-value", })).To(BeTrue()) }) It("returns an error when the property is undefined", func() { _, err := container.Property("some-other-property") Expect(err).To(Equal(linux_container.UndefinedPropertyError{"some-other-property"})) Expect(err).To(MatchError("property does not exist: some-other-property")) }) It("can set a new property", func() { err := container.SetProperty("some-other-property", "some-other-value") Expect(err).ToNot(HaveOccurred()) value, err := container.Property("some-other-property") Expect(err).ToNot(HaveOccurred()) Expect(value).To(Equal("some-other-value")) }) It("can override an existing property", func() { err := container.SetProperty("property-name", "some-other-new-value") Expect(err).ToNot(HaveOccurred()) value, err := container.Property("property-name") Expect(err).ToNot(HaveOccurred()) Expect(value).To(Equal("some-other-new-value")) })