* add kex algorithm option to ssh config * regenerate code * This commit fixes old vmware acceptance tests that have not been run in some time. It does this in two parts: 1) It modifies the minimal vmware build configuration to use a custom kex algorithm, which enables the ssh connection to succeed. 2) It modifies logic in reading and defaulting hardware config values, which was crashing. 3) It adds a new acceptance test with a preseed file to test loading from an http directory.
23 lines
451 B
Go
23 lines
451 B
Go
package iso
|
|
|
|
import (
|
|
"io/ioutil"
|
|
"path/filepath"
|
|
"testing"
|
|
|
|
builderT "github.com/hashicorp/packer/helper/builder/testing"
|
|
)
|
|
|
|
func TestBuilderAcc_basic(t *testing.T) {
|
|
templatePath := filepath.Join("testdata", "minimal.json")
|
|
bytes, err := ioutil.ReadFile(templatePath)
|
|
if err != nil {
|
|
t.Fatalf("failed to load template file %s", templatePath)
|
|
}
|
|
|
|
builderT.Test(t, builderT.TestCase{
|
|
Builder: &Builder{},
|
|
Template: string(bytes),
|
|
})
|
|
}
|