From 7b80cb1da3e978f77ab5de2198d37718b1587605 Mon Sep 17 00:00:00 2001 From: Tomasz Ciecierski Date: Sat, 27 Jan 2024 18:07:55 +0100 Subject: [PATCH] [EDR Workflows] Fix vagrant unzip (#175754) (cherry picked from commit f4b0bd7d7b5f0fece2b61b7b5af077b20067e562) --- .../e2e/response_actions/response_console/file_operations.cy.ts | 2 +- .../scripts/endpoint/common/vagrant/Vagrantfile | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/security_solution/public/management/cypress/e2e/response_actions/response_console/file_operations.cy.ts b/x-pack/plugins/security_solution/public/management/cypress/e2e/response_actions/response_console/file_operations.cy.ts index 1a374bb73a017..23073599d22b1 100644 --- a/x-pack/plugins/security_solution/public/management/cypress/e2e/response_actions/response_console/file_operations.cy.ts +++ b/x-pack/plugins/security_solution/public/management/cypress/e2e/response_actions/response_console/file_operations.cy.ts @@ -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); }); }); diff --git a/x-pack/plugins/security_solution/scripts/endpoint/common/vagrant/Vagrantfile b/x-pack/plugins/security_solution/scripts/endpoint/common/vagrant/Vagrantfile index b058d17ad0764..31819889f38e0 100644 --- a/x-pack/plugins/security_solution/scripts/endpoint/common/vagrant/Vagrantfile +++ b/x-pack/plugins/security_solution/scripts/endpoint/common/vagrant/Vagrantfile @@ -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