bc908fb587
The ``nova-compute`` charm gates enablement of the local Nova metadata service on presence of the ``metadata-shared-secret`` key in the relation data in the subordinate relation with ``neutron-plugin`` interface. This is implemented in the classic ``neutron-openvswitch`` charm today. Add the bits necessary for a reactive charm to participate in this part of the relation. Also adds units tests to the interface. Change-Id: I358e60c40a7f7c0cd33b31f2b7a8c58d6cb83326
18 lines
659 B
Python
18 lines
659 B
Python
# Copyright 2019 Canonical Ltd
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
import charms_openstack.test_mocks
|
|
|
|
|
|
charms_openstack.test_mocks.mock_charmhelpers()
|