test_depsolve.py: test installation of excluded package
Add a test case for installation of a package, which is excluded in a different transaction. This is a common scenario in osbuild-composer, where the image base package set is depsolved in the first transaction and can contain package excludes. The user must be able to install these excluded packages when specified explicitly in the Blueprint. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
b49cb21a3e
commit
4aca2709a7
1 changed files with 43 additions and 0 deletions
|
|
@ -834,6 +834,49 @@ test_cases = [
|
|||
},
|
||||
}
|
||||
},
|
||||
# Test that a package can be excluded in one transaction and installed in another
|
||||
# This is common scenario for custom packages specified in the Blueprint
|
||||
{
|
||||
"id": "install_pkg_excluded_in_another_transaction",
|
||||
"transactions": [
|
||||
{
|
||||
"package-specs": [
|
||||
"filesystem",
|
||||
],
|
||||
"exclude-specs": [
|
||||
"pkg-with-no-deps",
|
||||
],
|
||||
},
|
||||
{
|
||||
"package-specs": [
|
||||
"pkg-with-no-deps",
|
||||
],
|
||||
},
|
||||
],
|
||||
"results": {
|
||||
"packages": {
|
||||
"basesystem",
|
||||
"bash",
|
||||
"centos-gpg-keys",
|
||||
"centos-stream-release",
|
||||
"centos-stream-repos",
|
||||
"filesystem",
|
||||
"glibc",
|
||||
"glibc-common",
|
||||
"glibc-minimal-langpack",
|
||||
"libgcc",
|
||||
"ncurses-base",
|
||||
"ncurses-libs",
|
||||
"setup",
|
||||
"tzdata",
|
||||
"pkg-with-no-deps",
|
||||
},
|
||||
"reponames": {
|
||||
"baseos",
|
||||
"custom",
|
||||
},
|
||||
},
|
||||
},
|
||||
# Test that repositories not enabled for the transaction are not used
|
||||
# This test should result in an error because the package is not available in the enabled repositories
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue