@@ -458,11 +458,13 @@ func TestRunCommand_Run(t *testing.T) {
458458 }{
459459 "success, no secrets" : {
460460 command : RunCommand {
461+ osEnv : func () []string { return []string {} },
461462 command : []string {"echo" , "test" },
462463 },
463464 },
464465 "missing secret" : {
465466 command : RunCommand {
467+ osEnv : func () []string { return []string {} },
466468 command : []string {"echo" , "test" },
467469 envar : map [string ]string {
468470 "missing" : "path/to/unexisting/secret" ,
@@ -484,6 +486,7 @@ func TestRunCommand_Run(t *testing.T) {
484486 },
485487 "missing secret ignored" : {
486488 command : RunCommand {
489+ osEnv : func () []string { return []string {} },
487490 command : []string {"echo" , "test" },
488491 envar : map [string ]string {
489492 "missing" : "path/to/unexisting/secret" ,
@@ -505,6 +508,7 @@ func TestRunCommand_Run(t *testing.T) {
505508 },
506509 "repo does not exist ignored" : {
507510 command : RunCommand {
511+ osEnv : func () []string { return []string {} },
508512 command : []string {"echo" , "test" },
509513 envar : map [string ]string {
510514 "missing" : "unexisting/repo/secret" ,
@@ -526,6 +530,7 @@ func TestRunCommand_Run(t *testing.T) {
526530 },
527531 "invalid template var: start with a number" : {
528532 command : RunCommand {
533+ osEnv : func () []string { return []string {} },
529534 envFile : "secrethub.env" ,
530535 templateVars : map [string ]string {
531536 "0foo" : "value" ,
@@ -536,6 +541,7 @@ func TestRunCommand_Run(t *testing.T) {
536541 },
537542 "invalid template var: illegal character" : {
538543 command : RunCommand {
544+ osEnv : func () []string { return []string {} },
539545 envFile : "secrethub.env" ,
540546 templateVars : map [string ]string {
541547 "foo@bar" : "value" ,
0 commit comments