blob: 4e63a3a1834fb20db6a1a227fea6cdb9c9836113 [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
13from tempest import test
14
15from neutron.tests.tempest.api import base
16
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
Ihar Hrachyshka3cf4e7f2016-06-14 11:40:19 +020031 @test.idempotent_id('d2d61995-5dd5-4b93-bce7-3edefdb79563')
32 def test_list_sorts_asc(self):
33 self._test_list_sorts_asc()
34
Ihar Hrachyshka3cf4e7f2016-06-14 11:40:19 +020035 @test.idempotent_id('c3c6b0af-c4ac-4da0-b568-8d08ae550604')
36 def test_list_sorts_desc(self):
37 self._test_list_sorts_desc()
38
Ihar Hrachyshka3cf4e7f2016-06-14 11:40:19 +020039 @test.idempotent_id('b93063b3-f713-406e-bf93-e5738e09153c')
40 def test_list_pagination(self):
41 self._test_list_pagination()
42
Ihar Hrachyshka3cf4e7f2016-06-14 11:40:19 +020043 @test.idempotent_id('2ddd9aa6-de28-410f-9cbc-ce752893c407')
44 def test_list_pagination_with_marker(self):
45 self._test_list_pagination_with_marker()
46
Ihar Hrachyshka3cf4e7f2016-06-14 11:40:19 +020047 @test.idempotent_id('351183ef-6ed9-4d71-a9f2-a5ac049bd7ea')
48 def test_list_pagination_with_href_links(self):
49 self._test_list_pagination_with_href_links()
50
Ihar Hrachyshka3cf4e7f2016-06-14 11:40:19 +020051 @test.idempotent_id('dfaa20ca-6d84-4f26-962f-2fee4d247cd9')
52 def test_list_pagination_page_reverse_asc(self):
53 self._test_list_pagination_page_reverse_asc()
54
Ihar Hrachyshka3cf4e7f2016-06-14 11:40:19 +020055 @test.idempotent_id('40552213-3e12-4d6a-86f3-dda92f3de88c')
56 def test_list_pagination_page_reverse_desc(self):
57 self._test_list_pagination_page_reverse_desc()
58
Ihar Hrachyshka3cf4e7f2016-06-14 11:40:19 +020059 @test.idempotent_id('3cea9053-a731-4480-93ee-19b2c28a9ce4')
60 def test_list_pagination_page_reverse_with_href_links(self):
61 self._test_list_pagination_page_reverse_with_href_links()
62
Ihar Hrachyshka3cf4e7f2016-06-14 11:40:19 +020063 @test.idempotent_id('d851937c-9821-4b46-9d18-43e9077ecac0')
64 def test_list_no_pagination_limit_0(self):
65 self._test_list_no_pagination_limit_0()
Victor Morales1be97b42016-09-05 08:50:06 -050066
67 @test.idempotent_id('c0f9280b-9d81-4728-a967-6be22659d4c8')
68 def test_list_validation_filters(self):
69 self._test_list_validation_filters()