diff --git a/helper/ssh/provisioner_test.go b/helper/ssh/provisioner_test.go index 63184d7fc..b9661449a 100644 --- a/helper/ssh/provisioner_test.go +++ b/helper/ssh/provisioner_test.go @@ -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) {