[EDR Workflows] Fix vagrant unzip (#175754)

This commit is contained in:
Tomasz Ciecierski 2024-01-27 18:07:55 +01:00 committed by GitHub
parent e92a35c904
commit f4b0bd7d7b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -112,7 +112,7 @@ describe('Response console', { tags: ['@ess', '@serverless'] }, () => {
path: `${homeFilePath}/upload.zip`,
password: 'elastic',
}).then((unzippedFileContent) => {
expect(unzippedFileContent).to.equal(fileContent);
expect(unzippedFileContent).to.contain(fileContent);
});
});

View file

@ -32,5 +32,7 @@ Vagrant.configure("2") do |config|
config.vm.provision "file", source: cachedAgentSource, destination: "~/#{cachedAgentFilename}"
config.vm.provision "shell", inline: "mkdir #{agentDestinationFolder}"
config.vm.provision "shell", inline: "tar -zxf #{cachedAgentFilename} --directory #{agentDestinationFolder} --strip-components=1 && rm -f #{cachedAgentFilename}"
config.vm.provision "shell", inline: "sudo apt-get update"
config.vm.provision "shell", inline: "sudo apt-get upgrade"
config.vm.provision "shell", inline: "sudo apt-get install unzip"
end