This commit is contained in:
Megan Marsh 2017-10-05 16:57:52 -07:00
parent a79d5eff4e
commit 52c0be2d82
1 changed files with 6 additions and 0 deletions

View File

@ -48,6 +48,12 @@ func newMockWinRMServer(t *testing.T) *winrmtest.Remote {
func(out, err io.Writer) int {
return 0
})
wrm.CommandFunc(
winrmtest.MatchText(`powershell -Command "(Get-Item C:/Temp/packer.cmd) -is [System.IO.DirectoryInfo]"`),
func(out, err io.Writer) int {
out.Write([]byte("False"))
return 0
})
return wrm
}