Skip to content

Commit eeeaaef

Browse files
committed
test(staging): use regex for user ID to pass in CI
1 parent 9387c9d commit eeeaaef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/aws-cdk-lib/core/test/staging.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1580,7 +1580,7 @@ describe('staging with docker cp', () => {
15801580
expect(staging.isArchive).toEqual(true);
15811581
const dockerCalls: string[] = readDockerStubInputConcat(STUB_INPUT_CP_CONCAT_FILE).split(/\r?\n/);
15821582
expect(dockerCalls).toEqual(expect.arrayContaining([
1583-
expect.stringMatching('run --name copyContainer.* -v /asset-input -v /asset-output public.ecr.aws/docker/library/alpine sh -c mkdir -p /asset-input && chown -R 1000:1000 /asset-input && mkdir -p /asset-output && chown -R 1000:1000 /asset-output'),
1583+
expect.stringMatching('run --name copyContainer.* -v /asset-input -v /asset-output public.ecr.aws/docker/library/alpine sh -c mkdir -p /asset-input && chown -R .* /asset-input && mkdir -p /asset-output && chown -R .* /asset-output'),
15841584
expect.stringMatching('cp .*fs/fixtures/test1/\. copyContainer.*:/asset-input'),
15851585
expect.stringMatching('run --rm -u .* --volumes-from copyContainer.* -w /asset-input alpine DOCKER_STUB_VOLUME_SINGLE_ARCHIVE'),
15861586
expect.stringMatching('cp copyContainer.*:/asset-output/\. .*'),

0 commit comments

Comments
 (0)