Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

Commit

Permalink
ciao-image: Add unit testing for uploadImage function
Browse files Browse the repository at this point in the history
Add the test case for uploading an Image. Basically, adds the new
HTTP PUT request to the list of image API tests.

This fixes #575

Signed-off-by: Munoz, Obed N <[email protected]>
  • Loading branch information
obedmr committed Oct 3, 2016
1 parent b938a42 commit 7ba3b18
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions openstack/image/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@ var tests = []test{
http.StatusNoContent,
`null`,
},
{
"PUT",
"/v2/images/1bea47ed-f6a9-463b-b423-14b9cca9ad27",
uploadImage,
"",
http.StatusNoContent,
`null`,
},
}

func myHostname() string {
Expand Down

0 comments on commit 7ba3b18

Please sign in to comment.