mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-02-23 15:34:28 +01:00
runtime-rs: Supply missing fields of NetworkConfig
`test_networkconfig_to_netconfig` from clh depends on `NetworkConfig` which has some new fields in this PR. Therefore, this commit gives the test missing fields. Signed-off-by: Xuewei Niu <niuxuewei.nxw@antgroup.com>
This commit is contained in:
@@ -413,7 +413,7 @@ impl TryFrom<ShareFsSettings> for FsConfig {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::Address;
|
||||
use crate::{Address, Backend};
|
||||
|
||||
#[test]
|
||||
fn test_networkconfig_to_netconfig() {
|
||||
@@ -424,6 +424,10 @@ mod tests {
|
||||
queue_num: 2,
|
||||
guest_mac: None,
|
||||
index: 1,
|
||||
allow_duplicate_mac: false,
|
||||
use_generic_irq: None,
|
||||
use_shared_irq: None,
|
||||
backend: Backend::default(),
|
||||
};
|
||||
|
||||
let net = NetConfig::try_from(cfg.clone());
|
||||
|
||||
Reference in New Issue
Block a user