add --as-current-user flag to fn run

This commit is contained in:
Donny Xia
2020-10-14 17:07:03 -07:00
parent ca45907af0
commit 64fda38e2d
2 changed files with 14 additions and 0 deletions

View File

@@ -300,6 +300,16 @@ apiVersion: v1
Env: []string{"FOO=BAR", "BAR"},
},
},
{
name: "as current user",
args: []string{"run", "dir", "--as-current-user"},
path: "dir",
expectedStruct: &runfn.RunFns{
Path: "dir",
AsCurrentUser: true,
Env: []string{},
},
},
}
for i := range tests {