Delete src/tests directory
This commit is contained in:
parent
1381290f3d
commit
1f45c3ef5e
@ -1,50 +0,0 @@
|
|||||||
series: xenial
|
|
||||||
comment:
|
|
||||||
- 'machines section to decide order of deployment. database sooner = faster'
|
|
||||||
machines:
|
|
||||||
'0':
|
|
||||||
constraints: mem=3072M
|
|
||||||
'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-dell_emc_powerstore:storage-backend
|
|
||||||
applications:
|
|
||||||
mysql:
|
|
||||||
charm: cs:~openstack-charmers-next/percona-cluster
|
|
||||||
num_units: 1
|
|
||||||
to:
|
|
||||||
- '0'
|
|
||||||
keystone:
|
|
||||||
charm: cs:~openstack-charmers-next/keystone
|
|
||||||
num_units: 1
|
|
||||||
options:
|
|
||||||
openstack-origin: cloud:xenial-victoria
|
|
||||||
to:
|
|
||||||
- '1'
|
|
||||||
cinder:
|
|
||||||
charm: cs:~openstack-charmers-next/cinder
|
|
||||||
num_units: 1
|
|
||||||
options:
|
|
||||||
openstack-origin: cloud:xenial-victoria
|
|
||||||
to:
|
|
||||||
- '2'
|
|
||||||
cinder-dell_emc_powerstore:
|
|
||||||
series: xenial
|
|
||||||
charm: cinder-dell_emc_powerstore
|
|
||||||
options:
|
|
||||||
# Add config options here
|
|
||||||
rabbitmq-server:
|
|
||||||
charm: cs:~openstack-charmers-next/rabbitmq-server
|
|
||||||
num_units: 1
|
|
||||||
to:
|
|
||||||
- '3'
|
|
@ -1,9 +0,0 @@
|
|||||||
charm_name: cinder-dell_emc_powerstore
|
|
||||||
tests:
|
|
||||||
- tests.tests_cinder_dell_emc_powerstore.CinderDellEMCPowerStoreTest
|
|
||||||
configure:
|
|
||||||
- zaza.openstack.charm_tests.keystone.setup.add_demo_user
|
|
||||||
gate_bundles:
|
|
||||||
- xenial-victoria
|
|
||||||
smoke_bundles:
|
|
||||||
- xenial-victoria
|
|
@ -1,70 +0,0 @@
|
|||||||
#!/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 cinder-dell_emc_powerstore testing."""
|
|
||||||
|
|
||||||
import logging
|
|
||||||
import uuid
|
|
||||||
|
|
||||||
import zaza.model
|
|
||||||
import zaza.openstack.charm_tests.test_utils as test_utils
|
|
||||||
import zaza.openstack.utilities.openstack as openstack_utils
|
|
||||||
|
|
||||||
|
|
||||||
class CinderDellEMCPowerStoreTest(test_utils.OpenStackBaseTest):
|
|
||||||
"""Encapsulate DellEMCPowerStore tests."""
|
|
||||||
|
|
||||||
@classmethod
|
|
||||||
def setUpClass(cls):
|
|
||||||
"""Run class setup for running tests."""
|
|
||||||
super(CinderDellEMCPowerStoreTest, cls).setUpClass()
|
|
||||||
cls.keystone_session = openstack_utils.get_overcloud_keystone_session()
|
|
||||||
cls.model_name = zaza.model.get_juju_model()
|
|
||||||
cls.cinder_client = openstack_utils.get_cinder_session_client(
|
|
||||||
cls.keystone_session)
|
|
||||||
|
|
||||||
def test_cinder_config(self):
|
|
||||||
logging.info('dell_emc_powerstore')
|
|
||||||
expected_contents = {
|
|
||||||
'cinder-dell_emc_powerstore': {
|
|
||||||
'iscsi_helper': ['tgtadm'],
|
|
||||||
'volume_dd_blocksize': ['512']}}
|
|
||||||
|
|
||||||
zaza.model.run_on_leader(
|
|
||||||
'cinder',
|
|
||||||
'sudo cp /etc/cinder/cinder.conf /tmp/',
|
|
||||||
model_name=self.model_name)
|
|
||||||
zaza.model.block_until_oslo_config_entries_match(
|
|
||||||
'cinder',
|
|
||||||
'/tmp/cinder.conf',
|
|
||||||
expected_contents,
|
|
||||||
model_name=self.model_name,
|
|
||||||
timeout=2)
|
|
||||||
|
|
||||||
def test_create_volume(self):
|
|
||||||
test_vol_name = "zaza{}".format(uuid.uuid1().fields[0])
|
|
||||||
vol_new = self.cinder_client.volumes.create(
|
|
||||||
name=test_vol_name,
|
|
||||||
size=2)
|
|
||||||
openstack_utils.resource_reaches_status(
|
|
||||||
self.cinder_client.volumes,
|
|
||||||
vol_new.id,
|
|
||||||
expected_status='available')
|
|
||||||
test_vol = self.cinder_client.volumes.find(name=test_vol_name)
|
|
||||||
self.assertEqual(
|
|
||||||
getattr(test_vol, 'os-vol-host-attr:host').split('#')[0],
|
|
||||||
'cinder@cinder-dell_emc_powerstore')
|
|
||||||
self.cinder_client.volumes.delete(vol_new)
|
|
Loading…
Reference in New Issue
Block a user