Sha256: 9387402096fbc47850c79dc354e2664a3923fc2ecc768706a43c1b89a5d57fcb
Contents?: true
Size: 582 Bytes
Versions: 4
Compression:
Stored size: 582 Bytes
Contents
module Fog module SharedFileSystem class HuaweiCloud class Real def get_snapshot(id) request( :expects => 200, :method => 'GET', :path => "snapshots/#{id}" ) end end class Mock def get_snapshot(id) response = Excon::Response.new response.status = 200 snapshot = data[:snapshot_updated] || data[:snapshots_detail].first snapshot['id'] = id response.body = snapshot response end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems