fixed the test as well

This commit is contained in:
Marc Siegfriedt 2015-07-01 11:45:10 -07:00
parent df1be999dc
commit e9ef2b987e
1 changed files with 9 additions and 9 deletions

18
builder/vmware/common/step_clean_vmx_test.go Normal file → Executable file
View File

@ -61,8 +61,8 @@ func TestStepCleanVMX_floppyPath(t *testing.T) {
Value string Value string
}{ }{
{"floppy0.present", "FALSE"}, {"floppy0.present", "FALSE"},
{"floppy0.filetype", ""}, {"floppy0.fileType", ""},
{"floppy0.filename", ""}, {"floppy0.fileName", ""},
} }
for _, tc := range cases { for _, tc := range cases {
@ -109,9 +109,9 @@ func TestStepCleanVMX_isoPath(t *testing.T) {
Key string Key string
Value string Value string
}{ }{
{"ide0:0.filename", "auto detect"}, {"ide0:0.fileName", "auto detect"},
{"ide0:0.devicetype", "cdrom-raw"}, {"ide0:0.deviceType", "cdrom-raw"},
{"ide0:1.filename", "bar"}, {"ide0:1.fileName", "bar"},
{"foo", "bar"}, {"foo", "bar"},
} }
@ -130,12 +130,12 @@ func TestStepCleanVMX_isoPath(t *testing.T) {
const testVMXFloppyPath = ` const testVMXFloppyPath = `
floppy0.present = "TRUE" floppy0.present = "TRUE"
floppy0.filetype = "file" floppy0.fileType = "file"
` `
const testVMXISOPath = ` const testVMXISOPath = `
ide0:0.devicetype = "cdrom-image" ide0:0.deviceType = "cdrom-image"
ide0:0.filename = "foo" ide0:0.fileName = "foo"
ide0:1.filename = "bar" ide0:1.fileName = "bar"
foo = "bar" foo = "bar"
` `