test_depsolve.py: test depsolving conflicting packages
Add a test case for checking the error reason and message when depsolving conflicting packages. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
1c4ec8faa3
commit
316a9b6203
1 changed files with 15 additions and 0 deletions
|
|
@ -185,6 +185,21 @@ test_cases = [
|
|||
"error_kind": "MarkingErrors",
|
||||
"error_reason_re": r".*non-existing-package.*",
|
||||
},
|
||||
# Test depsolving error due to conflicting packages
|
||||
{
|
||||
"id": "error_conflicting_pkgs",
|
||||
"transactions": [
|
||||
{
|
||||
"package-specs": [
|
||||
"curl",
|
||||
"curl-minimal",
|
||||
],
|
||||
},
|
||||
],
|
||||
"error": True,
|
||||
"error_kind": "DepsolveError",
|
||||
"error_reason_re": r".*package curl-minimal-.*\.el9\.x86_64.*conflicts with curl provided by curl-.*\.el9\.x86_64.*",
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue