Added a second test for the other form of tilde paths

This commit is contained in:
Alex Gaynor 2014-08-11 14:57:13 -07:00
parent e85b89d7fb
commit d578031831
1 changed files with 8 additions and 0 deletions

View File

@ -21,6 +21,14 @@ func Test_expandUserPath(t *testing.T) {
if path != expected {
t.Fatalf("bad: %v", path)
}
path, err = expandUserPath("~" + u.Username + "/path.pem")
if err != nil {
t.Fatalf("err: %v", err)
}
if path != expected {
t.Fatalf("bad: %v, %v", path)
}
}
func TestResourceProvider_verifySSH(t *testing.T) {