NSSDB: Let certutil decide its default db type

CertDB no longer makes any assumptions about the default db type of a NSS
DB. Instead it let's certutil decide when dbtype is set to 'auto'. This
makes it much easier to support F27 and F28 from a single code base.

Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
Christian Heimes
2018-02-08 13:40:34 +01:00
parent c5fb6c8502
commit 492e3c9b1e
7 changed files with 89 additions and 35 deletions

View File

@@ -50,5 +50,5 @@ def test_importhook(mod, name):
(os.path.join(DATA, 'os-release-ubuntu'), ['ubuntu', 'debian']),
])
def test_parse_os_release(filename, expected_platforms):
parsed = metaimporter._parse_osrelease(filename)
parsed = metaimporter._parse_platform(filename)
assert parsed == expected_platforms