1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
require "test_helper"
require "helpers/dns_v2_helper"
describe "Fog::OpenStack::DNS::V2 | pool requests" do
before do
@dns, = set_dns_data
@pool_format = {
"description" => String,
"id" => String,
"project_id" => String,
"created_at" => String,
"attributes" => String,
"ns_records" => Array,
"links" => Hash,
"name" => String,
"updated_at" => String
}
@pool_id = @dns.list_pools.body['pools'].first['id']
end
describe "success" do
it "#list_pools" do
@dns.list_pools.body.must_match_schema("pools" => [@pool_format])
end
it "#get_pool" do
@dns.get_pool(@pool_id).body.must_match_schema(@pool_format)
end
end
end
|