test: Add a depsolve test for sslverify

Also fix the test, it wasn't updated to use sslverify instead of
ignoressl. This now correctly passes on -dnf and fails on -dnf5 which
will be fixed in the next commit.
This commit is contained in:
Brian C. Lane 2024-04-25 09:20:46 -07:00 committed by Achilleas Koutsou
parent 8b5e2a67a6
commit 3ef6e684e5

View file

@ -225,7 +225,7 @@ def config_combos(tmp_path, servers):
"name": server["name"],
"baseurl": server["address"],
"check_gpg": False,
"ignoressl": True,
"sslverify": False,
"rhsm": False,
"gpgkeys": [TEST_KEY + server["name"]],
})
@ -277,3 +277,4 @@ def test_depsolve(tmp_path, cache_dir, repo_servers, dnf_cmd, detect_fn, test_ca
assert res["repos"].keys() == test_case["results"]["reponames"]
for repo in res["repos"].values():
assert repo["gpgkeys"] == [TEST_KEY + repo["id"]]
assert repo["sslverify"] is False