Sha256: 54a4c258f9dec88f43104c5f11c0b97efc33cbedfdd29939fd8ca0503df70c30
Contents?: true
Size: 806 Bytes
Versions: 45
Compression:
Stored size: 806 Bytes
Contents
Shindo.tests("Fog::Compute[:fogdocker] | image_create request", 'fogdocker') do compute = Fog::Compute[:fogdocker] tests("Create image") do response = compute.image_create({'fromImage' => 'mattdm/fedora', 'repo'=>'test', 'tag'=>'create_image'}) test("should be a kind of Hash") { response.kind_of? Hash} test("should have an id") { !response['id'].nil? && !response['id'].empty? } end tests("Fail Creating image") do begin response = compute.image_create('fromImage' => 'not/exists') test("should be a kind of Hash") { response.kind_of? Hash} #mock never raise exceptions rescue => e #should raise missing command in the create attributes. test("error should be a kind of Docker::Error") { e.kind_of? Docker::Error::ServerError} end end end
Version data entries
45 entries across 43 versions & 6 rubygems