From c9330004c22cd512c18fa9663d4b6d3709892c3a Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Tue, 13 Jun 2023 10:52:03 +0200 Subject: [PATCH] test: build-arg with hash Signed-off-by: CrazyMax --- __tests__/context.test.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/__tests__/context.test.ts b/__tests__/context.test.ts index 66a1ddc7d..14cea2caa 100644 --- a/__tests__/context.test.ts +++ b/__tests__/context.test.ts @@ -599,6 +599,26 @@ nproc=3`], '.' ] ], + [ + 25, + '0.10.0', + new Map([ + ['context', '.'], + ['build-args', `FOO=bar#baz`], + ['load', 'true'], + ['no-cache', 'false'], + ['push', 'false'], + ['pull', 'false'], + ]), + [ + 'build', + '--build-arg', 'FOO=bar#baz', + '--iidfile', path.join(tmpDir, 'iidfile'), + '--load', + '--metadata-file', path.join(tmpDir, 'metadata-file'), + '.' + ] + ], ])( '[%d] given %p with %p as inputs, returns %p', async (num: number, buildxVersion: string, inputs: Map, expected: Array) => {