mirror of
https://github.com/hashicorp/packer.git
synced 2026-04-27 00:59:18 -04:00
18 lines
433 B
Go
18 lines
433 B
Go
package driver
|
|
|
|
import "testing"
|
|
|
|
func TestFolderAcc(t *testing.T) {
|
|
d := newTestDriver(t)
|
|
f, err := d.FindFolder("folder1/folder2")
|
|
if err != nil {
|
|
t.Fatalf("Cannot find the default folder '%v': %v", "folder1/folder2", err)
|
|
}
|
|
path, err := f.Path()
|
|
if err != nil {
|
|
t.Fatalf("Cannot read folder name: %v", err)
|
|
}
|
|
if path != "folder1/folder2" {
|
|
t.Errorf("Wrong folder. expected: 'folder1/folder2', got: '%v'", path)
|
|
}
|
|
}
|