|
1 | 1 | package runtime_test
|
2 | 2 |
|
3 | 3 | import (
|
| 4 | + "fmt" |
4 | 5 | "io/ioutil"
|
5 | 6 | "os"
|
6 | 7 | "path/filepath"
|
@@ -58,7 +59,7 @@ func TestRun_NoWorkspaceIn08(t *testing.T) {
|
58 | 59 | "-refresh",
|
59 | 60 | "-no-color",
|
60 | 61 | "-out",
|
61 |
| - "/path/default.tfplan", |
| 62 | + "\"/path/default.tfplan\"", |
62 | 63 | "-var",
|
63 | 64 | "atlantis_user=username",
|
64 | 65 | "-var",
|
@@ -187,7 +188,7 @@ func TestRun_SwitchesWorkspace(t *testing.T) {
|
187 | 188 | "-refresh",
|
188 | 189 | "-no-color",
|
189 | 190 | "-out",
|
190 |
| - "/path/workspace.tfplan", |
| 191 | + "\"/path/workspace.tfplan\"", |
191 | 192 | "-var",
|
192 | 193 | "atlantis_user=username",
|
193 | 194 | "-var",
|
@@ -252,7 +253,7 @@ func TestRun_CreatesWorkspace(t *testing.T) {
|
252 | 253 | "-refresh",
|
253 | 254 | "-no-color",
|
254 | 255 | "-out",
|
255 |
| - "/path/workspace.tfplan", |
| 256 | + "\"/path/workspace.tfplan\"", |
256 | 257 | "-var",
|
257 | 258 | "atlantis_user=username",
|
258 | 259 | "-var",
|
@@ -306,7 +307,7 @@ func TestRun_NoWorkspaceSwitchIfNotNecessary(t *testing.T) {
|
306 | 307 | "-refresh",
|
307 | 308 | "-no-color",
|
308 | 309 | "-out",
|
309 |
| - "/path/workspace.tfplan", |
| 310 | + "\"/path/workspace.tfplan\"", |
310 | 311 | "-var",
|
311 | 312 | "atlantis_user=username",
|
312 | 313 | "-var",
|
@@ -368,7 +369,7 @@ func TestRun_AddsEnvVarFile(t *testing.T) {
|
368 | 369 | "-refresh",
|
369 | 370 | "-no-color",
|
370 | 371 | "-out",
|
371 |
| - filepath.Join(tmpDir, "workspace.tfplan"), |
| 372 | + fmt.Sprintf("%q", filepath.Join(tmpDir, "workspace.tfplan")), |
372 | 373 | "-var",
|
373 | 374 | "atlantis_user=username",
|
374 | 375 | "-var",
|
@@ -423,7 +424,7 @@ func TestRun_UsesDiffPathForProject(t *testing.T) {
|
423 | 424 | "-refresh",
|
424 | 425 | "-no-color",
|
425 | 426 | "-out",
|
426 |
| - "/path/projectname-default.tfplan", |
| 427 | + "\"/path/projectname-default.tfplan\"", |
427 | 428 | "-var",
|
428 | 429 | "atlantis_user=username",
|
429 | 430 | "-var",
|
|
0 commit comments