Unit test fix
This commit is contained in:
parent
4383eb6d58
commit
85c0739df1
@ -45,7 +45,7 @@ applications:
|
||||
subnet-label: '*'
|
||||
verify-cert-path: 'None'
|
||||
verify-cert: 'False'
|
||||
# Add config options here
|
||||
|
||||
rabbitmq-server:
|
||||
charm: cs:~openstack-charmers-next/rabbitmq-server
|
||||
num_units: 1
|
||||
|
@ -7,17 +7,7 @@ machines:
|
||||
'1':
|
||||
'2':
|
||||
'3':
|
||||
relations:
|
||||
- - keystone:shared-db
|
||||
- mysql:shared-db
|
||||
- - cinder:shared-db
|
||||
- mysql:shared-db
|
||||
- - cinder:identity-service
|
||||
- keystone:identity-service
|
||||
- - cinder:amqp
|
||||
- rabbitmq-server:amqp
|
||||
- - cinder:storage-backend
|
||||
- cinder-nimblestorage:storage-backend
|
||||
|
||||
applications:
|
||||
mysql:
|
||||
charm: cs:~openstack-charmers-next/percona-cluster
|
||||
@ -55,9 +45,16 @@ applications:
|
||||
subnet-label: '*'
|
||||
verify-cert-path: 'None'
|
||||
verify-cert: 'False'
|
||||
# Add config options here
|
||||
|
||||
rabbitmq-server:
|
||||
charm: cs:~openstack-charmers-next/rabbitmq-server
|
||||
num_units: 1
|
||||
to:
|
||||
- '3'
|
||||
|
||||
relations:
|
||||
- [ keystone:shared-db, mysql:shared-db ]
|
||||
- [ cinder:shared-db, mysql:shared-db ]
|
||||
- [ cinder:identity-service, keystone:identity-service ]
|
||||
- [ cinder:amqp, rabbitmq-server:amqp ]
|
||||
- [ cinder:storage-backend, cinder-nimblestorage:storage-backend ]
|
||||
|
@ -13,15 +13,15 @@
|
||||
# limitations under the License.
|
||||
|
||||
import unittest
|
||||
from src.charm import CinderSolidfireCharm
|
||||
from src.charm import CinderNimblestorageCharm
|
||||
from ops.model import ActiveStatus
|
||||
from ops.testing import Harness
|
||||
|
||||
|
||||
class TestCinderSolidfireCharm(unittest.TestCase):
|
||||
class TestCinderNimblestorageCharm(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.harness = Harness(CinderSolidfireCharm)
|
||||
self.harness = Harness(CinderNimblestorageCharm)
|
||||
self.addCleanup(self.harness.cleanup)
|
||||
self.harness.begin()
|
||||
self.harness.set_leader(True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user