[8.12] [EDR Workflows] Fix vagrant unzip (#175754) (#175755)

# Backport

This will backport the following commits from `main` to `8.12`:
- [[EDR Workflows] Fix vagrant unzip
(#175754)](https://github.com/elastic/kibana/pull/175754)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Tomasz
Ciecierski","email":"tomasz.ciecierski@elastic.co"},"sourceCommit":{"committedDate":"2024-01-27T17:07:55Z","message":"[EDR
Workflows] Fix vagrant unzip
(#175754)","sha":"f4b0bd7d7b5f0fece2b61b7b5af077b20067e562","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Defend
Workflows","v8.12.1","v8.13.0"],"title":"[EDR Workflows] Fix vagrant
unzip","number":175754,"url":"https://github.com/elastic/kibana/pull/175754","mergeCommit":{"message":"[EDR
Workflows] Fix vagrant unzip
(#175754)","sha":"f4b0bd7d7b5f0fece2b61b7b5af077b20067e562"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","branchLabelMappingKey":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/175754","number":175754,"mergeCommit":{"message":"[EDR
Workflows] Fix vagrant unzip
(#175754)","sha":"f4b0bd7d7b5f0fece2b61b7b5af077b20067e562"}}]}]
BACKPORT-->

Co-authored-by: Tomasz Ciecierski <tomasz.ciecierski@elastic.co>
This commit is contained in:
Kibana Machine 2024-01-29 09:34:19 -05:00 committed by GitHub
parent fb72093bdd
commit e4db1de675
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -113,7 +113,7 @@ describe.skip('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