blob: 291c8e437e29afc5fd116096a0ceff0b0e9db2b4 [file] [log] [blame]
Jay Pipes13b479b2012-06-11 14:52:27 -04001# vim: tabstop=4 shiftwidth=4 softtabstop=4
2
3# Copyright 2012 OpenStack, LLC
4# All Rights Reserved.
5#
6# Licensed under the Apache License, Version 2.0 (the "License"); you may
7# not use this file except in compliance with the License. You may obtain
8# a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15# License for the specific language governing permissions and limitations
16# under the License.
17
Jay Pipes13b479b2012-06-11 14:52:27 -040018
Sean Dague1937d092013-05-17 16:36:38 -040019from tempest.api.compute import base
Chris Yeoh9465b0b2013-02-09 22:19:15 +103020from tempest.test import attr
Jay Pipes13b479b2012-06-11 14:52:27 -040021
22
Attila Fazekas19044d52013-02-16 07:35:06 +010023class ExtensionsTestJSON(base.BaseComputeTest):
24 _interface = 'json'
Jay Pipes13b479b2012-06-11 14:52:27 -040025
Giulio Fidenteba3985a2013-05-29 01:46:36 +020026 @attr(type='gate')
Jay Pipes13b479b2012-06-11 14:52:27 -040027 def test_list_extensions(self):
Sean Dague4dd2c0b2013-01-03 17:50:28 -050028 # List of all extensions
Attila Fazekas19044d52013-02-16 07:35:06 +010029 resp, extensions = self.extensions_client.list_extensions()
Jay Pipes13b479b2012-06-11 14:52:27 -040030 self.assertTrue("extensions" in extensions)
31 self.assertEqual(200, resp.status)
Tiago Mello89126c32012-08-27 11:14:03 -030032
33
Attila Fazekas19044d52013-02-16 07:35:06 +010034class ExtensionsTestXML(ExtensionsTestJSON):
35 _interface = 'xml'