update rename

This commit is contained in:
Andrew McLeod
2019-11-28 15:55:14 +01:00
parent 2416410bda
commit e4dd48b1d9
3 changed files with 6 additions and 6 deletions

View File

@@ -5,7 +5,7 @@ import charms_openstack
# This charm's library contains all of the handler code associated with # This charm's library contains all of the handler code associated with
# cinder-backup-swift-proxy -- we need to import it to get the definitions # cinder-backup-swift-proxy -- we need to import it to get the definitions
# for the charm. # for the charm.
import charm.openstack.cinder_backup_swift # noqa import charm.openstack.cinder_backup_swift_proxy # noqa
import charms.reactive.flags as flags import charms.reactive.flags as flags
from charms.reactive.relations import ( from charms.reactive.relations import (
endpoint_from_flag, endpoint_from_flag,

View File

@@ -6,7 +6,7 @@ smoke_bundles:
- bionic-queens-swift-v3 - bionic-queens-swift-v3
- bionic-queens-swift-v2 - bionic-queens-swift-v2
configure: configure:
- zaza.openstack.charm_tests.cinder_backup_swift.setup.configure_cinder_backup - zaza.openstack.charm_tests.cinder_backup_swift_proxy.setup.configure_cinder_backup
tests: tests:
- zaza.openstack.charm_tests.cinder_backup_swift.tests.CinderBackupSwiftTest - zaza.openstack.charm_tests.cinder_backup_swift_proxy.tests.CinderBackupSwiftTest

View File

@@ -14,19 +14,19 @@
from __future__ import absolute_import from __future__ import absolute_import
from __future__ import print_function from __future__ import print_function
import charms_openstack.test_utils as test_utils import charms_openstack.test_utils as test_utils
import charm.openstack.cinder_backup_swift as cinder_backup_swift import charm.openstack.cinder_backup_swift_proxy as cinder_backup_swift_proxy
class Helper(test_utils.PatchHelper): class Helper(test_utils.PatchHelper):
def setUp(self): def setUp(self):
super().setUp() super().setUp()
self.patch_release(cinder_backup_swift.CinderBackupSwiftCharm.release) self.patch_release(cinder_backup_swift_proxy.CinderBackupSwiftCharm.release)
class TestCinderBackupSwiftCharm(Helper): class TestCinderBackupSwiftCharm(Helper):
def test_swift_backup_name(self): def test_swift_backup_name(self):
c = cinder_backup_swift.CinderBackupSwiftCharm() c = cinder_backup_swift_proxy.CinderBackupSwiftCharm()
result = c.get_swift_backup_config() result = c.get_swift_backup_config()
self.assertEqual(result[0], 'cinder-backup') self.assertEqual(result[0], 'cinder-backup')