Fix specs

This commit is contained in:
Sebastian Serth
2020-04-14 15:20:15 +02:00
parent 520a62125e
commit 28d40605c8
4 changed files with 13 additions and 160 deletions

View File

@ -52,9 +52,16 @@ class DockerContainerPool
def self.quantities
response = JSON.parse(Faraday.get(config[:location] + "/docker_container_pool/quantities").body)
response.transform_keys(&:to_i)
rescue StandardError => e
Raven.extra_context({response: response.inspect})
Raven.capture_exception(e)
[]
end
def self.dump_info
JSON.parse(Faraday.get(config[:location] + "/docker_container_pool/dump_info").body)
rescue StandardError => e
Raven.capture_exception(e)
nil
end
end