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:
Tomáš Hozza 2024-08-05 16:47:28 +02:00 committed by Tomáš Hozza
parent 1c4ec8faa3
commit 316a9b6203

View file

@ -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.*",
},
]