tests/rackspace/requests/dns/helper.rb in fog-1.7.0 vs tests/rackspace/requests/dns/helper.rb in fog-1.8.0

- old
+ new

@@ -1,27 +1,24 @@ SUBDOMAIN_FORMAT = { 'name' => String, 'id' => Integer, 'created' => String, - 'updated' => String + 'updated' => String, + 'emailAddress' => String } +DOMAIN_FORMAT = SUBDOMAIN_FORMAT.merge({ + 'accountId' => Integer +}) + LIST_SUBDOMAINS_FORMAT = { 'domains' => [SUBDOMAIN_FORMAT], 'totalEntries' => Integer } LIST_DOMAIN_FORMAT = { - 'domains' => [ - { - 'name' => String, - 'id' => Integer, - 'accountId' => Integer, - 'updated' => String, - 'created' => String - } - ], + 'domains' => [DOMAIN_FORMAT], 'totalEntries' => Integer, 'links' => [ { 'rel' => String, 'href' => String @@ -48,33 +45,22 @@ NAME_SERVERS_FORMAT = [{ 'name' => String }] -BASIC_DOMAIN_DETAIL_FORMAT = { - 'name' => String, - 'id' => Integer, - 'accountId' => Integer, - 'updated' => String, - 'created' =>String, - 'ttl' => Integer, - 'emailAddress' => String, - 'nameservers' => NAME_SERVERS_FORMAT -} +BASIC_DOMAIN_DETAIL_FORMAT = DOMAIN_FORMAT.merge({ + 'nameservers' => NAME_SERVERS_FORMAT, + 'ttl' => Integer +}) LIST_DOMAIN_DETAILS_WITH_RECORDS = BASIC_DOMAIN_DETAIL_FORMAT.merge({ 'recordsList' => RECORD_LIST_FORMAT }) LIST_DOMAIN_DETAILS_WITH_RECORDS_AND_SUBDOMAINS_FORMAT = BASIC_DOMAIN_DETAIL_FORMAT.merge({ 'recordsList' => RECORD_LIST_FORMAT, 'subdomains' => { - 'domains' => [{ - 'created' => String, - 'name' => String, - 'id' => Integer, - 'updated' => String - }], + 'domains' => [SUBDOMAIN_FORMAT], 'totalEntries' => Integer } }) LIST_DOMAIN_DETAILS_WITHOUT_RECORDS_AND_SUBDOMAINS_FORMAT = BASIC_DOMAIN_DETAIL_FORMAT