Beispiel #1
0
					Source:      "iDevice",
					Options:     []string{"healthy", "shiny"},
				}))
		})

		It("does not modify the original bundle", func() {
			Expect(returnedBundle).NotTo(Equal(initialBundle))
			Expect(initialBundle.Mounts()).To(HaveLen(0))
		})
	})

	Describe("WithResources", func() {
		var t = true

		BeforeEach(func() {
			returnedBundle = initialBundle.WithResources(&specs.LinuxResources{DisableOOMKiller: &t})
		})

		It("returns a bundle with the resources added to the runtime spec", func() {
			Expect(returnedBundle.Resources()).To(Equal(&specs.LinuxResources{DisableOOMKiller: &t}))
		})

		It("does not modify the original bundle", func() {
			Expect(returnedBundle).NotTo(Equal(initialBundle))
			Expect(initialBundle.Resources()).To(BeNil())
		})
	})

	Describe("WithCPUShares", func() {
		var shares uint64 = 10