From 56db3293d83cd1f8061ec9ac2ca20ff66d28da89 Mon Sep 17 00:00:00 2001 From: blam Date: Mon, 10 Aug 2020 21:27:35 +0200 Subject: [PATCH] test(scaffolder/docker): added some tests to check the home cariable --- .../src/scaffolder/stages/templater/helpers.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/scaffolder-backend/src/scaffolder/stages/templater/helpers.test.ts b/plugins/scaffolder-backend/src/scaffolder/stages/templater/helpers.test.ts index d5dd1cc561..b7e969cd47 100644 --- a/plugins/scaffolder-backend/src/scaffolder/stages/templater/helpers.test.ts +++ b/plugins/scaffolder-backend/src/scaffolder/stages/templater/helpers.test.ts @@ -126,7 +126,7 @@ describe('helpers', () => { ); }); - it('should pass through the user and group id from the host machine', async () => { + it('should pass through the user and group id from the host machine and set the home dir', async () => { await runDockerContainer({ imageName, args, @@ -141,6 +141,7 @@ describe('helpers', () => { expect.any(Stream), expect.objectContaining({ User: `${process.getuid()}:${process.getgid()}`, + Env: ['HOME=/tmp'], }), ); });