From 4bbc8beb77647ac467cb38c6c26c5924b4f531c0 Mon Sep 17 00:00:00 2001 From: kumari tanushree Date: Fri, 29 Dec 2023 00:17:34 +0530 Subject: [PATCH] Updated e2e test for describe command Signed-off-by: kumari tanushree --- test/e2e/describe_test.go | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/test/e2e/describe_test.go b/test/e2e/describe_test.go index d838f9db..00e70850 100644 --- a/test/e2e/describe_test.go +++ b/test/e2e/describe_test.go @@ -67,11 +67,13 @@ images: "--bundle", fmt.Sprintf("%s%s", env.RelocationRepo, bundleDigest), }, ) - + fmt.Printf("\n\nOutput: %s\n\n", stdout) assert.Contains(t, stdout, fmt.Sprintf( ` - Image: %s%s Type: Image Origin: %s%s + Layers: + - Digest: sha256:d5f1c5102362bf87b37de7fcc1457ab96a652d324fe71f8e9aa894890e7aecaf Annotations: some.annotation: some value some.other.annotation: some other value @@ -80,19 +82,27 @@ images: assert.Contains(t, stdout, fmt.Sprintf( ` - Image: %s@%s Type: Signature + Layers: + - Digest: sha256:6742bf651e88183025cdaf848000f5a173fbc448dc241d93fe85aabe1aac704e Annotations: tag: %s `, env.RelocationRepo, imgSigDigest, imgSigTag)) assert.Contains(t, stdout, fmt.Sprintf( ` - Image: %s@%s Type: Signature + Layers: + - Digest: sha256:bb8d94d79062faa211c9b8e031d76a2679296db7893152484b397047c0d0f023 Annotations: tag: %s `, env.RelocationRepo, bundleSigDigest, bundleSigTag)) assert.Contains(t, stdout, fmt.Sprintf( ` - Image: %s@%s - Type: Internal`, env.RelocationRepo, locationsImgDigest)) + Type: Internal + Layers: + - + Digest: sha256:5d43e9fc8f1ad1b339b5f37bb050b150640ad2c1594345178f1fb38656583a94 +`, env.RelocationRepo, locationsImgDigest)) }) })