[Fleet]: updated wget command for Windows platform Fleet Server installation (#138638)

* Edited the wget command for the windows platform

* Updated the install command utils tests

Co-authored-by: Kyle Pollich <kyle.pollich@elastic.co>
This commit is contained in:
Najmieh Sadat 2022-08-12 18:22:24 +04:30 committed by GitHub
parent 61c6217a52
commit 05b2659501
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -52,7 +52,7 @@ describe('getInstallCommandForPlatform', () => {
expect(res).toMatchInlineSnapshot(`
"$ProgressPreference = 'SilentlyContinue'
wget https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent--windows-x86_64.zip -OutFile elastic-agent--windows-x86_64.zip
Invoke-WebRequest -Uri https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent--windows-x86_64.zip -OutFile elastic-agent--windows-x86_64.zip
Expand-Archive .\\\\elastic-agent--windows-x86_64.zip
cd elastic-agent--windows-x86_64
.\\\\elastic-agent.exe install \`
@ -169,7 +169,7 @@ describe('getInstallCommandForPlatform', () => {
expect(res).toMatchInlineSnapshot(`
"$ProgressPreference = 'SilentlyContinue'
wget https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent--windows-x86_64.zip -OutFile elastic-agent--windows-x86_64.zip
Invoke-WebRequest -Uri https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent--windows-x86_64.zip -OutFile elastic-agent--windows-x86_64.zip
Expand-Archive .\\\\elastic-agent--windows-x86_64.zip
cd elastic-agent--windows-x86_64
.\\\\elastic-agent.exe install \`
@ -283,7 +283,7 @@ describe('getInstallCommandForPlatform', () => {
expect(res).toMatchInlineSnapshot(`
"$ProgressPreference = 'SilentlyContinue'
wget https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent--windows-x86_64.zip -OutFile elastic-agent--windows-x86_64.zip
Invoke-WebRequest -Uri https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent--windows-x86_64.zip -OutFile elastic-agent--windows-x86_64.zip
Expand-Archive .\\\\elastic-agent--windows-x86_64.zip
cd elastic-agent--windows-x86_64
.\\\\elastic-agent.exe install --url=http://fleetserver:8220 \`

View file

@ -32,7 +32,7 @@ function getArtifact(platform: PLATFORM_TYPE, kibanaVersion: string) {
windows: {
downloadCommand: [
`$ProgressPreference = 'SilentlyContinue'`,
`wget ${ARTIFACT_BASE_URL}/elastic-agent-${kibanaVersion}-windows-x86_64.zip -OutFile elastic-agent-${kibanaVersion}-windows-x86_64.zip`,
`Invoke-WebRequest -Uri https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-${kibanaVersion}-windows-x86_64.zip -OutFile elastic-agent-${kibanaVersion}-windows-x86_64.zip`,
`Expand-Archive .\\elastic-agent-${kibanaVersion}-windows-x86_64.zip`,
`cd elastic-agent-${kibanaVersion}-windows-x86_64`,
].join(`\n`),