(spec) Add spec tests for Pooler class

This commit is contained in:
Brian Cain 2015-10-13 21:36:24 -07:00
parent 6ee138f08e
commit beeac3858c
2 changed files with 170 additions and 3 deletions

View file

@ -122,7 +122,7 @@ class Pooler
conn = Http.get_conn(verbose, url)
conn.headers['X-AUTH-TOKEN'] = token
response = conn.post "/vm/#{hostname}/snapshot/#{snapshot}"
response = conn.post "/vm/#{hostname}/snapshot/#{snapshot_sha}"
res_body = JSON.parse(response.body)
res_body
end