File tree 1 file changed +10
-1
lines changed
components/datadog/agentparams/msi
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,9 @@ package msi
2
2
3
3
import (
4
4
"fmt"
5
- "github.com/DataDog/test-infra-definitions/components/datadog/fakeintake"
6
5
"reflect"
6
+
7
+ "github.com/DataDog/test-infra-definitions/components/datadog/fakeintake"
7
8
)
8
9
9
10
// InstallAgentParams are the parameters used for installing the Agent using msiexec.
@@ -12,6 +13,7 @@ type InstallAgentParams struct {
12
13
AgentUserPassword string `installer_arg:"DDAGENTUSER_PASSWORD"`
13
14
DdURL string `installer_arg:"DD_URL"`
14
15
Site string `installer_arg:"SITE"`
16
+ InstallPath string `installer_arg:"APPLICATIONDATADIRECTORY"`
15
17
InstallLogFile string `installer_arg:"/log"`
16
18
}
17
19
@@ -94,3 +96,10 @@ func WithInstallLogFile(logFileName string) InstallAgentOption {
94
96
func WithFakeIntake (fakeIntake * fakeintake.FakeintakeOutput ) InstallAgentOption {
95
97
return WithDdURL (fakeIntake .URL )
96
98
}
99
+
100
+ // WithFakeIntake configures the Agent to use a fake intake URL.
101
+ func WithCustomInstallPath (installPath string ) InstallAgentOption {
102
+ return func (i * InstallAgentParams ) {
103
+ i .InstallPath = installPath
104
+ }
105
+ }
You can’t perform that action at this time.
0 commit comments