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 |
| 24 | |
Mauro S. M. Rodrigues | dbe4cb6 | 2014-02-07 13:03:27 +0000 | [diff] [blame^] | 25 | class fake_default_feature_enabled(object): |
| 26 | api_extensions = ['all'] |
| 27 | |
| 28 | class fake_compute_feature_enabled(fake_default_feature_enabled): |
| 29 | api_v3_extensions = ['all'] |
| 30 | |
| 31 | class fake_object_storage_discoverable_apis(object): |
| 32 | discoverable_apis = ['all'] |
| 33 | |
| 34 | class fake_service_available(object): |
| 35 | nova = True |
| 36 | glance = True |
| 37 | cinder = True |
| 38 | heat = True |
| 39 | neutron = True |
| 40 | swift = True |
| 41 | horizon = True |
| 42 | |
| 43 | compute_feature_enabled = fake_compute_feature_enabled() |
| 44 | volume_feature_enabled = fake_default_feature_enabled() |
| 45 | network_feature_enabled = fake_default_feature_enabled() |
| 46 | object_storage_feature_enabled = fake_object_storage_discoverable_apis() |
| 47 | |
| 48 | service_available = fake_service_available() |
| 49 | |
Matthew Treinish | a33037e | 2013-12-05 23:16:39 +0000 | [diff] [blame] | 50 | compute = fake_compute() |
| 51 | identity = fake_identity() |