Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
fix: update method args
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya authored Feb 4, 2021
1 parent 9646b99 commit f745c9c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions e2e/_suites/fleet/services_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestDownloadAgentBinary(t *testing.T) {
arch := "foo_arch"
extension := "foo_ext"

_, _, err := downloadAgentBinary(artifact, version, OS, arch, extension)
_, _, err := downloadAgentBinary(artifact, version, OS, arch, extension, false)
assert.NotNil(t, err)
})

Expand All @@ -36,7 +36,7 @@ func TestDownloadAgentBinary(t *testing.T) {
extension := "rpm"
expectedFileName := "elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm"

newFileName, downloadedFilePath, err := downloadAgentBinary(artifact, version, OS, arch, extension)
newFileName, downloadedFilePath, err := downloadAgentBinary(artifact, version, OS, arch, extension, false)
assert.Nil(t, err)
assert.Equal(t, newFileName, expectedFileName)
assert.Equal(t, downloadedFilePath, path.Join(distributionsDir, expectedFileName))
Expand All @@ -50,7 +50,7 @@ func TestDownloadAgentBinary(t *testing.T) {
extension := "deb"
expectedFileName := "elastic-agent-8.0.0-SNAPSHOT-amd64.deb"

newFileName, downloadedFilePath, err := downloadAgentBinary(artifact, version, OS, arch, extension)
newFileName, downloadedFilePath, err := downloadAgentBinary(artifact, version, OS, arch, extension, false)
assert.Nil(t, err)
assert.Equal(t, newFileName, expectedFileName)
assert.Equal(t, downloadedFilePath, path.Join(distributionsDir, expectedFileName))
Expand All @@ -64,7 +64,7 @@ func TestDownloadAgentBinary(t *testing.T) {
extension := "tar.gz"
expectedFileName := "elastic-agent-8.0.0-SNAPSHOT-linux-amd64.tar.gz"

newFileName, downloadedFilePath, err := downloadAgentBinary(artifact, version, OS, arch, extension)
newFileName, downloadedFilePath, err := downloadAgentBinary(artifact, version, OS, arch, extension, false)
assert.Nil(t, err)
assert.Equal(t, newFileName, expectedFileName)
assert.Equal(t, downloadedFilePath, path.Join(distributionsDir, expectedFileName))
Expand Down

0 comments on commit f745c9c

Please sign in to comment.