From ad1e45ae44fcb4b81aaf45678a55d84c5cdc6172 Mon Sep 17 00:00:00 2001 From: Terry Howe Date: Tue, 29 Oct 2024 12:51:46 -0600 Subject: [PATCH] chore: Add e2e test for platform push and pull Signed-off-by: Terry Howe --- test/e2e/suite/command/push.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/e2e/suite/command/push.go b/test/e2e/suite/command/push.go index 7dba0b3a2..c58ccc68e 100644 --- a/test/e2e/suite/command/push.go +++ b/test/e2e/suite/command/push.go @@ -638,6 +638,10 @@ var _ = Describe("OCI image layout users:", func() { Size: int64(foobar.PlatformConfigSize), Digest: foobar.PlatformConfigDigest, })) + ORAS("pull", "--platform", "darwin/arm64", Flags.Layout, ref).MatchStatus([]match.StateKey{ + foobar.FileBarStateKey, + }, true, 1).Exec() + }) It("should push files with platform with mediaType as artifactType for v1.0", func() {