We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b073ac7 commit 4ea420cCopy full SHA for 4ea420c
tests/libvirt/models/compute/volume_tests.rb
@@ -35,4 +35,23 @@
35
test('succeed') { volume.xml == new_vol.xml }
36
end
37
38
+ test('to_xml') do
39
+ test('default') do
40
+ expected = <<~VOLUME
41
+ <volume>
42
+ <name>fog_test</name>
43
+ <allocation unit="G">1</allocation>
44
+ <capacity unit="G">10</capacity>
45
+ <target>
46
+ <format type="raw"/>
47
+ <permissions>
48
+ <mode>0744</mode>
49
+ <label>virt_image_t</label>
50
+ </permissions>
51
+ </target>
52
+ </volume>
53
+ VOLUME
54
+ volume.to_xml == expected
55
+ end
56
57
0 commit comments