mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-06 23:23:20 +00:00
apt: tests: add tests for Ceph Quincy repository detection on Bookworm
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
06ad528c94
commit
cc17861f54
@ -397,6 +397,36 @@ fn test_standard_repositories() -> Result<(), Error> {
|
|||||||
|
|
||||||
assert_eq!(std_repos, expected);
|
assert_eq!(std_repos, expected);
|
||||||
|
|
||||||
|
let pve_alt_list = read_dir.join("ceph-quincy-bookworm.list");
|
||||||
|
let mut file = APTRepositoryFile::new(&pve_alt_list)?.unwrap();
|
||||||
|
file.parse()?;
|
||||||
|
|
||||||
|
expected[0].status = None;
|
||||||
|
expected[1].status = None;
|
||||||
|
expected[2].status = None;
|
||||||
|
expected[3].status = Some(true);
|
||||||
|
expected[4].status = Some(true);
|
||||||
|
expected[5].status = Some(true);
|
||||||
|
|
||||||
|
let std_repos = standard_repositories(&[file], "pve", DebianCodename::Bookworm);
|
||||||
|
|
||||||
|
assert_eq!(std_repos, expected);
|
||||||
|
|
||||||
|
let pve_alt_list = read_dir.join("ceph-quincy-nosub-bookworm.list");
|
||||||
|
let mut file = APTRepositoryFile::new(&pve_alt_list)?.unwrap();
|
||||||
|
file.parse()?;
|
||||||
|
|
||||||
|
expected[0].status = None;
|
||||||
|
expected[1].status = None;
|
||||||
|
expected[2].status = None;
|
||||||
|
expected[3].status = None;
|
||||||
|
expected[4].status = Some(true);
|
||||||
|
expected[5].status = None;
|
||||||
|
|
||||||
|
let std_repos = standard_repositories(&[file], "pve", DebianCodename::Bookworm);
|
||||||
|
|
||||||
|
assert_eq!(std_repos, expected);
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
deb https://enterprise.proxmox.com/debian/ceph-quincy bookworm enterprise
|
||||||
|
|
||||||
|
deb http://download.proxmox.com/debian/ceph-quincy bookworm main
|
||||||
|
|
||||||
|
deb http://download.proxmox.com/debian/ceph-quincy bookworm test
|
||||||
|
|
@ -0,0 +1,2 @@
|
|||||||
|
deb http://download.proxmox.com/debian/ceph-quincy bookworm no-subscription
|
||||||
|
|
@ -0,0 +1,4 @@
|
|||||||
|
deb https://enterprise.proxmox.com/debian/ceph-quincy bookworm enterprise
|
||||||
|
deb http://download.proxmox.com/debian/ceph-quincy bookworm main
|
||||||
|
deb http://download.proxmox.com/debian/ceph-quincy bookworm test
|
||||||
|
|
@ -0,0 +1,2 @@
|
|||||||
|
deb http://download.proxmox.com/debian/ceph-quincy bookworm no-subscription
|
||||||
|
|
Loading…
Reference in New Issue
Block a user