Skip to content

Commit

Permalink
fixed install commands (#133704)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliaElastic committed Jun 7, 2022
1 parent c99ad10 commit bec4c74
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ describe('getInstallCommandForPlatform', () => {
);

expect(res).toMatchInlineSnapshot(`
"curl -L -O https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent--linux-x86_64.zip
tar xzvf elastic-agent--linux-x86_64.zip
"curl -L -O https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent--linux-x86_64.tar.gz
tar xzvf elastic-agent--linux-x86_64.tar.gz
cd elastic-agent--linux-x86_64
sudo ./elastic-agent install \\\\
--fleet-server-es=http://elasticsearch:9200 \\\\
Expand Down Expand Up @@ -51,8 +51,8 @@ describe('getInstallCommandForPlatform', () => {
);

expect(res).toMatchInlineSnapshot(`
"wget https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent--windows-x86_64.tar.gz -OutFile elastic-agent--windows-x86_64.tar.gz
Expand-Archive .\\\\elastic-agent--windows-x86_64.tar.gz
"wget 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 \`
--fleet-server-es=http://elasticsearch:9200 \`
Expand Down Expand Up @@ -106,8 +106,8 @@ describe('getInstallCommandForPlatform', () => {
);

expect(res).toMatchInlineSnapshot(`
"curl -L -O https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent--linux-x86_64.zip
tar xzvf elastic-agent--linux-x86_64.zip
"curl -L -O https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent--linux-x86_64.tar.gz
tar xzvf elastic-agent--linux-x86_64.tar.gz
cd elastic-agent--linux-x86_64
sudo ./elastic-agent install \\\\
--fleet-server-es=http://elasticsearch:9200 \\\\
Expand All @@ -127,8 +127,8 @@ describe('getInstallCommandForPlatform', () => {
);

expect(res).toMatchInlineSnapshot(`
"curl -L -O https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent--linux-x86_64.zip
tar xzvf elastic-agent--linux-x86_64.zip
"curl -L -O https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent--linux-x86_64.tar.gz
tar xzvf elastic-agent--linux-x86_64.tar.gz
cd elastic-agent--linux-x86_64
sudo ./elastic-agent install \\\\
--fleet-server-es=http://elasticsearch:9200 \\\\
Expand Down Expand Up @@ -165,8 +165,8 @@ describe('getInstallCommandForPlatform', () => {
);

expect(res).toMatchInlineSnapshot(`
"wget https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent--windows-x86_64.tar.gz -OutFile elastic-agent--windows-x86_64.tar.gz
Expand-Archive .\\\\elastic-agent--windows-x86_64.tar.gz
"wget 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 \`
--fleet-server-es=http://elasticsearch:9200 \`
Expand Down Expand Up @@ -226,8 +226,8 @@ describe('getInstallCommandForPlatform', () => {
);

expect(res).toMatchInlineSnapshot(`
"curl -L -O https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent--linux-x86_64.zip
tar xzvf elastic-agent--linux-x86_64.zip
"curl -L -O https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent--linux-x86_64.tar.gz
tar xzvf elastic-agent--linux-x86_64.tar.gz
cd elastic-agent--linux-x86_64
sudo ./elastic-agent install--url=http://fleetserver:8220 \\\\
--fleet-server-es=http://elasticsearch:9200 \\\\
Expand Down Expand Up @@ -276,8 +276,8 @@ describe('getInstallCommandForPlatform', () => {
);

expect(res).toMatchInlineSnapshot(`
"wget https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent--windows-x86_64.tar.gz -OutFile elastic-agent--windows-x86_64.tar.gz
Expand-Archive .\\\\elastic-agent--windows-x86_64.tar.gz
"wget 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 \`
--fleet-server-es=http://elasticsearch:9200 \`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ function getArtifact(platform: PLATFORM_TYPE, kibanaVersion: string) {
{ fullUrl: string; filename: string; unpackedDir: string }
> = {
linux: {
fullUrl: `${ARTIFACT_BASE_URL}/elastic-agent-${kibanaVersion}-linux-x86_64.zip`,
filename: `elastic-agent-${kibanaVersion}-linux-x86_64.zip`,
fullUrl: `${ARTIFACT_BASE_URL}/elastic-agent-${kibanaVersion}-linux-x86_64.tar.gz`,
filename: `elastic-agent-${kibanaVersion}-linux-x86_64.tar.gz`,
unpackedDir: `elastic-agent-${kibanaVersion}-linux-x86_64`,
},
mac: {
Expand All @@ -29,8 +29,8 @@ function getArtifact(platform: PLATFORM_TYPE, kibanaVersion: string) {
unpackedDir: `elastic-agent-${kibanaVersion}-darwin-x86_64`,
},
windows: {
fullUrl: `${ARTIFACT_BASE_URL}/elastic-agent-${kibanaVersion}-windows-x86_64.tar.gz`,
filename: `elastic-agent-${kibanaVersion}-windows-x86_64.tar.gz`,
fullUrl: `${ARTIFACT_BASE_URL}/elastic-agent-${kibanaVersion}-windows-x86_64.zip`,
filename: `elastic-agent-${kibanaVersion}-windows-x86_64.zip`,
unpackedDir: `elastic-agent-${kibanaVersion}-windows-x86_64`,
},
deb: {
Expand Down

0 comments on commit bec4c74

Please sign in to comment.