pypi name is Tempest, not tempest
For SUSE and RDO, Tempest should be translated to openstack-tempest. Change-Id: Idd2b78b1932800a40c7367e2d10155570e799db0
This commit is contained in:
parent
71b55a998a
commit
01c70de43d
|
@ -72,7 +72,7 @@ def default_suse_tr(mod):
|
|||
|
||||
|
||||
def openstack_prefix_tr(mod):
|
||||
return 'openstack-' + mod
|
||||
return 'openstack-' + mod.lower()
|
||||
|
||||
|
||||
def rdo_horizon_plugins_tr(mod):
|
||||
|
@ -117,7 +117,7 @@ RDO_PKG_MAP = [
|
|||
'ironic-python-agent', 'keystone', 'magnum', 'manila',
|
||||
'mistral', 'murano', 'neutron', 'neutron-fwaas', 'neutron-lbaas',
|
||||
'neutron-vpnaas', 'nova', 'octavia', 'rally', 'sahara', 'swift',
|
||||
'tempest', 'trove', 'tuskar', 'vitrage', 'zaqar'],
|
||||
'Tempest', 'trove', 'tuskar', 'vitrage', 'zaqar'],
|
||||
pkgfun=openstack_prefix_tr),
|
||||
# Horizon plugins (normalized to openstack-<project>-ui)
|
||||
RegexRule(pattern=r'\w+-(dashboard|ui)', pkgfun=rdo_horizon_plugins_tr)
|
||||
|
@ -131,7 +131,7 @@ SUSE_PKG_MAP = [
|
|||
mods=['ceilometer', 'cinder', 'designate', 'glance',
|
||||
'heat', 'ironic', 'keystone', 'manila',
|
||||
'neutron', 'nova', 'rally', 'sahara', 'swift',
|
||||
'tempest', 'trove', 'tuskar', 'zaqar'],
|
||||
'Tempest', 'trove', 'tuskar', 'zaqar'],
|
||||
pkgfun=openstack_prefix_tr),
|
||||
# OpenStack clients
|
||||
MultiRule(
|
||||
|
|
2
tests.py
2
tests.py
|
@ -45,6 +45,8 @@ class Pymod2PkgTests(unittest.TestCase):
|
|||
self.assertEqual(pymod2pkg.module2package('python-neutronclient',
|
||||
'suse'),
|
||||
'python-neutronclient')
|
||||
self.assertEqual(pymod2pkg.module2package('Tempest', 'suse'),
|
||||
'openstack-tempest')
|
||||
|
||||
def test_default_translation_rdo(self):
|
||||
self.assertEqual(pymod2pkg.module2package('oslo.db', 'fedora'),
|
||||
|
|
Loading…
Reference in New Issue