~ubuntu-branches/ubuntu/vivid/neutron/vivid-proposed

« back to all changes in this revision

Viewing changes to neutron/tests/tempest/api/network/test_service_type_management.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2015-04-15 13:59:07 UTC
  • mfrom: (1.1.22)
  • Revision ID: package-import@ubuntu.com-20150415135907-z10fr18evag1ozq3
Tags: 1:2015.1~rc1-0ubuntu1
* New upstream milestone release:
  - debian/control: Update dependencies. 
  - debian/patches/disable-udev-tests.patch: Dropped no longer needed.
  - debian/patches/fixup-driver-test-execution.patch: Dropped no longer needed.
  - debian/patches/skip-iptest.patch: Skip failing test
  - debian/neutron-plugin-openvswitch-agent.install: Added neutron-ovsvapp-agent binary.
  - debian/neutron-plugin-cisco.install: Added neutron-cisco-apic-service-agent and 
    neutron-cisco-apic-host-agent

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#    Licensed under the Apache License, Version 2.0 (the "License"); you may
2
 
#    not use this file except in compliance with the License. You may obtain
3
 
#    a copy of the License at
4
 
#
5
 
#         http://www.apache.org/licenses/LICENSE-2.0
6
 
#
7
 
#    Unless required by applicable law or agreed to in writing, software
8
 
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9
 
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10
 
#    License for the specific language governing permissions and limitations
11
 
#    under the License.
12
 
 
13
 
from tempest_lib import decorators
14
 
 
15
 
from neutron.tests.tempest.api.network import base
16
 
from neutron.tests.tempest import test
17
 
 
18
 
 
19
 
class ServiceTypeManagementTestJSON(base.BaseNetworkTest):
20
 
 
21
 
    @classmethod
22
 
    def resource_setup(cls):
23
 
        super(ServiceTypeManagementTestJSON, cls).resource_setup()
24
 
        if not test.is_extension_enabled('service-type', 'network'):
25
 
            msg = "Neutron Service Type Management not enabled."
26
 
            raise cls.skipException(msg)
27
 
 
28
 
    @decorators.skip_because(bug="1400370")
29
 
    @test.attr(type='smoke')
30
 
    @test.idempotent_id('2cbbeea9-f010-40f6-8df5-4eaa0c918ea6')
31
 
    def test_service_provider_list(self):
32
 
        body = self.client.list_service_providers()
33
 
        self.assertIsInstance(body['service_providers'], list)