1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Switched check from dns to http remote request

This commit is contained in:
Daniel Reichert 2013-07-15 11:32:29 -07:00 committed by Jay Faulkner
parent 233641968b
commit 6b82ecbb69

View file

@ -8,15 +8,15 @@ Shindo.tests('Fog::Rackspace::Monitoring | check_tests', ['rackspace','rackspace
tests('#create new check').formats(DATA_FORMAT) do
obj = {
:details => {
:query => '', #domain
:record_type => 'AAAA',
:url => 'http://www.rackspace.com',
:method => 'GET',
},
:type => "remote.dns",
:type => "remote.http",
:monitoring_zones_poll => ["mzdfw"],
:target_hostname => '', #dns-provider
:timeout => 5,
:target_hostname => 'rackspace.com',
:timeout => 30,
:period => 100
}
}
response = account.create_check(entity_id, obj).data
check_id = response[:headers]['X-Object-ID']
response