Remove six library from requirements.txt
Six is unused in the code, and generally unused in all of Openstack, so remove it. Removed setuptools pin in test-requirements.txt since it was causing an older pkg_resources to be used, which was trying to import six. Fixed some invalid assertion statements in unit tests. Change-Id: Id8c182a9aec5e25a8078b33127095ab8dce9dc33
This commit is contained in:
parent
a9d893e733
commit
9706bba3cb
@ -138,7 +138,6 @@ BASE_PACKAGES = [
|
||||
'nova-compute',
|
||||
'genisoimage', # was missing as a package dependency until raring.
|
||||
'librbd1', # bug 1440953
|
||||
'python-six',
|
||||
'python-psutil',
|
||||
'xfsprogs',
|
||||
'nfs-common',
|
||||
@ -174,7 +173,6 @@ MULTIPATH_PACKAGES = [
|
||||
|
||||
HELD_PACKAGES = [
|
||||
'python-memcache',
|
||||
'python-six',
|
||||
'python-psutil',
|
||||
]
|
||||
|
||||
|
@ -22,7 +22,6 @@ cryptography<3.4
|
||||
netaddr>0.7.16,<0.8.0
|
||||
|
||||
Jinja2>=2.6 # BSD License (3 clause)
|
||||
six>=1.9.0
|
||||
|
||||
dnspython
|
||||
|
||||
|
@ -8,7 +8,6 @@
|
||||
# all of its own requirements and if it doesn't, fix it there.
|
||||
#
|
||||
pyparsing<3.0.0 # aodhclient is pinned in zaza and needs pyparsing < 3.0.0, but cffi also needs it, so pin here.
|
||||
setuptools<50.0.0 # https://github.com/pypa/setuptools/commit/04e3df22df840c6bb244e9b27bc56750c44b7c85
|
||||
|
||||
requests>=2.18.4
|
||||
|
||||
|
@ -50,6 +50,5 @@ class MainTestCase(CharmTestCase):
|
||||
self.assertEqual(len(dummy_action), 1)
|
||||
d = dummy_action[0]
|
||||
self.assertIsInstance(d, dict)
|
||||
self.assert_('hugepagestats' in d)
|
||||
self.assert_(
|
||||
d['hugepagestats'].find('/free_hugepages') != -1)
|
||||
self.assertIn('hugepagestats', d)
|
||||
self.assertNotEqual(d['hugepagestats'].find('/free_hugepages'), -1)
|
||||
|
@ -573,7 +573,7 @@ class NovaComputeContextTests(CharmTestCase):
|
||||
self.test_config.set('enable-live-migration', True)
|
||||
self.test_config.set('migration-auth-type', 'ssh')
|
||||
self.os_release.return_value = 'kilo'
|
||||
self.assertEquals(context.NovaComputeLibvirtContext()()[
|
||||
self.assertEqual(context.NovaComputeLibvirtContext()()[
|
||||
'live_migration_uri'], 'qemu+ssh://%s/system')
|
||||
|
||||
def test_libvirt_context_with_migration_network(self):
|
||||
@ -597,8 +597,8 @@ class NovaComputeContextTests(CharmTestCase):
|
||||
self.get_relation_ip.assert_called_with('migration',
|
||||
cidr_network=None)
|
||||
self.assertTrue('live_migration_uri' not in libvirt_context.keys())
|
||||
self.assertEquals(libvirt_context['live_migration_scheme'], 'ssh')
|
||||
self.assertEquals(libvirt_context['live_migration_inbound_addr'],
|
||||
self.assertEqual(libvirt_context['live_migration_scheme'], 'ssh')
|
||||
self.assertEqual(libvirt_context['live_migration_inbound_addr'],
|
||||
'10.5.0.5')
|
||||
|
||||
def test_libvirt_bin_context_migration_tcp_listen_with_auto_converge(self):
|
||||
|
Loading…
Reference in New Issue
Block a user