Skip to content

Commit 4351327

Browse files
authored
Cover private digest image validation internals (#7707)
* Initial plan * test: cover private image validation internals --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent a4bb50b commit 4351327

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/image-resolver.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ describe('custom runtime image manifest', () => {
3333
expect(imageResolverExports).not.toHaveProperty('DEFAULT_DOH_PROXY_IMAGE');
3434
});
3535

36+
it('keeps digest-pinned image validation internals private', () => {
37+
expect(imageResolverExports).not.toHaveProperty('DIGEST_PINNED_IMAGE_PATTERN');
38+
expect(imageResolverExports).not.toHaveProperty('isDigestPinnedImageReference');
39+
});
40+
3641
it('resolves only the digest-pinned configured image', () => {
3742
const result = resolveRuntimeImage(
3843
config({ squid: image('squid') }),

0 commit comments

Comments
 (0)