diff options
author | Thomas Hipp <thipp@suse.de> | 2017-12-01 13:29:00 +0100 |
---|---|---|
committer | Thomas Hipp <thipp@suse.de> | 2017-12-01 15:23:31 +0100 |
commit | 9be42d2996fd6acd34b1bda8a4245d3aa7544135 (patch) | |
tree | 182fc4aa0093693c723f967fd68748e3bf0c302b /libvirt/disk_def_test.go | |
parent | 380076c1943ebd10c5e5f54ad4ac751a736c5c1f (diff) | |
download | terraform-provider-libvirt-9be42d2996fd6acd34b1bda8a4245d3aa7544135.tar terraform-provider-libvirt-9be42d2996fd6acd34b1bda8a4245d3aa7544135.tar.gz |
support local cdroms
Local cdroms can now be added directly to the domain. See the
following example:
```hcl
resource "libvirt_domain" "test-domain" {
name = "test"
disk {
file = "path/to/file.iso"
}
}
```
Furthermore, a small Tiny Core Linux (TCL) ISO image has been added to
the testdata. This can be used for testing purposes.
Signed-off-by: Thomas Hipp <thipp@suse.de>
Diffstat (limited to 'libvirt/disk_def_test.go')
-rw-r--r-- | libvirt/disk_def_test.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/libvirt/disk_def_test.go b/libvirt/disk_def_test.go index a6184cc6..d13d26d8 100644 --- a/libvirt/disk_def_test.go +++ b/libvirt/disk_def_test.go @@ -21,13 +21,3 @@ func TestDefaultDiskMarshall(t *testing.T) { t.Fatalf("could not marshall this:\n%s", spew.Sdump(b)) } } - -func TestDefaultCDROMMarshall(t *testing.T) { - b := newCDROM() - buf := new(bytes.Buffer) - enc := xml.NewEncoder(buf) - enc.Indent(" ", " ") - if err := enc.Encode(b); err != nil { - t.Fatalf("could not marshall this:\n%s", spew.Sdump(b)) - } -} |