update rename
This commit is contained in:
parent
2416410bda
commit
e4dd48b1d9
|
@ -5,7 +5,7 @@ import charms_openstack
|
|||
# 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
|
||||
# for the charm.
|
||||
import charm.openstack.cinder_backup_swift # noqa
|
||||
import charm.openstack.cinder_backup_swift_proxy # noqa
|
||||
import charms.reactive.flags as flags
|
||||
from charms.reactive.relations import (
|
||||
endpoint_from_flag,
|
||||
|
|
|
@ -6,7 +6,7 @@ smoke_bundles:
|
|||
- bionic-queens-swift-v3
|
||||
- bionic-queens-swift-v2
|
||||
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:
|
||||
- zaza.openstack.charm_tests.cinder_backup_swift.tests.CinderBackupSwiftTest
|
||||
- zaza.openstack.charm_tests.cinder_backup_swift_proxy.tests.CinderBackupSwiftTest
|
||||
|
||||
|
|
|
@ -14,19 +14,19 @@
|
|||
from __future__ import absolute_import
|
||||
from __future__ import print_function
|
||||
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):
|
||||
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
self.patch_release(cinder_backup_swift.CinderBackupSwiftCharm.release)
|
||||
self.patch_release(cinder_backup_swift_proxy.CinderBackupSwiftCharm.release)
|
||||
|
||||
|
||||
class TestCinderBackupSwiftCharm(Helper):
|
||||
|
||||
def test_swift_backup_name(self):
|
||||
c = cinder_backup_swift.CinderBackupSwiftCharm()
|
||||
c = cinder_backup_swift_proxy.CinderBackupSwiftCharm()
|
||||
result = c.get_swift_backup_config()
|
||||
self.assertEqual(result[0], 'cinder-backup')
|
||||
|
|
Loading…
Reference in New Issue