mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2026-02-04 14:28:08 +00:00
Add permission bit when writting the wrapper
This commit is contained in:
parent
320df87442
commit
315ab497cf
2 changed files with 3 additions and 3 deletions
|
|
@ -602,7 +602,7 @@ describe('Setup Terraform', () => {
|
|||
|
||||
expect(ioMv).toHaveBeenCalledWith(`file${path.sep}terraform`, `file${path.sep}terraform-bin`);
|
||||
expect(fsReadFile).toHaveBeenCalledWith(wrapperPath, 'utf8');
|
||||
expect(fsWriteFile).toHaveBeenCalledWith(`file${path.sep}terraform`, expect.any(String));
|
||||
expect(fsWriteFile).toHaveBeenCalledWith(`file${path.sep}terraform`, expect.any(String), { mode: 0o755 });
|
||||
});
|
||||
|
||||
test('installs wrapper on windows', async () => {
|
||||
|
|
@ -660,6 +660,6 @@ describe('Setup Terraform', () => {
|
|||
|
||||
expect(ioMv).toHaveBeenCalledWith(`file${path.sep}terraform.exe`, `file${path.sep}terraform-bin.exe`);
|
||||
expect(fsReadFile).toHaveBeenCalledWith(wrapperPath, 'utf8');
|
||||
expect(fsWriteFile).toHaveBeenCalledWith(`file${path.sep}terraform`, expect.any(String));
|
||||
expect(fsWriteFile).toHaveBeenCalledWith(`file${path.sep}terraform`, expect.any(String), { mode: 0o755 });
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue