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:
parent
233641968b
commit
6b82ecbb69
1 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue