blob: 31c0458a2cab316e997a8eb847c1b76f632ace4b [file] [log] [blame]
Yuiko Takada26c3b172014-03-19 14:03:28 +00001# Copyright 2014 NEC Corporation. All rights reserved.
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
Yuiko Takada3657ae82014-03-25 09:52:15 +000015import copy
16
17from tempest.api_schema.compute import quotas
18
19quota_set = copy.deepcopy(quotas.common_quota_set)
20quota_set['response_body']['properties']['quota_set']['properties'][
21 'id'] = {'type': 'string'}
22quota_set['response_body']['properties']['quota_set']['properties'][
23 'injected_files'] = {'type': 'integer'}
24quota_set['response_body']['properties']['quota_set']['properties'][
25 'injected_file_content_bytes'] = {'type': 'integer'}
26quota_set['response_body']['properties']['quota_set']['properties'][
27 'injected_file_path_bytes'] = {'type': 'integer'}
28quota_set['response_body']['properties']['quota_set']['required'].extend([
29 'id',
30 'injected_files',
31 'injected_file_content_bytes',
32 'injected_file_path_bytes'])
33
34quota_set_update = copy.deepcopy(quotas.common_quota_set)
35quota_set_update['response_body']['properties']['quota_set']['properties'][
36 'injected_files'] = {'type': 'integer'}
37quota_set_update['response_body']['properties']['quota_set']['properties'][
38 'injected_file_content_bytes'] = {'type': 'integer'}
39quota_set_update['response_body']['properties']['quota_set']['properties'][
40 'injected_file_path_bytes'] = {'type': 'integer'}
41quota_set_update['response_body']['properties']['quota_set'][
42 'required'].extend(['injected_files',
43 'injected_file_content_bytes',
44 'injected_file_path_bytes'])
Yuiko Takadaa3d584d2014-04-03 14:11:53 +000045
46delete_quota = {
47 'status_code': [202]
48}