bladerunner/packer/packerlib/ubuntu_test.go

17 lines
360 B
Go
Raw Normal View History

2023-04-12 19:51:41 +00:00
package packerlib
import "testing"
func TestJSONPath(t *testing.T) {
baseName := "cm4-cluster-ubuntu-22.04.2"
spec := UbuntuBoardSpec{
ImageName: "cm4-cluster-ubuntu-22.04.2" + ".img",
}
outPath := spec.JSONPath("")
expected := baseName + ".json"
if outPath != expected {
t.Fatalf("bad JSON path name: have %s, expect %s", outPath, expected)
}
}