@@ -85,7 +85,7 @@ func TestCreateHost(t *testing.T) {
8585 t .Fatal ("Machine already exists." )
8686 }
8787
88- _ , err := createHost (api , & defaultClusterConfig , & config.Node {Name : options .ProfileName })
88+ _ , err := createHost (api , & defaultClusterConfig , & config.Node {Name : options .ProfileName }, & run. CommandOptions {} )
8989 if err != nil {
9090 t .Fatalf ("Error creating host: %v" , err )
9191 }
@@ -129,7 +129,7 @@ func TestStartHostExists(t *testing.T) {
129129 api := tests .NewMockAPI (t )
130130
131131 // Create an initial host.
132- ih , err := createHost (api , & defaultClusterConfig , & config.Node {Name : options .ProfileName })
132+ ih , err := createHost (api , & defaultClusterConfig , & config.Node {Name : options .ProfileName }, & run. CommandOptions {} )
133133 if err != nil {
134134 t .Fatalf ("Error creating host: %v" , err )
135135 }
@@ -147,7 +147,7 @@ func TestStartHostExists(t *testing.T) {
147147 mc .Name = ih .Name
148148
149149 // This should pass without calling Create because the host exists already.
150- h , _ , err := StartHost (api , & mc , & (mc .Nodes [0 ]))
150+ h , _ , err := StartHost (api , & mc , & (mc .Nodes [0 ]), & run. CommandOptions {} )
151151 if err != nil {
152152 t .Fatalf ("Error starting host: %v" , err )
153153 }
@@ -169,7 +169,7 @@ func TestStartHostErrMachineNotExist(t *testing.T) {
169169 api := tests .NewMockAPI (t )
170170 // Create an incomplete host with machine does not exist error(i.e. User Interrupt Cancel)
171171 api .NotExistError = true
172- h , err := createHost (api , & defaultClusterConfig , & config.Node {Name : "minikube" })
172+ h , err := createHost (api , & defaultClusterConfig , & config.Node {Name : "minikube" }, & run. CommandOptions {} )
173173 if err != nil {
174174 t .Fatalf ("Error creating host: %v" , err )
175175 }
@@ -183,7 +183,7 @@ func TestStartHostErrMachineNotExist(t *testing.T) {
183183 n := config.Node {Name : h .Name }
184184
185185 // This should pass with creating host, while machine does not exist.
186- h , _ , err = StartHost (api , & mc , & n )
186+ h , _ , err = StartHost (api , & mc , & n , & run. CommandOptions {} )
187187 if err != nil {
188188 if err != constants .ErrMachineMissing {
189189 t .Fatalf ("Error starting host: %v" , err )
@@ -196,7 +196,7 @@ func TestStartHostErrMachineNotExist(t *testing.T) {
196196 n .Name = h .Name
197197
198198 // Second call. This should pass without calling Create because the host exists already.
199- h , _ , err = StartHost (api , & mc , & n )
199+ h , _ , err = StartHost (api , & mc , & n , & run. CommandOptions {} )
200200 if err != nil {
201201 t .Fatalf ("Error starting host: %v" , err )
202202 }
@@ -218,7 +218,7 @@ func TestStartStoppedHost(t *testing.T) {
218218 RegisterMockDriver (t )
219219 api := tests .NewMockAPI (t )
220220 // Create an initial host.
221- h , err := createHost (api , & defaultClusterConfig , & config.Node {Name : options .ProfileName })
221+ h , err := createHost (api , & defaultClusterConfig , & config.Node {Name : options .ProfileName }, & run. CommandOptions {} )
222222 if err != nil {
223223 t .Fatalf ("Error creating host: %v" , err )
224224 }
@@ -231,7 +231,7 @@ func TestStartStoppedHost(t *testing.T) {
231231 mc := defaultClusterConfig
232232 mc .Name = h .Name
233233 n := config.Node {Name : h .Name }
234- h , _ , err = StartHost (api , & mc , & n )
234+ h , _ , err = StartHost (api , & mc , & n , & run. CommandOptions {} )
235235 if err != nil {
236236 t .Fatal ("Error starting host." )
237237 }
@@ -261,7 +261,7 @@ func TestStartHost(t *testing.T) {
261261 md := & tests.MockDetector {Provisioner : & tests.MockProvisioner {}}
262262 provision .SetDetector (md )
263263
264- h , _ , err := StartHost (api , & defaultClusterConfig , & config.Node {Name : options .ProfileName })
264+ h , _ , err := StartHost (api , & defaultClusterConfig , & config.Node {Name : options .ProfileName }, & run. CommandOptions {} )
265265 if err != nil {
266266 t .Fatal ("Error starting host." )
267267 }
@@ -300,7 +300,7 @@ func TestStartHostConfig(t *testing.T) {
300300 DockerOpt : []string {"param=value" },
301301 }
302302
303- h , _ , err := StartHost (api , & cfg , & config.Node {Name : options .ProfileName })
303+ h , _ , err := StartHost (api , & cfg , & config.Node {Name : options .ProfileName }, & run. CommandOptions {} )
304304 if err != nil {
305305 t .Fatal ("Error starting host." )
306306 }
@@ -333,7 +333,7 @@ func TestStopHost(t *testing.T) {
333333 options := & run.CommandOptions {ProfileName : constants .DefaultClusterName }
334334 RegisterMockDriver (t )
335335 api := tests .NewMockAPI (t )
336- h , err := createHost (api , & defaultClusterConfig , & config.Node {Name : options .ProfileName })
336+ h , err := createHost (api , & defaultClusterConfig , & config.Node {Name : options .ProfileName }, & run. CommandOptions {} )
337337 if err != nil {
338338 t .Errorf ("createHost failed: %v" , err )
339339 }
@@ -355,7 +355,7 @@ func TestDeleteHost(t *testing.T) {
355355 options := & run.CommandOptions {ProfileName : constants .DefaultClusterName }
356356 RegisterMockDriver (t )
357357 api := tests .NewMockAPI (t )
358- if _ , err := createHost (api , & defaultClusterConfig , & config.Node {Name : options .ProfileName }); err != nil {
358+ if _ , err := createHost (api , & defaultClusterConfig , & config.Node {Name : options .ProfileName }, & run. CommandOptions {} ); err != nil {
359359 t .Errorf ("createHost failed: %v" , err )
360360 }
361361
@@ -373,7 +373,7 @@ func TestDeleteHostErrorDeletingVM(t *testing.T) {
373373 options := & run.CommandOptions {ProfileName : constants .DefaultClusterName }
374374 RegisterMockDriver (t )
375375 api := tests .NewMockAPI (t )
376- h , err := createHost (api , & defaultClusterConfig , & config.Node {Name : options .ProfileName })
376+ h , err := createHost (api , & defaultClusterConfig , & config.Node {Name : options .ProfileName }, & run. CommandOptions {} )
377377 if err != nil {
378378 t .Errorf ("createHost failed: %v" , err )
379379 }
@@ -393,7 +393,7 @@ func TestDeleteHostErrorDeletingFiles(t *testing.T) {
393393 RegisterMockDriver (t )
394394 api := tests .NewMockAPI (t )
395395 api .RemoveError = true
396- if _ , err := createHost (api , & defaultClusterConfig , & config.Node {Name : options .ProfileName }); err != nil {
396+ if _ , err := createHost (api , & defaultClusterConfig , & config.Node {Name : options .ProfileName }, & run. CommandOptions {} ); err != nil {
397397 t .Errorf ("createHost failed: %v" , err )
398398 }
399399
@@ -410,7 +410,7 @@ func TestDeleteHostErrMachineNotExist(t *testing.T) {
410410 api := tests .NewMockAPI (t )
411411 // Create an incomplete host with machine does not exist error(i.e. User Interrupt Cancel)
412412 api .NotExistError = true
413- _ , err := createHost (api , & defaultClusterConfig , & config.Node {Name : options .ProfileName })
413+ _ , err := createHost (api , & defaultClusterConfig , & config.Node {Name : options .ProfileName }, & run. CommandOptions {} )
414414 if err != nil {
415415 t .Errorf ("createHost failed: %v" , err )
416416 }
@@ -444,7 +444,7 @@ func TestStatus(t *testing.T) {
444444
445445 checkState (state .None .String (), m )
446446
447- if _ , err := createHost (api , & cc , & config.Node {Name : options .ProfileName }); err != nil {
447+ if _ , err := createHost (api , & cc , & config.Node {Name : options .ProfileName }, & run. CommandOptions {} ); err != nil {
448448 t .Errorf ("createHost failed: %v" , err )
449449 }
450450
0 commit comments