Sharp.Augeas/Sharp.Augeas.Test/lens/tests/test_oz.aug

37 lines
611 B
Plaintext
Raw Normal View History

2022-11-08 20:57:02 +03:00
module Test_oz =
let conf = "
[paths]
output_dir = /var/lib/libvirt/images
data_dir = /var/lib/oz
[libvirt]
uri = qemu:///system
image_type = raw
"
test Oz.lns get conf =
{}
{ "paths"
{ "output_dir" = "/var/lib/libvirt/images" }
{ "data_dir" = "/var/lib/oz" }
{} }
{ "libvirt"
{ "uri" = "qemu:///system" }
{ "image_type" = "raw" }
}
test Oz.lns put conf after
set "libvirt/cpus" "2"
= "
[paths]
output_dir = /var/lib/libvirt/images
data_dir = /var/lib/oz
[libvirt]
uri = qemu:///system
image_type = raw
cpus=2
"