mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
added shindo config for dynect put_record
This commit is contained in:
parent
a8defa9a74
commit
43e4eb16cb
1 changed files with 17 additions and 0 deletions
|
@ -79,6 +79,23 @@ Shindo.tests('Dynect::dns | DNS requests', ['dynect', 'dns']) do
|
|||
@dns.post_record('A', @domain, @fqdn, {'address' => '1.2.3.4'}).body
|
||||
end
|
||||
|
||||
put_record_format = shared_format.merge({
|
||||
'data' => {
|
||||
'fqdn' => String,
|
||||
'rdata' => {
|
||||
'address' => String
|
||||
},
|
||||
'record_id' => Integer,
|
||||
'record_type' => String,
|
||||
'ttl' => Integer,
|
||||
'zone' => String
|
||||
}
|
||||
})
|
||||
|
||||
tests("put_record('A', '#{@domain}', '#{@fqdn}', 'address' => '1.2.3.4')").formats(post_record_format) do
|
||||
@dns.ut_record('A', @domain, @fqdn, {'address' => '1.2.3.4'}).body
|
||||
end
|
||||
|
||||
publish_zone_format = shared_format.merge({
|
||||
'data' => {
|
||||
'serial' => Integer,
|
||||
|
|
Loading…
Reference in a new issue