2014-02-25 09:19:22 +02:00
|
|
|
# Copyright 2014 mirantis Inc.
|
2014-01-14 15:46:34 +02:00
|
|
|
# All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
|
|
# not use this file except in compliance with the License. You may obtain
|
|
|
|
# a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
# License for the specific language governing permissions and limitations
|
|
|
|
# under the License.
|
|
|
|
|
2016-06-14 13:01:00 +03:00
|
|
|
from tempest import test
|
2015-07-15 09:18:35 +02:00
|
|
|
|
|
|
|
from manila_tempest_tests.tests.api import base
|
2014-02-25 09:19:22 +02:00
|
|
|
|
2014-01-14 15:46:34 +02:00
|
|
|
|
2014-02-25 09:19:22 +02:00
|
|
|
class ExtensionsTest(base.BaseSharesTest):
|
2014-01-14 15:46:34 +02:00
|
|
|
|
2016-06-01 18:30:12 +03:00
|
|
|
@test.attr(type=[base.TAG_POSITIVE, base.TAG_API])
|
2014-02-25 09:19:22 +02:00
|
|
|
def test_extensions(self):
|
2014-01-14 15:46:34 +02:00
|
|
|
|
2014-02-25 09:19:22 +02:00
|
|
|
# get extensions
|
2015-04-14 14:15:01 +03:00
|
|
|
extensions = self.shares_client.list_extensions()
|
2014-01-14 15:46:34 +02:00
|
|
|
|
2014-02-25 09:19:22 +02:00
|
|
|
# verify response
|
2015-04-13 15:43:47 +03:00
|
|
|
keys = ["alias", "updated", "name", "description"]
|
2014-02-25 09:19:22 +02:00
|
|
|
[self.assertIn(key, ext.keys()) for ext in extensions for key in keys]
|