fix regression tests
This commit is contained in:
		| @ -6,17 +6,9 @@ use std::path::PathBuf; | ||||
| use anyhow::Error; | ||||
|  | ||||
| use pbs_systemd::time::parse_time_span; | ||||
| use pbs_api_types::{RetentionPolicy, MediaSetPolicy}; | ||||
|  | ||||
| use crate::{ | ||||
|     api2::types::{ | ||||
|         MediaSetPolicy, | ||||
|         RetentionPolicy, | ||||
|     }, | ||||
|     tape::{ | ||||
|         Inventory, | ||||
|         MediaPool, | ||||
|     }, | ||||
| }; | ||||
| use crate::tape::{Inventory, MediaPool}; | ||||
|  | ||||
| fn create_testdir(name: &str) -> Result<PathBuf, Error> { | ||||
|     let mut testdir: PathBuf = String::from("./target/testout").into(); | ||||
|  | ||||
| @ -9,18 +9,13 @@ use proxmox::tools::{ | ||||
|     Uuid, | ||||
| }; | ||||
|  | ||||
| use crate::{ | ||||
|     api2::types::{ | ||||
|         MediaStatus, | ||||
|         MediaSetPolicy, | ||||
|         RetentionPolicy, | ||||
|     }, | ||||
|     tape::{ | ||||
|         Inventory, | ||||
|         MediaPool, | ||||
|         file_formats::{ | ||||
|             MediaSetLabel, | ||||
|         }, | ||||
| use pbs_api_types::{MediaStatus, MediaSetPolicy, RetentionPolicy}; | ||||
|  | ||||
| use crate::tape::{ | ||||
|     Inventory, | ||||
|     MediaPool, | ||||
|     file_formats::{ | ||||
|         MediaSetLabel, | ||||
|     }, | ||||
| }; | ||||
|  | ||||
|  | ||||
| @ -5,19 +5,14 @@ | ||||
| use std::path::PathBuf; | ||||
| use anyhow::Error; | ||||
|  | ||||
| use proxmox::tools::{ | ||||
|     Uuid, | ||||
| }; | ||||
| use proxmox::tools::Uuid; | ||||
|  | ||||
| use pbs_api_types::{RetentionPolicy, MediaSetPolicy}; | ||||
|  | ||||
| use crate::{ | ||||
|     api2::types::{ | ||||
|         MediaSetPolicy, | ||||
|         RetentionPolicy, | ||||
|     }, | ||||
|     tape::{ | ||||
|         Inventory, | ||||
|         MediaPool, | ||||
|  | ||||
|         file_formats::{ | ||||
|             MediaSetLabel, | ||||
|         }, | ||||
|  | ||||
| @ -9,11 +9,9 @@ use proxmox::tools::{ | ||||
|     Uuid, | ||||
| }; | ||||
|  | ||||
| use pbs_api_types::{MediaLocation, MediaStatus}; | ||||
|  | ||||
| use crate::{ | ||||
|     api2::types::{ | ||||
|         MediaLocation, | ||||
|         MediaStatus, | ||||
|     }, | ||||
|     tape::{ | ||||
|         Inventory, | ||||
|         file_formats::{ | ||||
|  | ||||
		Reference in New Issue
	
	Block a user