rsd-virt-for-nova/rsd_virt_for_nova/tests/conf/test_conf.py
Helena McGough bdc51defdc First implementation of the new rsd-virt-for-nova driver
- Includes driver code
 - Some unit tests
 - Some documentation
 - Devstack installation plugin

Change-Id: Ie3b2483fbf587a037a3fd9d6af1bd64fa5635ed2
Signed-off-by: Helena McGough <helena.mcgough@intel.com>
2019-02-25 14:29:05 +00:00

43 lines
1.3 KiB
Python

# 2017 - 2018 Intel Corporation. All rights reserved.
#
# 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.
"""Tests for the RSD configuration options."""
from nova import test
from rsd_virt_for_nova import conf as cfg
CONF = cfg.CONF
class TestConf(test.NoDBTestCase):
"""Test class for configurations."""
def setUp(self):
"""Initialize configuration test class."""
super(TestConf, self).setUp()
def test_conf(self):
"""Test the default rsd config values."""
# Try an option from each grouping of static options
# PODM IP
self.assertEqual('localhost', CONF.rsd.podm_ip)
# PODM username
self.assertEqual('admin', CONF.rsd.podm_user)
# PODM password
self.assertEqual('admin', CONF.rsd.podm_password)
# PODM port
self.assertEqual(8443, CONF.rsd.podm_port)