details: Add OS name view/edit, + oslist rework

This is just a big nasty commit.

Turn the OS inspection page into an always available page that
shows the libosinfo name from the domain metadata XML. Use oslist.py
and have it absorb more of the common behavior needed by create.py
and details.py. Add UI tests for it all
This commit is contained in:
Cole Robinson
2018-09-30 20:55:32 -04:00
parent 75c64151b1
commit b19f94299b
14 changed files with 476 additions and 312 deletions
+4 -1
View File
@@ -116,7 +116,10 @@ class XMLParseTest(unittest.TestCase):
check("on_lockfailure", "poweroff", "restart")
check = self._make_checker(guest._metadata.libosinfo) # pylint: disable=protected-access
check("os_id", "http://fedoraproject.org/fedora/17", "frib")
check("os_id", "http://fedoraproject.org/fedora/17")
guest.set_os_name("generic")
check("os_id", None, "frib")
self.assertEqual(guest.osinfo.name, "generic")
check = self._make_checker(guest.clock)
check("offset", "utc", "localtime")