mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-03-20 07:58:55 +00:00
tests: Add CLI <-> API validation test for --net changes
Check that the CLI generates the JSON data as expected. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
8f096b8be5
commit
4888dd2e01
@ -839,6 +839,15 @@ mod unit_tests {
|
|||||||
}"#,
|
}"#,
|
||||||
true,
|
true,
|
||||||
),
|
),
|
||||||
|
(
|
||||||
|
vec!["cloud-hypervisor", "--net", "mac=12:34:56:78:90:ab,vhost_user=true,socket=/tmp/socket"],
|
||||||
|
r#"{
|
||||||
|
"net": [
|
||||||
|
{"mac": "12:34:56:78:90:ab", "vhost_user": true, "vhost_socket": "/tmp/socket"}
|
||||||
|
]
|
||||||
|
}"#,
|
||||||
|
true,
|
||||||
|
),
|
||||||
]
|
]
|
||||||
.iter()
|
.iter()
|
||||||
.for_each(|(cli, openapi, equal)| {
|
.for_each(|(cli, openapi, equal)| {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user