Skip to content

Commit 24b2f82

Browse files
committed
Add test for Intel RDT support
Signed-off-by: Wolfgang Pross <[email protected]>
1 parent 40d3c3b commit 24b2f82

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/e2e/create_test.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,18 @@ var _ = Describe("Podman create", func() {
7575
Expect(session).Should(Exit(125))
7676
})
7777

78+
It("podman create adds rdt-class", func() {
79+
session := podmanTest.Podman([]string{"create", "--rdt-class", "COS1", "--name", "rdt_test", ALPINE, "ls"})
80+
session.WaitWithDefaultTimeout()
81+
Expect(session).Should(ExitCleanly())
82+
Expect(podmanTest.NumberOfContainers()).To(Equal(1))
83+
84+
check := podmanTest.Podman([]string{"inspect", "rdt_test"})
85+
check.WaitWithDefaultTimeout()
86+
data := check.InspectContainerToJSON()
87+
Expect(data[0].State.IntelRdtClosID).To(Equal("COS1"))
88+
})
89+
7890
It("podman create adds annotation", func() {
7991
session := podmanTest.Podman([]string{"create", "--annotation", "HELLO=WORLD", "--name", "annotate_test", ALPINE, "ls"})
8092
session.WaitWithDefaultTimeout()

0 commit comments

Comments
 (0)