mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Added a second test for the other form of tilde paths
This commit is contained in:
parent
e85b89d7fb
commit
d578031831
@ -21,6 +21,14 @@ func Test_expandUserPath(t *testing.T) {
|
|||||||
if path != expected {
|
if path != expected {
|
||||||
t.Fatalf("bad: %v", path)
|
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) {
|
func TestResourceProvider_verifySSH(t *testing.T) {
|
||||||
|
Loading…
Reference in New Issue
Block a user