Skip to content

Commit

Permalink
test: fix sha1Func for oci workload identity test (#1419)
Browse files Browse the repository at this point in the history
This line was removed in a previous change, which leads to a segfault
because the sha1Func is nil when accessed.
  • Loading branch information
sdowell authored Sep 4, 2024
1 parent 6d57ed8 commit b00552e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions e2e/testcases/workload_identity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@ func updateRootSyncWithOCISourceConfig(nt *nomostest.NT, rsID core.ID, sc source
if err = nt.KubeClient.Apply(rootSyncOCI); err != nil {
return meta, err
}
meta.sha1Func = imageDigestFuncByDigest(image.Digest)
return meta, nil
}

Expand All @@ -558,6 +559,7 @@ func updateRepoSyncWithOCISourceConfig(nt *nomostest.NT, rsID core.ID, sc source
if err = nt.KubeClient.Apply(repoSyncOCI); err != nil {
return meta, err
}
meta.sha1Func = imageDigestFuncByDigest(image.Digest)
return meta, nil
}

Expand Down

0 comments on commit b00552e

Please sign in to comment.