Matthew Treinish | a33037e | 2013-12-05 23:16:39 +0000 | [diff] [blame] | 1 | # Copyright 2013 IBM Corp. |
| 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 | |
| 16 | class FakeConfig(object): |
| 17 | |
| 18 | class fake_compute(object): |
| 19 | build_interval = 10 |
| 20 | build_timeout = 10 |
| 21 | |
| 22 | class fake_identity(object): |
| 23 | disable_ssl_certificate_validation = True |
Mauro S. M. Rodrigues | c3e573c | 2014-02-19 07:59:29 -0500 | [diff] [blame] | 24 | catalog_type = 'identity' |
| 25 | uri = 'http://fake_uri.com/auth' |
| 26 | uri_v3 = 'http://fake_uri_v3.com/auth' |
Matthew Treinish | a33037e | 2013-12-05 23:16:39 +0000 | [diff] [blame] | 27 | |
Mauro S. M. Rodrigues | dbe4cb6 | 2014-02-07 13:03:27 +0000 | [diff] [blame] | 28 | class fake_default_feature_enabled(object): |
| 29 | api_extensions = ['all'] |
| 30 | |
| 31 | class fake_compute_feature_enabled(fake_default_feature_enabled): |
| 32 | api_v3_extensions = ['all'] |
| 33 | |
| 34 | class fake_object_storage_discoverable_apis(object): |
| 35 | discoverable_apis = ['all'] |
| 36 | |
| 37 | class fake_service_available(object): |
| 38 | nova = True |
| 39 | glance = True |
| 40 | cinder = True |
| 41 | heat = True |
| 42 | neutron = True |
| 43 | swift = True |
| 44 | horizon = True |
| 45 | |
Marc Koderer | 6ee82dc | 2014-02-17 10:26:29 +0100 | [diff] [blame] | 46 | class fake_negative(object): |
| 47 | test_generator = 'tempest.common.' \ |
| 48 | 'generator.negative_generator.NegativeTestGenerator' |
| 49 | |
Mauro S. M. Rodrigues | dbe4cb6 | 2014-02-07 13:03:27 +0000 | [diff] [blame] | 50 | compute_feature_enabled = fake_compute_feature_enabled() |
| 51 | volume_feature_enabled = fake_default_feature_enabled() |
| 52 | network_feature_enabled = fake_default_feature_enabled() |
| 53 | object_storage_feature_enabled = fake_object_storage_discoverable_apis() |
| 54 | |
| 55 | service_available = fake_service_available() |
| 56 | |
Matthew Treinish | a33037e | 2013-12-05 23:16:39 +0000 | [diff] [blame] | 57 | compute = fake_compute() |
| 58 | identity = fake_identity() |
Marc Koderer | 6ee82dc | 2014-02-17 10:26:29 +0100 | [diff] [blame] | 59 | |
| 60 | negative = fake_negative() |