~ubuntu-branches/ubuntu/raring/quantum/raring-proposed

« back to all changes in this revision

Viewing changes to quantum/tests/unit/test_config.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short, Chuck Short, Yolanda Robla, James Page, Maru Newby
  • Date: 2013-01-11 09:14:35 UTC
  • mfrom: (2.1.17)
  • Revision ID: package-import@ubuntu.com-20130111091435-vaup7dwmtmajy5oe
Tags: 2013.1~g2-0ubuntu1
[ Chuck Short ]
* New upstream version. 
* debian/patches/fix-quantum-configuration.patch: Refreshed.

[ Yolanda Robla ]
* debian/quantum-l3-agent.quantum-metadata-agent.upstart: Add
  upstart configuration for Metadata Agent.
* debian/quantum-l3-agent.install: Added quantum-ns-metadata-proxy,
  quantum-metadata-agent and metadata_agent.ini.
* debian/patches/fix-quantum-configuration.patch: Update rootwrap
  configuration in metadata_agent.ini file.
* debian/changelog: Updated package version
* d/p/fix-quantum-configuration.patch: refresh patches

[ James Page ]
* d/*.install: Install entry points from bin directory instead
  of easy-install ones generated during the package build process
  (LP: #1085038).
* d/control: Drop BD on python-dev-all; its not required.
* d/rules: Install multiple upstart configurations for quantum-l3-agent.
* d/control: Tidy package descriptions.
* d/*.postrm: Drop as debhelper will generate update-rc.d calls in
  maintainer scripts if required.
* d/quantum-common.postinst: Tweak permissions setting so that /etc/quantum
  is not owned/writable by the quantum user, ensure that /etc/quantum/rootwrap*
  is owned by root:root.
* d/*agent*.postinst: Dropped as permissions now correctly set in
  quantum-common.
* d/patches/fix-quantum-configuration.patch: Re-add dropped fixes rootwrap and
  sqlite defaults for all plugins.
* d/control: Added new BD on alembic (>= 0.4.1~), version python-mock >= 1.0b1.

[ Maru Newby ]
* debian/control: Remove unnecessary openvswitch-vswitch dependency
  from quantum-plugin-openvswitch (LP: #1076747).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (c) 2012 OpenStack, LLC.
 
2
#
 
3
# Licensed under the Apache License, Version 2.0 (the "License");
 
4
# you may not use this file except in compliance with the License.
 
5
# You may obtain a copy of the License at
 
6
#
 
7
#    http://www.apache.org/licenses/LICENSE-2.0
 
8
#
 
9
# Unless required by applicable law or agreed to in writing, software
 
10
# distributed under the License is distributed on an "AS IS" BASIS,
 
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 
12
# implied.
 
13
# See the License for the specific language governing permissions and
 
14
# limitations under the License.
 
15
 
 
16
import os
 
17
import unittest
 
18
 
 
19
from quantum.common import config
 
20
from quantum.openstack.common import cfg
 
21
 
 
22
 
 
23
class ConfigurationTest(unittest.TestCase):
 
24
 
 
25
    def test_defaults(self):
 
26
        self.assertEqual('0.0.0.0', cfg.CONF.bind_host)
 
27
        self.assertEqual(9696, cfg.CONF.bind_port)
 
28
        self.assertEqual('api-paste.ini', cfg.CONF.api_paste_config)
 
29
        self.assertEqual('', cfg.CONF.api_extensions_path)
 
30
        self.assertEqual('policy.json', cfg.CONF.policy_file)
 
31
        self.assertEqual('keystone', cfg.CONF.auth_strategy)
 
32
        self.assertEqual(None, cfg.CONF.core_plugin)
 
33
        self.assertEqual(0, len(cfg.CONF.service_plugins))
 
34
        self.assertEqual('fa:16:3e:00:00:00', cfg.CONF.base_mac)
 
35
        self.assertEqual(16, cfg.CONF.mac_generation_retries)
 
36
        self.assertTrue(cfg.CONF.allow_bulk)
 
37
        self.assertEqual(5, cfg.CONF.max_dns_nameservers)
 
38
        self.assertEqual(20, cfg.CONF.max_subnet_host_routes)
 
39
        self.assertEqual(os.path.abspath('../../..'),
 
40
                         cfg.CONF.state_path)
 
41
        self.assertEqual(120, cfg.CONF.dhcp_lease_duration)
 
42
        self.assertFalse(cfg.CONF.allow_overlapping_ips)
 
43
        self.assertEqual('quantum', cfg.CONF.control_exchange)