Add Glance v1.0 REST API Tests

Registered by Kavan Patil

Tempest currently doesn't have REST API tests for Glance. This blue print proposes to add REST API tests for v1.0 of Glance.

Client:
The new API tests will use glanceclient/common/http.py (under python-glanceclient) as the primary client. This allows tests to make plain HTTP REST calls.

Existing tests:
The existing tests will be marked as smoke tests as they will exercise Glance service using the standard client: python-glanceclient/glanceclient/client.py . A separate blue print or work item may be opened to do this work.

Blueprint information

Status:
Complete
Approver:
Ravikumar Venkatesan
Priority:
Medium
Drafter:
Kavan Patil
Direction:
Needs approval
Assignee:
Kavan Patil
Definition:
Approved
Series goal:
Accepted for havana
Implementation:
Implemented
Milestone target:
milestone icon havana-2
Started by
Ravikumar Venkatesan
Completed by
Ravikumar Venkatesan

Related branches

Sprints

Whiteboard

Work items:
----------------
1) Requesting a List of Public VM Images https://glance.example.com/v1/images
2) Register a New Virtual Machine Image https://glance.example.com/images
3) List available images (all details). https://glance.example.com/images/detail
4) List details of the specified image. https://glance.example.com/images/{imageId}
5) Updating an Image/Uploading an Image File or Updating Image Metadat https://glance.example.com/images/{imageId}

6) Deletes the specified image. https://glance.example.com/images/{imageId}
7) Replacing a Membership List for an Image https://glance.example.com/images/{imageId}/members
8) Requesting a List of VM Images shared with a given tenant. https://glance.example.com/shared-images/{tenantId}
9) Adding a Member to an Image v1/images/{image_id}/members/{tenant_id}
10) Replacing a Membership List for an Image v1/images/{image_id}/members
11) Removing a Member from an Image v1/images/{image_id}/members/{tenant_id}

Gerrit topic: https://review.openstack.org/#q,topic:bp/add-glance-api-1,n,z

Addressed by: https://review.openstack.org/20464
    blueprint add-glance-api-1.0-tests

Gerrit topic: https://review.openstack.org/#q,topic:bp/which,n,z

Gerrit topic: https://review.openstack.org/#q,topic:bug/1089765,n,z

Addressed by: https://review.openstack.org/21532
    Break out RestClient error checking.

Addressed by: https://review.openstack.org/19963
    Add an images client.

Gerrit topic: https://review.openstack.org/#q,topic:bp/add-glance-api-v1-tests,n,z

Addressed by: https://review.openstack.org/23753
    Add image members tests.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.