mirror of
https://git.proxmox.com/git/proxmox
synced 2025-07-04 06:59:03 +00:00
fmt
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
8ce46932d6
commit
53146006b5
@ -837,25 +837,21 @@ fn test_section_config_with_all_of_schema() {
|
|||||||
|
|
||||||
const PART1: Schema = ObjectSchema::new(
|
const PART1: Schema = ObjectSchema::new(
|
||||||
"properties 1",
|
"properties 1",
|
||||||
&[
|
&[(
|
||||||
(
|
"content",
|
||||||
"content",
|
true,
|
||||||
true,
|
&StringSchema::new("Storage content types.").schema(),
|
||||||
&StringSchema::new("Storage content types.").schema(),
|
)],
|
||||||
),
|
|
||||||
],
|
|
||||||
)
|
)
|
||||||
.schema();
|
.schema();
|
||||||
|
|
||||||
const PART2: Schema = ObjectSchema::new(
|
const PART2: Schema = ObjectSchema::new(
|
||||||
"properties 2",
|
"properties 2",
|
||||||
&[
|
&[(
|
||||||
(
|
"thinpool",
|
||||||
"thinpool",
|
false,
|
||||||
false,
|
&StringSchema::new("LVM thin pool name.").schema(),
|
||||||
&StringSchema::new("LVM thin pool name.").schema(),
|
)],
|
||||||
),
|
|
||||||
],
|
|
||||||
)
|
)
|
||||||
.schema();
|
.schema();
|
||||||
|
|
||||||
@ -880,7 +876,9 @@ lvmthin: local-lvm2
|
|||||||
|
|
||||||
let res = config.parse(filename, &raw);
|
let res = config.parse(filename, &raw);
|
||||||
println!("RES: {:?}", res);
|
println!("RES: {:?}", res);
|
||||||
let created = config.write(filename, &res.unwrap()).expect("failed to write config");
|
let created = config
|
||||||
|
.write(filename, &res.unwrap())
|
||||||
|
.expect("failed to write config");
|
||||||
println!("CONFIG:\n{}", raw);
|
println!("CONFIG:\n{}", raw);
|
||||||
|
|
||||||
assert_eq!(raw, created);
|
assert_eq!(raw, created);
|
||||||
|
Loading…
Reference in New Issue
Block a user