blob: fb2f4d6eebc112e3a8559622a0941e0e5b1e7fce [file] [log] [blame]
Ihar Hrachyshka3cf4e7f2016-06-14 11:40:19 +02001# 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
Sławek Kapłońskic0caa2e2017-02-25 10:11:32 +000013from tempest.lib import decorators
Ihar Hrachyshka3cf4e7f2016-06-14 11:40:19 +020014
Chandan Kumar667d3d32017-09-22 12:24:06 +053015from neutron_tempest_plugin.api import base
Ihar Hrachyshka3cf4e7f2016-06-14 11:40:19 +020016
17
18class SubnetsSearchCriteriaTest(base.BaseSearchCriteriaTest):
19
20 resource = 'subnet'
21
22 list_kwargs = {'shared': False}
23
24 @classmethod
25 def resource_setup(cls):
26 super(SubnetsSearchCriteriaTest, cls).resource_setup()
27 net = cls.create_network(network_name='subnet-search-test-net')
28 for name in cls.resource_names:
29 cls.create_subnet(net, name=name)
30
Sławek Kapłońskic0caa2e2017-02-25 10:11:32 +000031 @decorators.idempotent_id('d2d61995-5dd5-4b93-bce7-3edefdb79563')
Ihar Hrachyshka3cf4e7f2016-06-14 11:40:19 +020032 def test_list_sorts_asc(self):
33 self._test_list_sorts_asc()
34
Sławek Kapłońskic0caa2e2017-02-25 10:11:32 +000035 @decorators.idempotent_id('c3c6b0af-c4ac-4da0-b568-8d08ae550604')
Ihar Hrachyshka3cf4e7f2016-06-14 11:40:19 +020036 def test_list_sorts_desc(self):
37 self._test_list_sorts_desc()
38
Sławek Kapłońskic0caa2e2017-02-25 10:11:32 +000039 @decorators.idempotent_id('b93063b3-f713-406e-bf93-e5738e09153c')
Ihar Hrachyshka3cf4e7f2016-06-14 11:40:19 +020040 def test_list_pagination(self):
41 self._test_list_pagination()
42
Sławek Kapłońskic0caa2e2017-02-25 10:11:32 +000043 @decorators.idempotent_id('2ddd9aa6-de28-410f-9cbc-ce752893c407')
Ihar Hrachyshka3cf4e7f2016-06-14 11:40:19 +020044 def test_list_pagination_with_marker(self):
45 self._test_list_pagination_with_marker()
46
Sławek Kapłońskic0caa2e2017-02-25 10:11:32 +000047 @decorators.idempotent_id('351183ef-6ed9-4d71-a9f2-a5ac049bd7ea')
Ihar Hrachyshka3cf4e7f2016-06-14 11:40:19 +020048 def test_list_pagination_with_href_links(self):
49 self._test_list_pagination_with_href_links()
50
Sławek Kapłońskic0caa2e2017-02-25 10:11:32 +000051 @decorators.idempotent_id('dfaa20ca-6d84-4f26-962f-2fee4d247cd9')
Ihar Hrachyshka3cf4e7f2016-06-14 11:40:19 +020052 def test_list_pagination_page_reverse_asc(self):
53 self._test_list_pagination_page_reverse_asc()
54
Sławek Kapłońskic0caa2e2017-02-25 10:11:32 +000055 @decorators.idempotent_id('40552213-3e12-4d6a-86f3-dda92f3de88c')
Ihar Hrachyshka3cf4e7f2016-06-14 11:40:19 +020056 def test_list_pagination_page_reverse_desc(self):
57 self._test_list_pagination_page_reverse_desc()
58
Sławek Kapłońskic0caa2e2017-02-25 10:11:32 +000059 @decorators.idempotent_id('3cea9053-a731-4480-93ee-19b2c28a9ce4')
Ihar Hrachyshka3cf4e7f2016-06-14 11:40:19 +020060 def test_list_pagination_page_reverse_with_href_links(self):
61 self._test_list_pagination_page_reverse_with_href_links()
62
Sławek Kapłońskic0caa2e2017-02-25 10:11:32 +000063 @decorators.idempotent_id('d851937c-9821-4b46-9d18-43e9077ecac0')
Ihar Hrachyshka3cf4e7f2016-06-14 11:40:19 +020064 def test_list_no_pagination_limit_0(self):
65 self._test_list_no_pagination_limit_0()
Victor Morales1be97b42016-09-05 08:50:06 -050066
Sławek Kapłońskic0caa2e2017-02-25 10:11:32 +000067 @decorators.idempotent_id('c0f9280b-9d81-4728-a967-6be22659d4c8')
Victor Morales1be97b42016-09-05 08:50:06 -050068 def test_list_validation_filters(self):
69 self._test_list_validation_filters()