Skip to content

Commit a27929a

Browse files
committed
test/e2e: fmt artifact list with virtual size
Signed-off-by: Celso Henrique Souza Silva <[email protected]>
1 parent 5ae0e0d commit a27929a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/e2e/artifact_test.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,17 @@ var _ = Describe("Podman artifact", func() {
6565
noHeaderOutput := noHeaderSession.OutputToStringArray()
6666
Expect(noHeaderOutput).To(HaveLen(2))
6767
Expect(noHeaderOutput).ToNot(ContainElement("REPOSITORY"))
68+
69+
// Check if .VirtualSize is reported correctly
70+
virtualSizeFormatSession := podmanTest.PodmanExitCleanly("artifact", "ls", "--format", "{{.VirtualSize}}")
71+
virtualSizes := virtualSizeFormatSession.OutputToStringArray()
72+
73+
// Should list 2 lines (without the header)
74+
Expect(virtualSizes).To(HaveLen(2))
75+
76+
// Verify if the virtual size values are present in the output
77+
Expect(virtualSizes).To(ContainElement("4192"))
78+
Expect(virtualSizes).To(ContainElement("10240"))
6879
})
6980

7081
It("podman artifact simple add", func() {

0 commit comments

Comments
 (0)