From 7ba3b18b1b39dd70da07db256605ea024c2e496e Mon Sep 17 00:00:00 2001 From: "Munoz, Obed N" Date: Mon, 3 Oct 2016 13:48:23 -0500 Subject: [PATCH] ciao-image: Add unit testing for uploadImage function 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 --- openstack/image/api_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/openstack/image/api_test.go b/openstack/image/api_test.go index d79e66fc2..63febfe37 100644 --- a/openstack/image/api_test.go +++ b/openstack/image/api_test.go @@ -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 {