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:
Sebastien Boeuf 2019-12-12 18:35:33 +01:00
parent d1390906c8
commit 43d2e09e1f
3 changed files with 1018 additions and 1 deletions

1
Cargo.lock generated
View File

@ -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",

View File

@ -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"

File diff suppressed because it is too large Load Diff