github.phpd.cn/hashicorp/packer@v1.3.2/builder/virtualbox/iso/builder_acc_test.go (about) 1 package iso 2 3 import ( 4 "testing" 5 6 builderT "github.com/hashicorp/packer/helper/builder/testing" 7 ) 8 9 func TestBuilderAcc_basic(t *testing.T) { 10 builderT.Test(t, builderT.TestCase{ 11 Builder: &Builder{}, 12 Template: testBuilderAccBasic, 13 }) 14 } 15 16 const testBuilderAccBasic = ` 17 { 18 "builders": [{ 19 "type": "test", 20 "guest_os_type": "Ubuntu_64", 21 "iso_url": "http://releases.ubuntu.com/12.04/ubuntu-12.04.5-server-amd64.iso", 22 "iso_checksum": "769474248a3897f4865817446f9a4a53", 23 "iso_checksum_type": "md5", 24 "ssh_username": "packer", 25 "ssh_password": "packer", 26 "ssh_wait_timeout": "30s", 27 "shutdown_command": "echo 'packer' | sudo -S shutdown -P now" 28 }] 29 } 30 `