]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
cephadm/tests: Add tests for deb bundled dependencies
authorKefu Chai <k.chai@proxmox.com>
Tue, 21 Oct 2025 03:26:25 +0000 (11:26 +0800)
committerKefu Chai <k.chai@proxmox.com>
Fri, 14 Nov 2025 13:21:19 +0000 (21:21 +0800)
commitf3cb2a8229f20d5e504dff81802e52472477fc28
tree57f882ef3a18912e180f8453f86158227f0bb32d
parent248295a89d3f4b72e4928ea88e03140d51fe25ee
cephadm/tests: Add tests for deb bundled dependencies

Add container definitions and test cases for building cephadm with
Debian package dependencies. The new test_cephadm_build_from_debs
function mirrors the existing RPM test structure, verifying that:

- Build succeeds when required Debian packages are installed
- Build fails when packages are missing
- Bundled packages are correctly identified as sourced from 'deb'
- All expected packages (Jinja2, MarkupSafe, PyYAML) are included
- The zipapp contains expected package directories

Test environments include Ubuntu 22.04 and 24.04 with and without
the required python3-jinja2, python3-yaml, and python3-markupsafe
packages.

Signed-off-by: Kefu Chai <k.chai@proxmox.com>
(cherry picked from commit f670dce5d0b819f2fb105339d8611509e81a0355)
src/cephadm/tests/build/test_cephadm_build.py