/
usr
/
lib
/
python2.6
/
site-packages
/
glanceclient
/
tests
/
unit
/
v2
/
/usr/lib/python2.6/site-packages/glanceclient/tests/unit/v2
mkdir
upload
Name
Size
Mode
Actions
fixtures.py
9271
0644
edit
dl
rm
fixtures.pyc
4725
0644
edit
dl
rm
test_client_requests.py
2590
0644
edit
dl
rm
test_client_requests.pyc
2297
0644
edit
dl
rm
test_images.py
40321
0644
edit
dl
rm
test_images.pyc
35670
0644
edit
dl
rm
test_members.py
3644
0644
edit
dl
rm
test_members.pyc
3230
0644
edit
dl
rm
test_metadefs_namespaces.py
25575
0644
edit
dl
rm
test_metadefs_namespaces.pyc
14563
0644
edit
dl
rm
test_metadefs_objects.py
12278
0644
edit
dl
rm
test_metadefs_objects.pyc
7458
0644
edit
dl
rm
test_metadefs_properties.py
10072
0644
edit
dl
rm
test_metadefs_properties.pyc
6557
0644
edit
dl
rm
test_metadefs_resource_types.py
7263
0644
edit
dl
rm
test_metadefs_resource_types.pyc
5037
0644
edit
dl
rm
test_metadefs_tags.py
5012
0644
edit
dl
rm
test_metadefs_tags.pyc
4795
0644
edit
dl
rm
test_schemas.py
7246
0644
edit
dl
rm
test_schemas.pyc
9121
0644
edit
dl
rm
test_shell_v2.py
56737
0644
edit
dl
rm
test_shell_v2.pyc
50225
0644
edit
dl
rm
test_tags.py
2381
0644
edit
dl
rm
test_tags.pyc
2274
0644
edit
dl
rm
test_tasks.py
11379
0644
edit
dl
rm
test_tasks.pyc
9700
0644
edit
dl
rm
test_versions.py
2414
0644
edit
dl
rm
test_versions.pyc
1817
0644
edit
dl
rm
__init__.py
0
0644
edit
dl
rm
__init__.pyc
167
0644
edit
dl
rm
Edit:
/usr/lib/python2.6/site-packages/glanceclient/tests/unit/v2/fixtures.py
(9271B)
# Copyright (c) 2015 OpenStack Foundation # Copyright (c) 2015 Hewlett-Packard Development Company, L.P. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. UUID = "3fc2ba62-9a02-433e-b565-d493ffc69034" image_list_fixture = { "images": [ { "checksum": "9cb02fe7fcac26f8a25d6db3109063ae", "container_format": "bare", "created_at": "2015-07-23T16:58:50.000000", "deleted": "false", "deleted_at": "null", "disk_format": "raw", "id": UUID, "is_public": "false", "min_disk": 0, "min_ram": 0, "name": "test", "owner": "3447cea05d6947658d73791ed9e0ed9f", "properties": { "kernel_id": 1234, "ramdisk_id": 5678 }, "protected": "false", "size": 145, "status": "active", "updated_at": "2015-07-23T16:58:51.000000", "virtual_size": "null" } ] } image_show_fixture = { "checksum": "9cb02fe7fcac26f8a25d6db3109063ae", "container_format": "bare", "created_at": "2015-07-24T12:18:13Z", "disk_format": "raw", "file": "/v2/images/%s/file" % UUID, "id": UUID, "kernel_id": "1234", "min_disk": 0, "min_ram": 0, "name": "img1", "owner": "411423405e10431fb9c47ac5b2446557", "protected": "false", "ramdisk_id": "5678", "schema": "/v2/schemas/image", "self": "/v2/images/%s" % UUID, "size": 145, "status": "active", "tags": [], "updated_at": "2015-07-24T12:18:13Z", "virtual_size": "null", "visibility": "private" } schema_fixture = { "additionalProperties": { "type": "string" }, "links": [ { "href": "{self}", "rel": "self" }, { "href": "{file}", "rel": "enclosure" }, { "href": "{schema}", "rel": "describedby" } ], "name": "image", "properties": { "architecture": { "description": "Operating system architecture as specified in " "http://docs.openstack.org/trunk/openstack-compute" "/admin/content/adding-images.html", "is_base": "false", "type": "string" }, "checksum": { "description": "md5 hash of image contents. (READ-ONLY)", "maxLength": 32, "type": [ "null", "string" ] }, "container_format": { "description": "Format of the container", "enum": [ "null", "ami", "ari", "aki", "bare", "ovf", "ova" ], "type": [ "null", "string" ] }, "created_at": { "description": "Date and time of image registration (READ-ONLY)", "type": "string" }, "direct_url": { "description": "URL to access the image file kept in external " "store (READ-ONLY)", "type": "string" }, "disk_format": { "description": "Format of the disk", "enum": [ "null", "ami", "ari", "aki", "vhd", "vmdk", "raw", "qcow2", "vdi", "iso" ], "type": [ "null", "string" ] }, "file": { "description": "(READ-ONLY)", "type": "string" }, "id": { "description": "An identifier for the image", "pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F])" "{4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$", "type": "string" }, "instance_uuid": { "description": "ID of instance used to create this image.", "is_base": "false", "type": "string" }, "kernel_id": { "description": "ID of image stored in Glance that should be used " "as the kernel when booting an AMI-style image.", "is_base": "false", "pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F])" "{4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$", "type": [ "null", "string" ] }, "locations": { "description": "A set of URLs to access the image file kept " "in external store", "items": { "properties": { "metadata": { "type": "object" }, "url": { "maxLength": 255, "type": "string" } }, "required": [ "url", "metadata" ], "type": "object" }, "type": "array" }, "min_disk": { "description": "Amount of disk space (in GB) required to " "boot image.", "type": "integer" }, "min_ram": { "description": "Amount of ram (in MB) required to boot image.", "type": "integer" }, "name": { "description": "Descriptive name for the image", "maxLength": 255, "type": [ "null", "string" ] }, "os_distro": { "description": "Common name of operating system distribution as " "specified in http://docs.openstack.org/trunk/" "openstack-compute/admin/content/" "adding-images.html", "is_base": "false", "type": "string" }, "os_version": { "description": "Operating system version as specified " "by the distributor", "is_base": "false", "type": "string" }, "owner": { "description": "Owner of the image", "maxLength": 255, "type": [ "null", "string" ] }, "protected": { "description": "If true, image will not be deletable.", "type": "boolean" }, "ramdisk_id": { "description": "ID of image stored in Glance that should be used " "as the ramdisk when booting an AMI-style image.", "is_base": "false", "pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F])" "{4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$", "type": [ "null", "string" ] }, "schema": { "description": "(READ-ONLY)", "type": "string" }, "self": { "description": "(READ-ONLY)", "type": "string" }, "size": { "description": "Size of image file in bytes (READ-ONLY)", "type": [ "null", "integer" ] }, "status": { "description": "Status of the image (READ-ONLY)", "enum": [ "queued", "saving", "active", "killed", "deleted", "pending_delete" ], "type": "string" }, "tags": { "description": "List of strings related to the image", "items": { "maxLength": 255, "type": "string" }, "type": "array" }, "updated_at": { "description": "Date and time of the last image " "modification (READ-ONLY)", "type": "string" }, "virtual_size": { "description": "Virtual size of image in bytes (READ-ONLY)", "type": [ "null", "integer" ] }, "visibility": { "description": "Scope of image accessibility", "enum": [ "public", "private" ], "type": "string" } } }
Save
cmd:
run