~ubuntu-branches/ubuntu/trusty/quantum/trusty

« back to all changes in this revision

Viewing changes to quantum/tests/unit/openvswitch/test_openvswitch_plugin.py

  • Committer: Package Import Robot
  • Author(s): James Page, Chuck Short, James Page
  • Date: 2013-03-15 09:37:28 UTC
  • mfrom: (2.1.19)
  • Revision ID: package-import@ubuntu.com-20130315093728-frw2n18bm2j4hzv5
Tags: 1:2013.1~rc1-0ubuntu1
[ Chuck Short ]
* debian/patches/fix-quantum-configuration.patch: Refreshed
* debian/control: Add python-testtools and python-fixtures a build-dep.
* debian/control: Drop python-gflags no longer needed.
* debian/control: Drop python-unittest2 no longer needed.

[ James Page ]
* New upstream release candidate.
* d/watch: Update uversionmangle to deal with upstream versioning
  changes, remove tarballs.openstack.org.
* d/rules: Disable PEP-8 tests until fixed upstream.
* d/control,quantum-plugin-midonet.install: Added plugin package for
  Midonet. 
* d/control,quantum-lbaas-*: Added Load Balancing as-a Service agent
  package. 
* d/control: Bumped Standards-Version, no changes.
* d/p/fix-quantum-configuration.patch: Added midonet sqlite path to
  patch, fixed up linuxbridge path. 
* d/p/fix-ubuntu-tests.patch: Re-added skipTest for linuxbridge tests
  that attempt to setup udev monitors.
* d/quantum-metadata-agent.*: Refactor metadata-agent into separate
  package and add Depends from quantum-l3-agent and quantum-dhcp-agent.
* d/quantum-plugin-nicira.install: Add quantum-check-nvp-config binary.
* d/control: Add iputils-arping to quantum-l3-agent Depends (LP: #1153066).
* d/control: python-oslo-config -> python-oslo.config.
* d/control: Bump python-quantumclient >= 1:2.2.0 inline with upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (c) 2012 OpenStack, LLC.
 
1
# Copyright (c) 2012 OpenStack Foundation.
2
2
#
3
3
# Licensed under the Apache License, Version 2.0 (the "License");
4
4
# you may not use this file except in compliance with the License.
16
16
from quantum.extensions import portbindings
17
17
from quantum.tests.unit import _test_extension_portbindings as test_bindings
18
18
from quantum.tests.unit import test_db_plugin as test_plugin
 
19
from quantum.tests.unit import test_security_groups_rpc as test_sg_rpc
19
20
 
20
21
 
21
22
class OpenvswitchPluginV2TestCase(test_plugin.QuantumDbPluginV2TestCase):
39
40
 
40
41
 
41
42
class TestOpenvswitchPortsV2(test_plugin.TestPortsV2,
42
 
                             OpenvswitchPluginV2TestCase,
43
 
                             test_bindings.PortBindingsTestCase):
44
 
 
45
 
    VIF_TYPE = portbindings.VIF_TYPE_OVS
46
 
    HAS_PORT_FILTER = True
 
43
                             OpenvswitchPluginV2TestCase):
47
44
 
48
45
    def test_update_port_status_build(self):
49
46
        with self.port() as port:
54
51
class TestOpenvswitchNetworksV2(test_plugin.TestNetworksV2,
55
52
                                OpenvswitchPluginV2TestCase):
56
53
    pass
 
54
 
 
55
 
 
56
class TestOpenvswitchPortBinding(OpenvswitchPluginV2TestCase,
 
57
                                 test_bindings.PortBindingsTestCase):
 
58
    VIF_TYPE = portbindings.VIF_TYPE_OVS
 
59
    HAS_PORT_FILTER = True
 
60
    FIREWALL_DRIVER = test_sg_rpc.FIREWALL_HYBRID_DRIVER
 
61
 
 
62
    def setUp(self, firewall_driver=None):
 
63
        test_sg_rpc.set_firewall_driver(self.FIREWALL_DRIVER)
 
64
        super(TestOpenvswitchPortBinding, self).setUp()
 
65
 
 
66
 
 
67
class TestOpenvswitchPortBindingNoSG(TestOpenvswitchPortBinding):
 
68
    HAS_PORT_FILTER = False
 
69
    FIREWALL_DRIVER = test_sg_rpc.FIREWALL_NOOP_DRIVER