Ihar Hrachyshka | 3cf4e7f | 2016-06-14 11:40:19 +0200 | [diff] [blame] | 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 |
| 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ński | c0caa2e | 2017-02-25 10:11:32 +0000 | [diff] [blame] | 13 | from tempest.lib import decorators |
Ihar Hrachyshka | 3cf4e7f | 2016-06-14 11:40:19 +0200 | [diff] [blame] | 14 | |
Chandan Kumar | 667d3d3 | 2017-09-22 12:24:06 +0530 | [diff] [blame] | 15 | from neutron_tempest_plugin.api import base |
Ihar Hrachyshka | 3cf4e7f | 2016-06-14 11:40:19 +0200 | [diff] [blame] | 16 | |
| 17 | |
| 18 | class 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ński | c0caa2e | 2017-02-25 10:11:32 +0000 | [diff] [blame] | 31 | @decorators.idempotent_id('d2d61995-5dd5-4b93-bce7-3edefdb79563') |
Ihar Hrachyshka | 3cf4e7f | 2016-06-14 11:40:19 +0200 | [diff] [blame] | 32 | def test_list_sorts_asc(self): |
| 33 | self._test_list_sorts_asc() |
| 34 | |
Sławek Kapłoński | c0caa2e | 2017-02-25 10:11:32 +0000 | [diff] [blame] | 35 | @decorators.idempotent_id('c3c6b0af-c4ac-4da0-b568-8d08ae550604') |
Ihar Hrachyshka | 3cf4e7f | 2016-06-14 11:40:19 +0200 | [diff] [blame] | 36 | def test_list_sorts_desc(self): |
| 37 | self._test_list_sorts_desc() |
| 38 | |
Sławek Kapłoński | c0caa2e | 2017-02-25 10:11:32 +0000 | [diff] [blame] | 39 | @decorators.idempotent_id('b93063b3-f713-406e-bf93-e5738e09153c') |
Ihar Hrachyshka | 3cf4e7f | 2016-06-14 11:40:19 +0200 | [diff] [blame] | 40 | def test_list_pagination(self): |
| 41 | self._test_list_pagination() |
| 42 | |
Sławek Kapłoński | c0caa2e | 2017-02-25 10:11:32 +0000 | [diff] [blame] | 43 | @decorators.idempotent_id('2ddd9aa6-de28-410f-9cbc-ce752893c407') |
Ihar Hrachyshka | 3cf4e7f | 2016-06-14 11:40:19 +0200 | [diff] [blame] | 44 | def test_list_pagination_with_marker(self): |
| 45 | self._test_list_pagination_with_marker() |
| 46 | |
Sławek Kapłoński | c0caa2e | 2017-02-25 10:11:32 +0000 | [diff] [blame] | 47 | @decorators.idempotent_id('351183ef-6ed9-4d71-a9f2-a5ac049bd7ea') |
Ihar Hrachyshka | 3cf4e7f | 2016-06-14 11:40:19 +0200 | [diff] [blame] | 48 | def test_list_pagination_with_href_links(self): |
| 49 | self._test_list_pagination_with_href_links() |
| 50 | |
Sławek Kapłoński | c0caa2e | 2017-02-25 10:11:32 +0000 | [diff] [blame] | 51 | @decorators.idempotent_id('dfaa20ca-6d84-4f26-962f-2fee4d247cd9') |
Ihar Hrachyshka | 3cf4e7f | 2016-06-14 11:40:19 +0200 | [diff] [blame] | 52 | def test_list_pagination_page_reverse_asc(self): |
| 53 | self._test_list_pagination_page_reverse_asc() |
| 54 | |
Sławek Kapłoński | c0caa2e | 2017-02-25 10:11:32 +0000 | [diff] [blame] | 55 | @decorators.idempotent_id('40552213-3e12-4d6a-86f3-dda92f3de88c') |
Ihar Hrachyshka | 3cf4e7f | 2016-06-14 11:40:19 +0200 | [diff] [blame] | 56 | def test_list_pagination_page_reverse_desc(self): |
| 57 | self._test_list_pagination_page_reverse_desc() |
| 58 | |
Sławek Kapłoński | c0caa2e | 2017-02-25 10:11:32 +0000 | [diff] [blame] | 59 | @decorators.idempotent_id('3cea9053-a731-4480-93ee-19b2c28a9ce4') |
Ihar Hrachyshka | 3cf4e7f | 2016-06-14 11:40:19 +0200 | [diff] [blame] | 60 | 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ński | c0caa2e | 2017-02-25 10:11:32 +0000 | [diff] [blame] | 63 | @decorators.idempotent_id('d851937c-9821-4b46-9d18-43e9077ecac0') |
Ihar Hrachyshka | 3cf4e7f | 2016-06-14 11:40:19 +0200 | [diff] [blame] | 64 | def test_list_no_pagination_limit_0(self): |
| 65 | self._test_list_no_pagination_limit_0() |
Victor Morales | 1be97b4 | 2016-09-05 08:50:06 -0500 | [diff] [blame] | 66 | |
Sławek Kapłoński | c0caa2e | 2017-02-25 10:11:32 +0000 | [diff] [blame] | 67 | @decorators.idempotent_id('c0f9280b-9d81-4728-a967-6be22659d4c8') |
Victor Morales | 1be97b4 | 2016-09-05 08:50:06 -0500 | [diff] [blame] | 68 | def test_list_validation_filters(self): |
| 69 | self._test_list_validation_filters() |