9901248f79
The current Manila Ganesha `test_manila_share` had a lot of functionality that can be re-used to any configured Manila backend. It's a good idea to have this functionality generalized into `zaza.manila.tests.ManilaBaseTest`, which can be reused for any tested Manila backend.
36 lines
1.2 KiB
Python
36 lines
1.2 KiB
Python
#!/usr/bin/env python3
|
|
|
|
# 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.
|
|
|
|
"""Encapsulate Manila Ganesha testing."""
|
|
|
|
from zaza.openstack.charm_tests.manila_ganesha.setup import (
|
|
MANILA_GANESHA_TYPE_NAME,
|
|
)
|
|
|
|
import zaza.openstack.charm_tests.manila.tests as manila_tests
|
|
|
|
|
|
class ManilaGaneshaTests(manila_tests.ManilaBaseTest):
|
|
"""Encapsulate Manila Ganesha tests."""
|
|
|
|
@classmethod
|
|
def setUpClass(cls):
|
|
"""Run class setup for running tests."""
|
|
super(ManilaGaneshaTests, cls).setUpClass()
|
|
cls.share_name = 'cephnfsshare1'
|
|
cls.share_type_name = MANILA_GANESHA_TYPE_NAME
|
|
cls.share_protocol = 'nfs'
|