From 24b2f829b9e1115b39899a33cf9ffc303a515aa1 Mon Sep 17 00:00:00 2001 From: Wolfgang Pross Date: Tue, 26 Sep 2023 10:45:17 +0000 Subject: [PATCH] Add test for Intel RDT support Signed-off-by: Wolfgang Pross --- test/e2e/create_test.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/e2e/create_test.go b/test/e2e/create_test.go index cfd9d6e7ef..10d0de2373 100644 --- a/test/e2e/create_test.go +++ b/test/e2e/create_test.go @@ -75,6 +75,18 @@ var _ = Describe("Podman create", func() { Expect(session).Should(Exit(125)) }) + It("podman create adds rdt-class", func() { + session := podmanTest.Podman([]string{"create", "--rdt-class", "COS1", "--name", "rdt_test", ALPINE, "ls"}) + session.WaitWithDefaultTimeout() + Expect(session).Should(ExitCleanly()) + Expect(podmanTest.NumberOfContainers()).To(Equal(1)) + + check := podmanTest.Podman([]string{"inspect", "rdt_test"}) + check.WaitWithDefaultTimeout() + data := check.InspectContainerToJSON() + Expect(data[0].State.IntelRdtClosID).To(Equal("COS1")) + }) + It("podman create adds annotation", func() { session := podmanTest.Podman([]string{"create", "--annotation", "HELLO=WORLD", "--name", "annotate_test", ALPINE, "ls"}) session.WaitWithDefaultTimeout()