lib/fog/oraclecloud/requests/soa/delete_instance.rb in fog-oraclecloud-0.1.7 vs lib/fog/oraclecloud/requests/soa/delete_instance.rb in fog-oraclecloud-0.1.8
- old
+ new
@@ -20,19 +20,14 @@
)
end
end
class Mock
- def delete_instance(service_name, dba_name, dba_password, options={})
+ def delete_instance(name, dba_name, dba_password, options={})
response = Excon::Response.new
- # remove from memoreeeez.
- self.data[:instances].delete service_name
- response.body = {
- 'service_name' => service_name,
- 'status' => 'Terminating'
- }
- response.status = 202
-
+ self.data[:instances][name]['status'] = 'Terminating'
+ self.data[:deleted_at][name] = Time.now
+ response.status = 204
response
end
end
end
end