mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-05 07:26:55 +00:00
feat: fix notary tests (#10579)
Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
This commit is contained in:
parent
8890fffafb
commit
d57edc8530
2 changed files with 3 additions and 4 deletions
|
@ -35,7 +35,7 @@ uOKpF5rWAruB5PCIrquamOejpXV9aQA/K2JQDuc0mcKz
|
|||
)
|
||||
|
||||
func TestExtractStatements(t *testing.T) {
|
||||
imageRef := "jimnotarytest.azurecr.io/jim/net-monitor:v1"
|
||||
imageRef := "ghcr.io/kyverno/test-verify-image:signed"
|
||||
ref, err := name.ParseReference(imageRef)
|
||||
assert.NilError(t, err)
|
||||
repoDesc, err := remote.Head(ref)
|
||||
|
|
|
@ -12,7 +12,7 @@ import (
|
|||
)
|
||||
|
||||
var (
|
||||
imageRef = "jimnotarytest.azurecr.io/jim/net-monitor:v1"
|
||||
imageRef = "ghcr.io/kyverno/test-verify-image:signed"
|
||||
ctx = context.Background()
|
||||
)
|
||||
|
||||
|
@ -29,7 +29,7 @@ func TestResolve(t *testing.T) {
|
|||
|
||||
desc, err := repositoryClient.Resolve(ctx, repoDesc.Digest.String())
|
||||
assert.NilError(t, err)
|
||||
assert.Equal(t, desc.Digest.String(), "sha256:ba7000206594c2d72c3ab550453004c0dc50961157e5ebd2fb8ea1890099d02d")
|
||||
assert.Equal(t, desc.Digest.String(), "sha256:b31bfb4d0213f254d361e0079deaaebefa4f82ba7aa76ef82e90b4935ad5b105")
|
||||
assert.Equal(t, desc.MediaType, "application/vnd.docker.distribution.manifest.v2+json")
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,6 @@ func TestFetchSignatureBlob(t *testing.T) {
|
|||
_, desc, err := repositoryClient.FetchSignatureBlob(ctx, v1ToOciSpecDescriptor(d))
|
||||
assert.NilError(t, err)
|
||||
assert.Equal(t, desc.MediaType, "application/jose+json")
|
||||
assert.Equal(t, desc.Digest.String(), "sha256:746134b09f89451497668c598857d87ca660bb3d0b888832235c460d8d2697f3")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue