Kiall Mac Innes | a17f233 | 2016-08-25 13:34:42 +0100 | [diff] [blame] | 1 | # Copyright 2016 Hewlett Packard Enterprise Development Company, L.P. |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 4 | # not use this file except in compliance with the License. You may obtain |
| 5 | # a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 | # License for the specific language governing permissions and limitations |
| 13 | # under the License. |
| 14 | |
| 15 | from tempest.hacking import checks |
| 16 | |
| 17 | |
| 18 | def factory(register): |
| 19 | # Imported from Tempest |
| 20 | register(checks.import_no_clients_in_api_and_scenario_tests) |
| 21 | register(checks.scenario_tests_need_service_tags) |
| 22 | register(checks.no_setup_teardown_class_for_tests) |
| 23 | register(checks.no_vi_headers) |
| 24 | register(checks.service_tags_not_in_module_path) |
| 25 | register(checks.no_hyphen_at_end_of_rand_name) |
| 26 | register(checks.no_mutable_default_args) |
| 27 | register(checks.no_testtools_skip_decorator) |
| 28 | register(checks.get_resources_on_service_clients) |
| 29 | register(checks.delete_resources_on_service_clients) |
| 30 | register(checks.dont_use_config_in_tempest_lib) |
| 31 | register(checks.use_rand_uuid_instead_of_uuid4) |