Skip to content

Commit

Permalink
Updated e2e test for describe command
Browse files Browse the repository at this point in the history
Signed-off-by: kumari tanushree <ktanushree@vmware.com>
  • Loading branch information
kumari tanushree committed Dec 28, 2023
1 parent 2e926c8 commit 4bbc8be
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions test/e2e/describe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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))
})
})

Expand Down

0 comments on commit 4bbc8be

Please sign in to comment.