1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/rackspace/requests/monitoring/helper.rb
Daniel Reichert 002a918b21 Adding monitoring tests and their required changes
Changes made to lib/bin/rackspace.rb and lib/fog/rackspace.rb were required in
order to allow the tests to actually run. Changes to
lib/fog/rackspace/monitoring.rb were made in an effort to get failure tests to
run without the error that I am purposefully creating causing the test to fail.
2013-07-11 15:30:37 -07:00

27 lines
629 B
Ruby

DELETE_HEADERS_FORMAT = {
'X-LB' => String,
'X-Response-Id' => String,
'X-RateLimit-Remaining' => String,
'X-RateLimit-Window' => String,
'X-RateLimit-Type' => String,
'Content-Type' => String,
'Date' => String,
'X-RateLimit-Limit' => String,
'Content-Length' => String
}
HEADERS_FORMAT = DELETE_HEADERS_FORMAT.merge({
'X-Object-ID' => String,
'Location' => String,
})
DATA_FORMAT = {
:status => Integer,
:body => String,
:headers => HEADERS_FORMAT,
:remote_ip => String
}
DELETE_DATA_FORMAT = {
:status => Integer,
:body => String,
:headers => DELETE_HEADERS_FORMAT,
:remote_ip => String
}