From d85ab82043eebb16c69c524d81c622fabc05a95f Mon Sep 17 00:00:00 2001 From: Tomasz Ciecierski Date: Sat, 27 Jan 2024 15:48:25 +0100 Subject: [PATCH 1/3] fix unzip --- .../scripts/endpoint/common/vagrant/Vagrantfile | 1 + 1 file changed, 1 insertion(+) 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..3958ce4687080 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,6 @@ 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 update" config.vm.provision "shell", inline: "sudo apt-get install unzip" end From 2dc59c7b6ba9c252a11b61c614ac589462f3498a Mon Sep 17 00:00:00 2001 From: Tomasz Ciecierski Date: Sat, 27 Jan 2024 15:51:14 +0100 Subject: [PATCH 2/3] fix apt-get --- .../scripts/endpoint/common/vagrant/Vagrantfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 3958ce4687080..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,6 +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 update" + 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 From 8712cb1bcc7ce863a9c1975463de542875ca2628 Mon Sep 17 00:00:00 2001 From: Tomasz Ciecierski Date: Sat, 27 Jan 2024 16:56:08 +0100 Subject: [PATCH 3/3] change equal to contain --- .../e2e/response_actions/response_console/file_operations.cy.ts | 2 +- 1 file changed, 1 insertion(+), 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 e76a0beb82dca..70b008f7eda7b 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 @@ -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); }); });