mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-02 11:35:46 +00:00
ci: Add unit tests to compare CLI and OpenAPI
The goal here is to ensure that CLI and OpenAPI both behave as closely as possible, and also that they behave as expected. Leveraging the reorganization of the code, we can now compare two VmConfig structures generated from one CLI entry on one side, and from an OpenAPI entry (JSON payload) on the other side. Fixes #535 Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
parent
d1390906c8
commit
43d2e09e1f
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -183,6 +183,7 @@ dependencies = [
|
||||
"net_gen 0.1.0",
|
||||
"net_util 0.1.0",
|
||||
"qcow 0.1.0",
|
||||
"serde_json 1.0.44 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"ssh2 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"tempdir 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"vhost_rs 0.1.0",
|
||||
|
@ -29,6 +29,7 @@ dirs = "2.0.2"
|
||||
credibility = "0.1.3"
|
||||
tempdir= "0.3.7"
|
||||
lazy_static= "1.4.0"
|
||||
serde_json = ">=1.0.9"
|
||||
|
||||
[dependencies.vhost_rs]
|
||||
path = "vhost_rs"
|
||||
|
1017
src/main.rs
1017
src/main.rs
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user