fix unit tests
This commit is contained in:
parent
0c2b748ead
commit
30ad5cf558
|
@ -26,6 +26,7 @@ import charm.openstack.neutron_arista as arista # noqa
|
|||
|
||||
use_defaults('update-status')
|
||||
|
||||
|
||||
@reactive.when_not('arista-package.installed')
|
||||
@reactive.when('neutron-plugin-api-subordinate.available')
|
||||
def install_arista():
|
||||
|
@ -33,6 +34,7 @@ def install_arista():
|
|||
charm_class.install()
|
||||
reactive.set_state('arista-package.installed')
|
||||
|
||||
|
||||
@reactive.when('neutron-plugin-api-subordinate.connected')
|
||||
def configure_principle(api_principle):
|
||||
inject_config = {
|
||||
|
|
|
@ -15,6 +15,8 @@ class TestRegisteredHooks(test_utils.TestRegisteredHooks):
|
|||
'when': {
|
||||
'configure_principle': (
|
||||
'neutron-plugin-api-subordinate.connected', ),
|
||||
'install_arista': (
|
||||
'neutron-plugin-api-subordinate.available', )
|
||||
}
|
||||
}
|
||||
# test that the hooks were registered via the
|
||||
|
|
Loading…
Reference in New Issue