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
5
# http://www.apache.org/licenses/LICENSE-2.0
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
13
from tempest_lib import decorators
15
from neutron.tests.tempest.api.network import base
16
from neutron.tests.tempest import test
19
class ServiceTypeManagementTestJSON(base.BaseNetworkTest):
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)
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)