@@ -89,13 +89,13 @@ func testAzureInvokeVM(t *testing.T, tmpConfigFile string, workingDirectory stri
8989 stackName = sanitizeStackName (stackName )
9090
9191 t .Log ("creating vm" )
92- createCmd := exec .Command ("invoke " , "az.create-vm" , "--no-interactive" , "--stack-name" , stackName , "--config-path" , tmpConfigFile , "--no-add-known-host" )
92+ createCmd := exec .Command ("dda" , "inv " , "az.create-vm" , "--no-interactive" , "--stack-name" , stackName , "--config-path" , tmpConfigFile , "--no-add-known-host" )
9393 createCmd .Dir = workingDirectory
9494 createOutput , err := createCmd .Output ()
9595 assert .NoError (t , err , "Error found creating vm: %s" , string (createOutput ))
9696
9797 t .Log ("destroying vm" )
98- destroyCmd := exec .Command ("invoke " , "az.destroy-vm" , "--no-clean-known-hosts" , "--stack-name" , stackName , "--config-path" , tmpConfigFile )
98+ destroyCmd := exec .Command ("dda" , "inv " , "az.destroy-vm" , "--no-clean-known-hosts" , "--stack-name" , stackName , "--config-path" , tmpConfigFile )
9999 destroyCmd .Dir = workingDirectory
100100 destroyOutput , err := destroyCmd .Output ()
101101 require .NoError (t , err , "Error found destroying stack: %s" , string (destroyOutput ))
@@ -108,13 +108,13 @@ func testAwsInvokeVM(t *testing.T, tmpConfigFile string, workingDirectory string
108108 stackName = sanitizeStackName (stackName )
109109
110110 t .Log ("creating vm" )
111- createCmd := exec .Command ("invoke " , "aws.create-vm" , "--no-interactive" , "--stack-name" , stackName , "--config-path" , tmpConfigFile , "--use-fakeintake" , "--no-add-known-host" )
111+ createCmd := exec .Command ("dda" , "inv " , "aws.create-vm" , "--no-interactive" , "--stack-name" , stackName , "--config-path" , tmpConfigFile , "--use-fakeintake" , "--no-add-known-host" )
112112 createCmd .Dir = workingDirectory
113113 createOutput , err := createCmd .Output ()
114114 assert .NoError (t , err , "Error found creating vm: %s" , string (createOutput ))
115115
116116 t .Log ("destroying vm" )
117- destroyCmd := exec .Command ("invoke " , "aws.destroy-vm" , "--no-clean-known-hosts" , "--stack-name" , stackName , "--config-path" , tmpConfigFile )
117+ destroyCmd := exec .Command ("dda" , "inv " , "aws.destroy-vm" , "--no-clean-known-hosts" , "--stack-name" , stackName , "--config-path" , tmpConfigFile )
118118 destroyCmd .Dir = workingDirectory
119119 destroyOutput , err := destroyCmd .Output ()
120120 require .NoError (t , err , "Error found destroying stack: %s" , string (destroyOutput ))
@@ -127,13 +127,13 @@ func testGcpInvokeVM(t *testing.T, tmpConfigFile string, workingDirectory string
127127 stackName = sanitizeStackName (stackName )
128128
129129 t .Log ("creating vm" )
130- createCmd := exec .Command ("invoke " , "gcp.create-vm" , "--no-interactive" , "--stack-name" , stackName , "--config-path" , tmpConfigFile , "--use-fakeintake" , "--no-add-known-host" )
130+ createCmd := exec .Command ("dda" , "inv " , "gcp.create-vm" , "--no-interactive" , "--stack-name" , stackName , "--config-path" , tmpConfigFile , "--use-fakeintake" , "--no-add-known-host" )
131131 createCmd .Dir = workingDirectory
132132 createOutput , err := createCmd .Output ()
133133 assert .NoError (t , err , "Error found creating vm: %s" , string (createOutput ))
134134
135135 t .Log ("destroying vm" )
136- destroyCmd := exec .Command ("invoke " , "gcp.destroy-vm" , "--no-clean-known-hosts" , "--stack-name" , stackName , "--config-path" , tmpConfigFile )
136+ destroyCmd := exec .Command ("dda" , "inv " , "gcp.destroy-vm" , "--no-clean-known-hosts" , "--stack-name" , stackName , "--config-path" , tmpConfigFile )
137137 destroyCmd .Dir = workingDirectory
138138 destroyOutput , err := destroyCmd .Output ()
139139 require .NoError (t , err , "Error found destroying stack: %s" , string (destroyOutput ))
@@ -146,7 +146,7 @@ func testInvokeDockerVM(t *testing.T, tmpConfigFile string, workingDirectory str
146146 t .Log ("creating vm with docker" )
147147 var stdOut , stdErr bytes.Buffer
148148
149- createCmd := exec .Command ("invoke " , "aws.create-docker" , "--no-interactive" , "--stack-name" , stackName , "--config-path" , tmpConfigFile , "--use-fakeintake" , "--use-loadBalancer" )
149+ createCmd := exec .Command ("dda" , "inv " , "aws.create-docker" , "--no-interactive" , "--stack-name" , stackName , "--config-path" , tmpConfigFile , "--use-fakeintake" , "--use-loadBalancer" )
150150 createCmd .Dir = workingDirectory
151151 createCmd .Stdout = & stdOut
152152 createCmd .Stderr = & stdErr
@@ -157,7 +157,7 @@ func testInvokeDockerVM(t *testing.T, tmpConfigFile string, workingDirectory str
157157 stdErr .Reset ()
158158
159159 t .Log ("destroying vm with docker" )
160- destroyCmd := exec .Command ("invoke " , "aws.destroy-docker" , "--stack-name" , stackName , "--config-path" , tmpConfigFile )
160+ destroyCmd := exec .Command ("dda" , "inv " , "aws.destroy-docker" , "--stack-name" , stackName , "--config-path" , tmpConfigFile )
161161 destroyCmd .Dir = workingDirectory
162162 destroyCmd .Stdout = & stdOut
163163 destroyCmd .Stderr = & stdErr
@@ -174,13 +174,13 @@ func testInvokeKind(t *testing.T, tmpConfigFile string, workingDirectory string)
174174 stackName := strings .Join (stackParts , "-" )
175175 stackName = sanitizeStackName (stackName )
176176 t .Log ("creating kind cluster" )
177- createCmd := exec .Command ("invoke " , "aws.create-kind" , "--no-interactive" , "--stack-name" , stackName , "--config-path" , tmpConfigFile , "--use-fakeintake" , "--use-loadBalancer" , "--install-argorollout" )
177+ createCmd := exec .Command ("dda" , "inv " , "aws.create-kind" , "--no-interactive" , "--stack-name" , stackName , "--config-path" , tmpConfigFile , "--use-fakeintake" , "--use-loadBalancer" , "--install-argorollout" )
178178 createCmd .Dir = workingDirectory
179179 createOutput , err := createCmd .Output ()
180180 assert .NoError (t , err , "Error found creating kind cluster: %s" , string (createOutput ))
181181
182182 t .Log ("destroying kind cluster" )
183- destroyCmd := exec .Command ("invoke " , "aws.destroy-kind" , "--stack-name" , stackName , "--config-path" , tmpConfigFile )
183+ destroyCmd := exec .Command ("dda" , "inv " , "aws.destroy-kind" , "--stack-name" , stackName , "--config-path" , tmpConfigFile )
184184 destroyCmd .Dir = workingDirectory
185185 destroyOutput , err := destroyCmd .Output ()
186186 require .NoError (t , err , "Error found destroying kind cluster: %s" , string (destroyOutput ))
@@ -194,13 +194,13 @@ func testInvokeKindOperator(t *testing.T, tmpConfigFile string, workingDirectory
194194 }
195195 stackName = sanitizeStackName (stackName )
196196 t .Log ("creating kind cluster with operator" )
197- createCmd := exec .Command ("invoke " , "aws.create-kind" , "--install-agent-with-operator" , "true" , "--no-interactive" , "--stack-name" , stackName , "--config-path" , tmpConfigFile , "--use-fakeintake" , "--use-loadBalancer" )
197+ createCmd := exec .Command ("dda" , "inv " , "aws.create-kind" , "--install-agent-with-operator" , "true" , "--no-interactive" , "--stack-name" , stackName , "--config-path" , tmpConfigFile , "--use-fakeintake" , "--use-loadBalancer" )
198198 createCmd .Dir = workingDirectory
199199 createOutput , err := createCmd .Output ()
200200 assert .NoError (t , err , "Error found creating kind cluster: %s; %s" , string (createOutput ), err )
201201
202202 t .Log ("destroying kind cluster with operator" )
203- destroyCmd := exec .Command ("invoke " , "aws.destroy-kind" , "--stack-name" , stackName , "--config-path" , tmpConfigFile )
203+ destroyCmd := exec .Command ("dda" , "inv " , "aws.destroy-kind" , "--stack-name" , stackName , "--config-path" , tmpConfigFile )
204204 destroyCmd .Dir = workingDirectory
205205 destroyOutput , err := destroyCmd .Output ()
206206 require .NoError (t , err , "Error found destroying kind cluster: %s" , string (destroyOutput ))
@@ -240,7 +240,7 @@ func createTemporaryConfigurationFile() (string, error) {
240240func setupTestInfra (tmpConfigFile string ) error {
241241 var setupStdout , setupStderr bytes.Buffer
242242
243- setupCmd := exec .Command ("invoke " , "setup" , "--no-interactive" , "--config-path" , tmpConfigFile )
243+ setupCmd := exec .Command ("dda" , "inv " , "setup" , "--no-interactive" , "--config-path" , tmpConfigFile )
244244 setupCmd .Stdout = & setupStdout
245245 setupCmd .Stderr = & setupStderr
246246
0 commit comments