mirror of
				https://github.com/github/octodns.git
				synced 2024-05-11 05:55:00 +00:00 
			
		
		
		
	Initial import of OSS OctoDNS
This commit is contained in:
		
							
								
								
									
										188
									
								
								tests/fixtures/cloudflare-dns_records-page-1.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										188
									
								
								tests/fixtures/cloudflare-dns_records-page-1.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,188 @@
 | 
			
		||||
{
 | 
			
		||||
  "result": [
 | 
			
		||||
    {
 | 
			
		||||
      "id": "fc12ab34cd5611334422ab3322997650",
 | 
			
		||||
      "type": "A",
 | 
			
		||||
      "name": "unit.tests",
 | 
			
		||||
      "content": "1.2.3.4",
 | 
			
		||||
      "proxiable": true,
 | 
			
		||||
      "proxied": false,
 | 
			
		||||
      "ttl": 300,
 | 
			
		||||
      "locked": false,
 | 
			
		||||
      "zone_id": "ff12ab34cd5611334422ab3322997650",
 | 
			
		||||
      "zone_name": "unit.tests",
 | 
			
		||||
      "modified_on": "2017-03-11T18:01:43.054409Z",
 | 
			
		||||
      "created_on": "2017-03-11T18:01:43.054409Z",
 | 
			
		||||
      "meta": {
 | 
			
		||||
        "auto_added": false
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": "fc12ab34cd5611334422ab3322997651",
 | 
			
		||||
      "type": "A",
 | 
			
		||||
      "name": "unit.tests",
 | 
			
		||||
      "content": "1.2.3.5",
 | 
			
		||||
      "proxiable": true,
 | 
			
		||||
      "proxied": false,
 | 
			
		||||
      "ttl": 300,
 | 
			
		||||
      "locked": false,
 | 
			
		||||
      "zone_id": "ff12ab34cd5611334422ab3322997650",
 | 
			
		||||
      "zone_name": "unit.tests",
 | 
			
		||||
      "modified_on": "2017-03-11T18:01:43.160148Z",
 | 
			
		||||
      "created_on": "2017-03-11T18:01:43.160148Z",
 | 
			
		||||
      "meta": {
 | 
			
		||||
        "auto_added": false
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": "fc12ab34cd5611334422ab3322997653",
 | 
			
		||||
      "type": "A",
 | 
			
		||||
      "name": "www.unit.tests",
 | 
			
		||||
      "content": "2.2.3.6",
 | 
			
		||||
      "proxiable": true,
 | 
			
		||||
      "proxied": false,
 | 
			
		||||
      "ttl": 300,
 | 
			
		||||
      "locked": false,
 | 
			
		||||
      "zone_id": "ff12ab34cd5611334422ab3322997650",
 | 
			
		||||
      "zone_name": "unit.tests",
 | 
			
		||||
      "modified_on": "2017-03-11T18:01:43.420689Z",
 | 
			
		||||
      "created_on": "2017-03-11T18:01:43.420689Z",
 | 
			
		||||
      "meta": {
 | 
			
		||||
        "auto_added": false
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": "fc12ab34cd5611334422ab3322997654",
 | 
			
		||||
      "type": "A",
 | 
			
		||||
      "name": "www.sub.unit.tests",
 | 
			
		||||
      "content": "2.2.3.6",
 | 
			
		||||
      "proxiable": true,
 | 
			
		||||
      "proxied": false,
 | 
			
		||||
      "ttl": 300,
 | 
			
		||||
      "locked": false,
 | 
			
		||||
      "zone_id": "ff12ab34cd5611334422ab3322997650",
 | 
			
		||||
      "zone_name": "unit.tests",
 | 
			
		||||
      "modified_on": "2017-03-11T18:01:44.030044Z",
 | 
			
		||||
      "created_on": "2017-03-11T18:01:44.030044Z",
 | 
			
		||||
      "meta": {
 | 
			
		||||
        "auto_added": false
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": "fc12ab34cd5611334422ab3322997655",
 | 
			
		||||
      "type": "AAAA",
 | 
			
		||||
      "name": "aaaa.unit.tests",
 | 
			
		||||
      "content": "2601:644:500:e210:62f8:1dff:feb8:947a",
 | 
			
		||||
      "proxiable": true,
 | 
			
		||||
      "proxied": false,
 | 
			
		||||
      "ttl": 600,
 | 
			
		||||
      "locked": false,
 | 
			
		||||
      "zone_id": "ff12ab34cd5611334422ab3322997650",
 | 
			
		||||
      "zone_name": "unit.tests",
 | 
			
		||||
      "modified_on": "2017-03-11T18:01:43.843594Z",
 | 
			
		||||
      "created_on": "2017-03-11T18:01:43.843594Z",
 | 
			
		||||
      "meta": {
 | 
			
		||||
        "auto_added": false
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": "fc12ab34cd5611334422ab3322997656",
 | 
			
		||||
      "type": "CNAME",
 | 
			
		||||
      "name": "cname.unit.tests",
 | 
			
		||||
      "content": "unit.tests",
 | 
			
		||||
      "proxiable": true,
 | 
			
		||||
      "proxied": false,
 | 
			
		||||
      "ttl": 300,
 | 
			
		||||
      "locked": false,
 | 
			
		||||
      "zone_id": "ff12ab34cd5611334422ab3322997650",
 | 
			
		||||
      "zone_name": "unit.tests",
 | 
			
		||||
      "modified_on": "2017-03-11T18:01:43.940682Z",
 | 
			
		||||
      "created_on": "2017-03-11T18:01:43.940682Z",
 | 
			
		||||
      "meta": {
 | 
			
		||||
        "auto_added": false
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": "fc12ab34cd5611334422ab3322997657",
 | 
			
		||||
      "type": "MX",
 | 
			
		||||
      "name": "mx.unit.tests",
 | 
			
		||||
      "content": "smtp-1.unit.tests",
 | 
			
		||||
      "proxiable": false,
 | 
			
		||||
      "proxied": false,
 | 
			
		||||
      "ttl": 300,
 | 
			
		||||
      "priority": 40,
 | 
			
		||||
      "locked": false,
 | 
			
		||||
      "zone_id": "ff12ab34cd5611334422ab3322997650",
 | 
			
		||||
      "zone_name": "unit.tests",
 | 
			
		||||
      "modified_on": "2017-03-11T18:01:43.764273Z",
 | 
			
		||||
      "created_on": "2017-03-11T18:01:43.764273Z",
 | 
			
		||||
      "meta": {
 | 
			
		||||
        "auto_added": false
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": "fc12ab34cd5611334422ab3322997658",
 | 
			
		||||
      "type": "MX",
 | 
			
		||||
      "name": "mx.unit.tests",
 | 
			
		||||
      "content": "smtp-2.unit.tests",
 | 
			
		||||
      "proxiable": false,
 | 
			
		||||
      "proxied": false,
 | 
			
		||||
      "ttl": 300,
 | 
			
		||||
      "priority": 20,
 | 
			
		||||
      "locked": false,
 | 
			
		||||
      "zone_id": "ff12ab34cd5611334422ab3322997650",
 | 
			
		||||
      "zone_name": "unit.tests",
 | 
			
		||||
      "modified_on": "2017-03-11T18:01:43.586007Z",
 | 
			
		||||
      "created_on": "2017-03-11T18:01:43.586007Z",
 | 
			
		||||
      "meta": {
 | 
			
		||||
        "auto_added": false
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": "fc12ab34cd5611334422ab3322997659",
 | 
			
		||||
      "type": "MX",
 | 
			
		||||
      "name": "mx.unit.tests",
 | 
			
		||||
      "content": "smtp-3.unit.tests",
 | 
			
		||||
      "proxiable": false,
 | 
			
		||||
      "proxied": false,
 | 
			
		||||
      "ttl": 300,
 | 
			
		||||
      "priority": 30,
 | 
			
		||||
      "locked": false,
 | 
			
		||||
      "zone_id": "ff12ab34cd5611334422ab3322997650",
 | 
			
		||||
      "zone_name": "unit.tests",
 | 
			
		||||
      "modified_on": "2017-03-11T18:01:43.670592Z",
 | 
			
		||||
      "created_on": "2017-03-11T18:01:43.670592Z",
 | 
			
		||||
      "meta": {
 | 
			
		||||
        "auto_added": false
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": "fc12ab34cd5611334422ab3322997660",
 | 
			
		||||
      "type": "MX",
 | 
			
		||||
      "name": "mx.unit.tests",
 | 
			
		||||
      "content": "smtp-4.unit.tests",
 | 
			
		||||
      "proxiable": false,
 | 
			
		||||
      "proxied": false,
 | 
			
		||||
      "ttl": 300,
 | 
			
		||||
      "priority": 10,
 | 
			
		||||
      "locked": false,
 | 
			
		||||
      "zone_id": "ff12ab34cd5611334422ab3322997650",
 | 
			
		||||
      "zone_name": "unit.tests",
 | 
			
		||||
      "modified_on": "2017-03-11T18:01:43.505671Z",
 | 
			
		||||
      "created_on": "2017-03-11T18:01:43.505671Z",
 | 
			
		||||
      "meta": {
 | 
			
		||||
        "auto_added": false
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "result_info": {
 | 
			
		||||
    "page": 1,
 | 
			
		||||
    "per_page": 10,
 | 
			
		||||
    "total_pages": 2,
 | 
			
		||||
    "count": 10,
 | 
			
		||||
    "total_count": 16
 | 
			
		||||
  },
 | 
			
		||||
  "success": true,
 | 
			
		||||
  "errors": [],
 | 
			
		||||
  "messages": []
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										116
									
								
								tests/fixtures/cloudflare-dns_records-page-2.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										116
									
								
								tests/fixtures/cloudflare-dns_records-page-2.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,116 @@
 | 
			
		||||
{
 | 
			
		||||
  "result": [
 | 
			
		||||
    {
 | 
			
		||||
      "id": "fc12ab34cd5611334422ab3322997661",
 | 
			
		||||
      "type": "NS",
 | 
			
		||||
      "name": "under.unit.tests",
 | 
			
		||||
      "content": "ns1.unit.tests",
 | 
			
		||||
      "proxiable": false,
 | 
			
		||||
      "proxied": false,
 | 
			
		||||
      "ttl": 3600,
 | 
			
		||||
      "locked": false,
 | 
			
		||||
      "zone_id": "ff12ab34cd5611334422ab3322997650",
 | 
			
		||||
      "zone_name": "unit.tests",
 | 
			
		||||
      "modified_on": "2017-03-11T18:01:42.599878Z",
 | 
			
		||||
      "created_on": "2017-03-11T18:01:42.599878Z",
 | 
			
		||||
      "meta": {
 | 
			
		||||
        "auto_added": false
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": "fc12ab34cd5611334422ab3322997662",
 | 
			
		||||
      "type": "NS",
 | 
			
		||||
      "name": "under.unit.tests",
 | 
			
		||||
      "content": "ns2.unit.tests",
 | 
			
		||||
      "proxiable": false,
 | 
			
		||||
      "proxied": false,
 | 
			
		||||
      "ttl": 3600,
 | 
			
		||||
      "locked": false,
 | 
			
		||||
      "zone_id": "ff12ab34cd5611334422ab3322997650",
 | 
			
		||||
      "zone_name": "unit.tests",
 | 
			
		||||
      "modified_on": "2017-03-11T18:01:42.727011Z",
 | 
			
		||||
      "created_on": "2017-03-11T18:01:42.727011Z",
 | 
			
		||||
      "meta": {
 | 
			
		||||
        "auto_added": false
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": "fc12ab34cd5611334422ab3322997663",
 | 
			
		||||
      "type": "SPF",
 | 
			
		||||
      "name": "spf.unit.tests",
 | 
			
		||||
      "content": "v=spf1 ip4:192.168.0.1/16-all",
 | 
			
		||||
      "proxiable": false,
 | 
			
		||||
      "proxied": false,
 | 
			
		||||
      "ttl": 600,
 | 
			
		||||
      "locked": false,
 | 
			
		||||
      "zone_id": "ff12ab34cd5611334422ab3322997650",
 | 
			
		||||
      "zone_name": "unit.tests",
 | 
			
		||||
      "modified_on": "2017-03-11T18:01:44.112568Z",
 | 
			
		||||
      "created_on": "2017-03-11T18:01:44.112568Z",
 | 
			
		||||
      "meta": {
 | 
			
		||||
        "auto_added": false
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": "fc12ab34cd5611334422ab3322997664",
 | 
			
		||||
      "type": "TXT",
 | 
			
		||||
      "name": "txt.unit.tests",
 | 
			
		||||
      "content": "Bah bah black sheep",
 | 
			
		||||
      "proxiable": false,
 | 
			
		||||
      "proxied": false,
 | 
			
		||||
      "ttl": 600,
 | 
			
		||||
      "locked": false,
 | 
			
		||||
      "zone_id": "ff12ab34cd5611334422ab3322997650",
 | 
			
		||||
      "zone_name": "unit.tests",
 | 
			
		||||
      "modified_on": "2017-03-11T18:01:42.837282Z",
 | 
			
		||||
      "created_on": "2017-03-11T18:01:42.837282Z",
 | 
			
		||||
      "meta": {
 | 
			
		||||
        "auto_added": false
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": "fc12ab34cd5611334422ab3322997665",
 | 
			
		||||
      "type": "TXT",
 | 
			
		||||
      "name": "txt.unit.tests",
 | 
			
		||||
      "content": "have you any wool.",
 | 
			
		||||
      "proxiable": false,
 | 
			
		||||
      "proxied": false,
 | 
			
		||||
      "ttl": 600,
 | 
			
		||||
      "locked": false,
 | 
			
		||||
      "zone_id": "ff12ab34cd5611334422ab3322997650",
 | 
			
		||||
      "zone_name": "unit.tests",
 | 
			
		||||
      "modified_on": "2017-03-11T18:01:42.961566Z",
 | 
			
		||||
      "created_on": "2017-03-11T18:01:42.961566Z",
 | 
			
		||||
      "meta": {
 | 
			
		||||
        "auto_added": false
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": "fc12ab34cd5611334422ab3322997666",
 | 
			
		||||
      "type": "SOA",
 | 
			
		||||
      "name": "unit.tests",
 | 
			
		||||
      "content": "ignored",
 | 
			
		||||
      "proxiable": false,
 | 
			
		||||
      "proxied": false,
 | 
			
		||||
      "ttl": 600,
 | 
			
		||||
      "locked": false,
 | 
			
		||||
      "zone_id": "ff12ab34cd5611334422ab3322997650",
 | 
			
		||||
      "zone_name": "unit.tests",
 | 
			
		||||
      "modified_on": "2017-03-11T18:01:42.961566Z",
 | 
			
		||||
      "created_on": "2017-03-11T18:01:42.961566Z",
 | 
			
		||||
      "meta": {
 | 
			
		||||
        "auto_added": false
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "result_info": {
 | 
			
		||||
    "page": 2,
 | 
			
		||||
    "per_page": 10,
 | 
			
		||||
    "total_pages": 2,
 | 
			
		||||
    "count": 6,
 | 
			
		||||
    "total_count": 16
 | 
			
		||||
  },
 | 
			
		||||
  "success": true,
 | 
			
		||||
  "errors": [],
 | 
			
		||||
  "messages": []
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										140
									
								
								tests/fixtures/cloudflare-zones-page-1.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										140
									
								
								tests/fixtures/cloudflare-zones-page-1.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,140 @@
 | 
			
		||||
{
 | 
			
		||||
  "result": [
 | 
			
		||||
    {
 | 
			
		||||
      "id": "234234243423aaabb334342aaa343433",
 | 
			
		||||
      "name": "github.com",
 | 
			
		||||
      "status": "pending",
 | 
			
		||||
      "paused": false,
 | 
			
		||||
      "type": "full",
 | 
			
		||||
      "development_mode": 0,
 | 
			
		||||
      "name_servers": [
 | 
			
		||||
        "alice.ns.cloudflare.com",
 | 
			
		||||
        "tom.ns.cloudflare.com"
 | 
			
		||||
      ],
 | 
			
		||||
      "original_name_servers": [],
 | 
			
		||||
      "original_registrar": null,
 | 
			
		||||
      "original_dnshost": null,
 | 
			
		||||
      "modified_on": "2017-02-20T03:57:03.753292Z",
 | 
			
		||||
      "created_on": "2017-02-20T03:53:59.274170Z",
 | 
			
		||||
      "meta": {
 | 
			
		||||
        "step": 4,
 | 
			
		||||
        "wildcard_proxiable": false,
 | 
			
		||||
        "custom_certificate_quota": 0,
 | 
			
		||||
        "page_rule_quota": 3,
 | 
			
		||||
        "phishing_detected": false,
 | 
			
		||||
        "multiple_railguns_allowed": false
 | 
			
		||||
      },
 | 
			
		||||
      "owner": {
 | 
			
		||||
        "type": "user",
 | 
			
		||||
        "id": "334234243423aaabb334342aaa343433",
 | 
			
		||||
        "email": "noreply@github.com"
 | 
			
		||||
      },
 | 
			
		||||
      "permissions": [
 | 
			
		||||
        "#analytics:read",
 | 
			
		||||
        "#billing:edit",
 | 
			
		||||
        "#billing:read",
 | 
			
		||||
        "#cache_purge:edit",
 | 
			
		||||
        "#dns_records:edit",
 | 
			
		||||
        "#dns_records:read",
 | 
			
		||||
        "#lb:edit",
 | 
			
		||||
        "#lb:read",
 | 
			
		||||
        "#logs:read",
 | 
			
		||||
        "#organization:edit",
 | 
			
		||||
        "#organization:read",
 | 
			
		||||
        "#ssl:edit",
 | 
			
		||||
        "#ssl:read",
 | 
			
		||||
        "#waf:edit",
 | 
			
		||||
        "#waf:read",
 | 
			
		||||
        "#zone:edit",
 | 
			
		||||
        "#zone:read",
 | 
			
		||||
        "#zone_settings:edit",
 | 
			
		||||
        "#zone_settings:read"
 | 
			
		||||
      ],
 | 
			
		||||
      "plan": {
 | 
			
		||||
        "id": "0feeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
 | 
			
		||||
        "name": "Free Website",
 | 
			
		||||
        "price": 0,
 | 
			
		||||
        "currency": "USD",
 | 
			
		||||
        "frequency": "",
 | 
			
		||||
        "is_subscribed": true,
 | 
			
		||||
        "can_subscribe": false,
 | 
			
		||||
        "legacy_id": "free",
 | 
			
		||||
        "legacy_discount": false,
 | 
			
		||||
        "externally_managed": false
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": "234234243423aaabb334342aaa343434",
 | 
			
		||||
      "name": "github.io",
 | 
			
		||||
      "status": "pending",
 | 
			
		||||
      "paused": false,
 | 
			
		||||
      "type": "full",
 | 
			
		||||
      "development_mode": 0,
 | 
			
		||||
      "name_servers": [
 | 
			
		||||
        "alice.ns.cloudflare.com",
 | 
			
		||||
        "tom.ns.cloudflare.com"
 | 
			
		||||
      ],
 | 
			
		||||
      "original_name_servers": [],
 | 
			
		||||
      "original_registrar": null,
 | 
			
		||||
      "original_dnshost": null,
 | 
			
		||||
      "modified_on": "2017-02-20T04:12:00.732827Z",
 | 
			
		||||
      "created_on": "2017-02-20T04:11:58.250696Z",
 | 
			
		||||
      "meta": {
 | 
			
		||||
        "step": 4,
 | 
			
		||||
        "wildcard_proxiable": false,
 | 
			
		||||
        "custom_certificate_quota": 0,
 | 
			
		||||
        "page_rule_quota": 3,
 | 
			
		||||
        "phishing_detected": false,
 | 
			
		||||
        "multiple_railguns_allowed": false
 | 
			
		||||
      },
 | 
			
		||||
      "owner": {
 | 
			
		||||
        "type": "user",
 | 
			
		||||
        "id": "334234243423aaabb334342aaa343433",
 | 
			
		||||
        "email": "noreply@github.com"
 | 
			
		||||
      },
 | 
			
		||||
      "permissions": [
 | 
			
		||||
        "#analytics:read",
 | 
			
		||||
        "#billing:edit",
 | 
			
		||||
        "#billing:read",
 | 
			
		||||
        "#cache_purge:edit",
 | 
			
		||||
        "#dns_records:edit",
 | 
			
		||||
        "#dns_records:read",
 | 
			
		||||
        "#lb:edit",
 | 
			
		||||
        "#lb:read",
 | 
			
		||||
        "#logs:read",
 | 
			
		||||
        "#organization:edit",
 | 
			
		||||
        "#organization:read",
 | 
			
		||||
        "#ssl:edit",
 | 
			
		||||
        "#ssl:read",
 | 
			
		||||
        "#waf:edit",
 | 
			
		||||
        "#waf:read",
 | 
			
		||||
        "#zone:edit",
 | 
			
		||||
        "#zone:read",
 | 
			
		||||
        "#zone_settings:edit",
 | 
			
		||||
        "#zone_settings:read"
 | 
			
		||||
      ],
 | 
			
		||||
      "plan": {
 | 
			
		||||
        "id": "0feeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
 | 
			
		||||
        "name": "Free Website",
 | 
			
		||||
        "price": 0,
 | 
			
		||||
        "currency": "USD",
 | 
			
		||||
        "frequency": "",
 | 
			
		||||
        "is_subscribed": true,
 | 
			
		||||
        "can_subscribe": false,
 | 
			
		||||
        "legacy_id": "free",
 | 
			
		||||
        "legacy_discount": false,
 | 
			
		||||
        "externally_managed": false
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "result_info": {
 | 
			
		||||
    "page": 1,
 | 
			
		||||
    "per_page": 2,
 | 
			
		||||
    "total_pages": 2,
 | 
			
		||||
    "count": 2,
 | 
			
		||||
    "total_count": 4
 | 
			
		||||
  },
 | 
			
		||||
  "success": true,
 | 
			
		||||
  "errors": [],
 | 
			
		||||
  "messages": []
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										140
									
								
								tests/fixtures/cloudflare-zones-page-2.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										140
									
								
								tests/fixtures/cloudflare-zones-page-2.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,140 @@
 | 
			
		||||
{
 | 
			
		||||
  "result": [
 | 
			
		||||
    {
 | 
			
		||||
      "id": "234234243423aaabb334342aaa343434",
 | 
			
		||||
      "name": "githubusercontent.com",
 | 
			
		||||
      "status": "pending",
 | 
			
		||||
      "paused": false,
 | 
			
		||||
      "type": "full",
 | 
			
		||||
      "development_mode": 0,
 | 
			
		||||
      "name_servers": [
 | 
			
		||||
        "alice.ns.cloudflare.com",
 | 
			
		||||
        "tom.ns.cloudflare.com"
 | 
			
		||||
      ],
 | 
			
		||||
      "original_name_servers": [],
 | 
			
		||||
      "original_registrar": null,
 | 
			
		||||
      "original_dnshost": null,
 | 
			
		||||
      "modified_on": "2017-02-20T04:06:46.019706Z",
 | 
			
		||||
      "created_on": "2017-02-20T04:05:51.683040Z",
 | 
			
		||||
      "meta": {
 | 
			
		||||
        "step": 4,
 | 
			
		||||
        "wildcard_proxiable": false,
 | 
			
		||||
        "custom_certificate_quota": 0,
 | 
			
		||||
        "page_rule_quota": 3,
 | 
			
		||||
        "phishing_detected": false,
 | 
			
		||||
        "multiple_railguns_allowed": false
 | 
			
		||||
      },
 | 
			
		||||
      "owner": {
 | 
			
		||||
        "type": "user",
 | 
			
		||||
        "id": "334234243423aaabb334342aaa343433",
 | 
			
		||||
        "email": "noreply@github.com"
 | 
			
		||||
      },
 | 
			
		||||
      "permissions": [
 | 
			
		||||
        "#analytics:read",
 | 
			
		||||
        "#billing:edit",
 | 
			
		||||
        "#billing:read",
 | 
			
		||||
        "#cache_purge:edit",
 | 
			
		||||
        "#dns_records:edit",
 | 
			
		||||
        "#dns_records:read",
 | 
			
		||||
        "#lb:edit",
 | 
			
		||||
        "#lb:read",
 | 
			
		||||
        "#logs:read",
 | 
			
		||||
        "#organization:edit",
 | 
			
		||||
        "#organization:read",
 | 
			
		||||
        "#ssl:edit",
 | 
			
		||||
        "#ssl:read",
 | 
			
		||||
        "#waf:edit",
 | 
			
		||||
        "#waf:read",
 | 
			
		||||
        "#zone:edit",
 | 
			
		||||
        "#zone:read",
 | 
			
		||||
        "#zone_settings:edit",
 | 
			
		||||
        "#zone_settings:read"
 | 
			
		||||
      ],
 | 
			
		||||
      "plan": {
 | 
			
		||||
        "id": "0feeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
 | 
			
		||||
        "name": "Free Website",
 | 
			
		||||
        "price": 0,
 | 
			
		||||
        "currency": "USD",
 | 
			
		||||
        "frequency": "",
 | 
			
		||||
        "is_subscribed": true,
 | 
			
		||||
        "can_subscribe": false,
 | 
			
		||||
        "legacy_id": "free",
 | 
			
		||||
        "legacy_discount": false,
 | 
			
		||||
        "externally_managed": false
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": "234234243423aaabb334342aaa343435",
 | 
			
		||||
      "name": "unit.tests",
 | 
			
		||||
      "status": "pending",
 | 
			
		||||
      "paused": false,
 | 
			
		||||
      "type": "full",
 | 
			
		||||
      "development_mode": 0,
 | 
			
		||||
      "name_servers": [
 | 
			
		||||
        "alice.ns.cloudflare.com",
 | 
			
		||||
        "tom.ns.cloudflare.com"
 | 
			
		||||
      ],
 | 
			
		||||
      "original_name_servers": [],
 | 
			
		||||
      "original_registrar": null,
 | 
			
		||||
      "original_dnshost": null,
 | 
			
		||||
      "modified_on": "2017-02-20T04:10:23.687329Z",
 | 
			
		||||
      "created_on": "2017-02-20T04:10:18.294562Z",
 | 
			
		||||
      "meta": {
 | 
			
		||||
        "step": 4,
 | 
			
		||||
        "wildcard_proxiable": false,
 | 
			
		||||
        "custom_certificate_quota": 0,
 | 
			
		||||
        "page_rule_quota": 3,
 | 
			
		||||
        "phishing_detected": false,
 | 
			
		||||
        "multiple_railguns_allowed": false
 | 
			
		||||
      },
 | 
			
		||||
      "owner": {
 | 
			
		||||
        "type": "user",
 | 
			
		||||
        "id": "334234243423aaabb334342aaa343433",
 | 
			
		||||
        "email": "noreply@github.com"
 | 
			
		||||
      },
 | 
			
		||||
      "permissions": [
 | 
			
		||||
        "#analytics:read",
 | 
			
		||||
        "#billing:edit",
 | 
			
		||||
        "#billing:read",
 | 
			
		||||
        "#cache_purge:edit",
 | 
			
		||||
        "#dns_records:edit",
 | 
			
		||||
        "#dns_records:read",
 | 
			
		||||
        "#lb:edit",
 | 
			
		||||
        "#lb:read",
 | 
			
		||||
        "#logs:read",
 | 
			
		||||
        "#organization:edit",
 | 
			
		||||
        "#organization:read",
 | 
			
		||||
        "#ssl:edit",
 | 
			
		||||
        "#ssl:read",
 | 
			
		||||
        "#waf:edit",
 | 
			
		||||
        "#waf:read",
 | 
			
		||||
        "#zone:edit",
 | 
			
		||||
        "#zone:read",
 | 
			
		||||
        "#zone_settings:edit",
 | 
			
		||||
        "#zone_settings:read"
 | 
			
		||||
      ],
 | 
			
		||||
      "plan": {
 | 
			
		||||
        "id": "0feeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
 | 
			
		||||
        "name": "Free Website",
 | 
			
		||||
        "price": 0,
 | 
			
		||||
        "currency": "USD",
 | 
			
		||||
        "frequency": "",
 | 
			
		||||
        "is_subscribed": true,
 | 
			
		||||
        "can_subscribe": false,
 | 
			
		||||
        "legacy_id": "free",
 | 
			
		||||
        "legacy_discount": false,
 | 
			
		||||
        "externally_managed": false
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "result_info": {
 | 
			
		||||
    "page": 2,
 | 
			
		||||
    "per_page": 2,
 | 
			
		||||
    "total_pages": 2,
 | 
			
		||||
    "count": 2,
 | 
			
		||||
    "total_count": 4
 | 
			
		||||
  },
 | 
			
		||||
  "success": true,
 | 
			
		||||
  "errors": [],
 | 
			
		||||
  "messages": []
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										106
									
								
								tests/fixtures/dnsimple-invalid-content.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										106
									
								
								tests/fixtures/dnsimple-invalid-content.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,106 @@
 | 
			
		||||
{
 | 
			
		||||
  "data": [
 | 
			
		||||
    {
 | 
			
		||||
      "id": 11189898,
 | 
			
		||||
      "zone_id": "unit.tests",
 | 
			
		||||
      "parent_id": null,
 | 
			
		||||
      "name": "naptr",
 | 
			
		||||
      "content": "",
 | 
			
		||||
      "ttl": 600,
 | 
			
		||||
      "priority": null,
 | 
			
		||||
      "type": "NAPTR",
 | 
			
		||||
      "regions": [
 | 
			
		||||
        "global"
 | 
			
		||||
      ],
 | 
			
		||||
      "system_record": false,
 | 
			
		||||
      "created_at": "2017-03-09T15:55:11Z",
 | 
			
		||||
      "updated_at": "2017-03-09T15:55:11Z"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": 11189899,
 | 
			
		||||
      "zone_id": "unit.tests",
 | 
			
		||||
      "parent_id": null,
 | 
			
		||||
      "name": "naptr",
 | 
			
		||||
      "content": "100 \"U\" \"SIP+D2U\" \"!^.*$!sip:info@bar.example.com!\" .",
 | 
			
		||||
      "ttl": 600,
 | 
			
		||||
      "priority": null,
 | 
			
		||||
      "type": "NAPTR",
 | 
			
		||||
      "regions": [
 | 
			
		||||
        "global"
 | 
			
		||||
      ],
 | 
			
		||||
      "system_record": false,
 | 
			
		||||
      "created_at": "2017-03-09T15:55:11Z",
 | 
			
		||||
      "updated_at": "2017-03-09T15:55:11Z"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": 11189878,
 | 
			
		||||
      "zone_id": "unit.tests",
 | 
			
		||||
      "parent_id": null,
 | 
			
		||||
      "name": "_srv._tcp",
 | 
			
		||||
      "content": "",
 | 
			
		||||
      "ttl": 600,
 | 
			
		||||
      "priority": 10,
 | 
			
		||||
      "type": "SRV",
 | 
			
		||||
      "regions": [
 | 
			
		||||
        "global"
 | 
			
		||||
      ],
 | 
			
		||||
      "system_record": false,
 | 
			
		||||
      "created_at": "2017-03-09T15:55:08Z",
 | 
			
		||||
      "updated_at": "2017-03-09T15:55:08Z"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": 11189879,
 | 
			
		||||
      "zone_id": "unit.tests",
 | 
			
		||||
      "parent_id": null,
 | 
			
		||||
      "name": "_srv._tcp",
 | 
			
		||||
      "content": "20 foo-2.unit.tests",
 | 
			
		||||
      "ttl": 600,
 | 
			
		||||
      "priority": 12,
 | 
			
		||||
      "type": "SRV",
 | 
			
		||||
      "regions": [
 | 
			
		||||
        "global"
 | 
			
		||||
      ],
 | 
			
		||||
      "system_record": false,
 | 
			
		||||
      "created_at": "2017-03-09T15:55:08Z",
 | 
			
		||||
      "updated_at": "2017-03-09T15:55:08Z"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": 11189882,
 | 
			
		||||
      "zone_id": "unit.tests",
 | 
			
		||||
      "parent_id": null,
 | 
			
		||||
      "name": "",
 | 
			
		||||
      "content": "",
 | 
			
		||||
      "ttl": 3600,
 | 
			
		||||
      "priority": null,
 | 
			
		||||
      "type": "SSHFP",
 | 
			
		||||
      "regions": [
 | 
			
		||||
        "global"
 | 
			
		||||
      ],
 | 
			
		||||
      "system_record": false,
 | 
			
		||||
      "created_at": "2017-03-09T15:55:08Z",
 | 
			
		||||
      "updated_at": "2017-03-09T15:55:08Z"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": 11189883,
 | 
			
		||||
      "zone_id": "unit.tests",
 | 
			
		||||
      "parent_id": null,
 | 
			
		||||
      "name": "",
 | 
			
		||||
      "content": "1 1",
 | 
			
		||||
      "ttl": 3600,
 | 
			
		||||
      "priority": null,
 | 
			
		||||
      "type": "SSHFP",
 | 
			
		||||
      "regions": [
 | 
			
		||||
        "global"
 | 
			
		||||
      ],
 | 
			
		||||
      "system_record": false,
 | 
			
		||||
      "created_at": "2017-03-09T15:55:09Z",
 | 
			
		||||
      "updated_at": "2017-03-09T15:55:09Z"
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "pagination": {
 | 
			
		||||
    "current_page": 1,
 | 
			
		||||
    "per_page": 20,
 | 
			
		||||
    "total_entries": 6,
 | 
			
		||||
    "total_pages": 1
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										314
									
								
								tests/fixtures/dnsimple-page-1.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										314
									
								
								tests/fixtures/dnsimple-page-1.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,314 @@
 | 
			
		||||
{
 | 
			
		||||
  "data": [
 | 
			
		||||
    {
 | 
			
		||||
      "id": 11189873,
 | 
			
		||||
      "zone_id": "unit.tests",
 | 
			
		||||
      "parent_id": null,
 | 
			
		||||
      "name": "",
 | 
			
		||||
      "content": "ns1.dnsimple.com admin.dnsimple.com 1489074932 86400 7200 604800 300",
 | 
			
		||||
      "ttl": 3600,
 | 
			
		||||
      "priority": null,
 | 
			
		||||
      "type": "SOA",
 | 
			
		||||
      "regions": [
 | 
			
		||||
        "global"
 | 
			
		||||
      ],
 | 
			
		||||
      "system_record": true,
 | 
			
		||||
      "created_at": "2017-03-09T15:55:08Z",
 | 
			
		||||
      "updated_at": "2017-03-09T15:56:21Z"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": 11189874,
 | 
			
		||||
      "zone_id": "unit.tests",
 | 
			
		||||
      "parent_id": null,
 | 
			
		||||
      "name": "",
 | 
			
		||||
      "content": "ns1.dnsimple.com",
 | 
			
		||||
      "ttl": 3600,
 | 
			
		||||
      "priority": null,
 | 
			
		||||
      "type": "NS",
 | 
			
		||||
      "regions": [
 | 
			
		||||
        "global"
 | 
			
		||||
      ],
 | 
			
		||||
      "system_record": true,
 | 
			
		||||
      "created_at": "2017-03-09T15:55:08Z",
 | 
			
		||||
      "updated_at": "2017-03-09T15:55:08Z"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": 11189875,
 | 
			
		||||
      "zone_id": "unit.tests",
 | 
			
		||||
      "parent_id": null,
 | 
			
		||||
      "name": "",
 | 
			
		||||
      "content": "ns2.dnsimple.com",
 | 
			
		||||
      "ttl": 3600,
 | 
			
		||||
      "priority": null,
 | 
			
		||||
      "type": "NS",
 | 
			
		||||
      "regions": [
 | 
			
		||||
        "global"
 | 
			
		||||
      ],
 | 
			
		||||
      "system_record": true,
 | 
			
		||||
      "created_at": "2017-03-09T15:55:08Z",
 | 
			
		||||
      "updated_at": "2017-03-09T15:55:08Z"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": 11189876,
 | 
			
		||||
      "zone_id": "unit.tests",
 | 
			
		||||
      "parent_id": null,
 | 
			
		||||
      "name": "",
 | 
			
		||||
      "content": "ns3.dnsimple.com",
 | 
			
		||||
      "ttl": 3600,
 | 
			
		||||
      "priority": null,
 | 
			
		||||
      "type": "NS",
 | 
			
		||||
      "regions": [
 | 
			
		||||
        "global"
 | 
			
		||||
      ],
 | 
			
		||||
      "system_record": true,
 | 
			
		||||
      "created_at": "2017-03-09T15:55:08Z",
 | 
			
		||||
      "updated_at": "2017-03-09T15:55:08Z"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": 11189877,
 | 
			
		||||
      "zone_id": "unit.tests",
 | 
			
		||||
      "parent_id": null,
 | 
			
		||||
      "name": "",
 | 
			
		||||
      "content": "ns4.dnsimple.com",
 | 
			
		||||
      "ttl": 3600,
 | 
			
		||||
      "priority": null,
 | 
			
		||||
      "type": "NS",
 | 
			
		||||
      "regions": [
 | 
			
		||||
        "global"
 | 
			
		||||
      ],
 | 
			
		||||
      "system_record": true,
 | 
			
		||||
      "created_at": "2017-03-09T15:55:08Z",
 | 
			
		||||
      "updated_at": "2017-03-09T15:55:08Z"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": 11189878,
 | 
			
		||||
      "zone_id": "unit.tests",
 | 
			
		||||
      "parent_id": null,
 | 
			
		||||
      "name": "_srv._tcp",
 | 
			
		||||
      "content": "20 30 foo-1.unit.tests",
 | 
			
		||||
      "ttl": 600,
 | 
			
		||||
      "priority": 10,
 | 
			
		||||
      "type": "SRV",
 | 
			
		||||
      "regions": [
 | 
			
		||||
        "global"
 | 
			
		||||
      ],
 | 
			
		||||
      "system_record": false,
 | 
			
		||||
      "created_at": "2017-03-09T15:55:08Z",
 | 
			
		||||
      "updated_at": "2017-03-09T15:55:08Z"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": 11189879,
 | 
			
		||||
      "zone_id": "unit.tests",
 | 
			
		||||
      "parent_id": null,
 | 
			
		||||
      "name": "_srv._tcp",
 | 
			
		||||
      "content": "20 30 foo-2.unit.tests",
 | 
			
		||||
      "ttl": 600,
 | 
			
		||||
      "priority": 12,
 | 
			
		||||
      "type": "SRV",
 | 
			
		||||
      "regions": [
 | 
			
		||||
        "global"
 | 
			
		||||
      ],
 | 
			
		||||
      "system_record": false,
 | 
			
		||||
      "created_at": "2017-03-09T15:55:08Z",
 | 
			
		||||
      "updated_at": "2017-03-09T15:55:08Z"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": 11189880,
 | 
			
		||||
      "zone_id": "unit.tests",
 | 
			
		||||
      "parent_id": null,
 | 
			
		||||
      "name": "under",
 | 
			
		||||
      "content": "ns1.unit.tests.",
 | 
			
		||||
      "ttl": 3600,
 | 
			
		||||
      "priority": null,
 | 
			
		||||
      "type": "NS",
 | 
			
		||||
      "regions": [
 | 
			
		||||
        "global"
 | 
			
		||||
      ],
 | 
			
		||||
      "system_record": false,
 | 
			
		||||
      "created_at": "2017-03-09T15:55:08Z",
 | 
			
		||||
      "updated_at": "2017-03-09T15:55:08Z"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": 11189881,
 | 
			
		||||
      "zone_id": "unit.tests",
 | 
			
		||||
      "parent_id": null,
 | 
			
		||||
      "name": "under",
 | 
			
		||||
      "content": "ns2.unit.tests.",
 | 
			
		||||
      "ttl": 3600,
 | 
			
		||||
      "priority": null,
 | 
			
		||||
      "type": "NS",
 | 
			
		||||
      "regions": [
 | 
			
		||||
        "global"
 | 
			
		||||
      ],
 | 
			
		||||
      "system_record": false,
 | 
			
		||||
      "created_at": "2017-03-09T15:55:08Z",
 | 
			
		||||
      "updated_at": "2017-03-09T15:55:08Z"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": 11189882,
 | 
			
		||||
      "zone_id": "unit.tests",
 | 
			
		||||
      "parent_id": null,
 | 
			
		||||
      "name": "",
 | 
			
		||||
      "content": "1 1 7491973e5f8b39d5327cd4e08bc81b05f7710b49",
 | 
			
		||||
      "ttl": 3600,
 | 
			
		||||
      "priority": null,
 | 
			
		||||
      "type": "SSHFP",
 | 
			
		||||
      "regions": [
 | 
			
		||||
        "global"
 | 
			
		||||
      ],
 | 
			
		||||
      "system_record": false,
 | 
			
		||||
      "created_at": "2017-03-09T15:55:08Z",
 | 
			
		||||
      "updated_at": "2017-03-09T15:55:08Z"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": 11189883,
 | 
			
		||||
      "zone_id": "unit.tests",
 | 
			
		||||
      "parent_id": null,
 | 
			
		||||
      "name": "",
 | 
			
		||||
      "content": "1 1 bf6b6825d2977c511a475bbefb88aad54a92ac73",
 | 
			
		||||
      "ttl": 3600,
 | 
			
		||||
      "priority": null,
 | 
			
		||||
      "type": "SSHFP",
 | 
			
		||||
      "regions": [
 | 
			
		||||
        "global"
 | 
			
		||||
      ],
 | 
			
		||||
      "system_record": false,
 | 
			
		||||
      "created_at": "2017-03-09T15:55:09Z",
 | 
			
		||||
      "updated_at": "2017-03-09T15:55:09Z"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": 11189884,
 | 
			
		||||
      "zone_id": "unit.tests",
 | 
			
		||||
      "parent_id": null,
 | 
			
		||||
      "name": "txt",
 | 
			
		||||
      "content": "Bah bah black sheep",
 | 
			
		||||
      "ttl": 600,
 | 
			
		||||
      "priority": null,
 | 
			
		||||
      "type": "TXT",
 | 
			
		||||
      "regions": [
 | 
			
		||||
        "global"
 | 
			
		||||
      ],
 | 
			
		||||
      "system_record": false,
 | 
			
		||||
      "created_at": "2017-03-09T15:55:09Z",
 | 
			
		||||
      "updated_at": "2017-03-09T15:55:09Z"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": 11189885,
 | 
			
		||||
      "zone_id": "unit.tests",
 | 
			
		||||
      "parent_id": null,
 | 
			
		||||
      "name": "txt",
 | 
			
		||||
      "content": "have you any wool.",
 | 
			
		||||
      "ttl": 600,
 | 
			
		||||
      "priority": null,
 | 
			
		||||
      "type": "TXT",
 | 
			
		||||
      "regions": [
 | 
			
		||||
        "global"
 | 
			
		||||
      ],
 | 
			
		||||
      "system_record": false,
 | 
			
		||||
      "created_at": "2017-03-09T15:55:09Z",
 | 
			
		||||
      "updated_at": "2017-03-09T15:55:09Z"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": 11189886,
 | 
			
		||||
      "zone_id": "unit.tests",
 | 
			
		||||
      "parent_id": null,
 | 
			
		||||
      "name": "",
 | 
			
		||||
      "content": "1.2.3.4",
 | 
			
		||||
      "ttl": 300,
 | 
			
		||||
      "priority": null,
 | 
			
		||||
      "type": "A",
 | 
			
		||||
      "regions": [
 | 
			
		||||
        "global"
 | 
			
		||||
      ],
 | 
			
		||||
      "system_record": false,
 | 
			
		||||
      "created_at": "2017-03-09T15:55:09Z",
 | 
			
		||||
      "updated_at": "2017-03-09T15:55:09Z"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": 11189887,
 | 
			
		||||
      "zone_id": "unit.tests",
 | 
			
		||||
      "parent_id": null,
 | 
			
		||||
      "name": "",
 | 
			
		||||
      "content": "1.2.3.5",
 | 
			
		||||
      "ttl": 300,
 | 
			
		||||
      "priority": null,
 | 
			
		||||
      "type": "A",
 | 
			
		||||
      "regions": [
 | 
			
		||||
        "global"
 | 
			
		||||
      ],
 | 
			
		||||
      "system_record": false,
 | 
			
		||||
      "created_at": "2017-03-09T15:55:09Z",
 | 
			
		||||
      "updated_at": "2017-03-09T15:55:09Z"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": 11189889,
 | 
			
		||||
      "zone_id": "unit.tests",
 | 
			
		||||
      "parent_id": null,
 | 
			
		||||
      "name": "www",
 | 
			
		||||
      "content": "2.2.3.6",
 | 
			
		||||
      "ttl": 300,
 | 
			
		||||
      "priority": null,
 | 
			
		||||
      "type": "A",
 | 
			
		||||
      "regions": [
 | 
			
		||||
        "global"
 | 
			
		||||
      ],
 | 
			
		||||
      "system_record": false,
 | 
			
		||||
      "created_at": "2017-03-09T15:55:09Z",
 | 
			
		||||
      "updated_at": "2017-03-09T15:55:09Z"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": 11189890,
 | 
			
		||||
      "zone_id": "unit.tests",
 | 
			
		||||
      "parent_id": null,
 | 
			
		||||
      "name": "mx",
 | 
			
		||||
      "content": "smtp-4.unit.tests",
 | 
			
		||||
      "ttl": 300,
 | 
			
		||||
      "priority": 10,
 | 
			
		||||
      "type": "MX",
 | 
			
		||||
      "regions": [
 | 
			
		||||
        "global"
 | 
			
		||||
      ],
 | 
			
		||||
      "system_record": false,
 | 
			
		||||
      "created_at": "2017-03-09T15:55:10Z",
 | 
			
		||||
      "updated_at": "2017-03-09T15:55:10Z"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": 11189891,
 | 
			
		||||
      "zone_id": "unit.tests",
 | 
			
		||||
      "parent_id": null,
 | 
			
		||||
      "name": "mx",
 | 
			
		||||
      "content": "smtp-2.unit.tests",
 | 
			
		||||
      "ttl": 300,
 | 
			
		||||
      "priority": 20,
 | 
			
		||||
      "type": "MX",
 | 
			
		||||
      "regions": [
 | 
			
		||||
        "global"
 | 
			
		||||
      ],
 | 
			
		||||
      "system_record": false,
 | 
			
		||||
      "created_at": "2017-03-09T15:55:10Z",
 | 
			
		||||
      "updated_at": "2017-03-09T15:55:10Z"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": 11189892,
 | 
			
		||||
      "zone_id": "unit.tests",
 | 
			
		||||
      "parent_id": null,
 | 
			
		||||
      "name": "mx",
 | 
			
		||||
      "content": "smtp-3.unit.tests",
 | 
			
		||||
      "ttl": 300,
 | 
			
		||||
      "priority": 30,
 | 
			
		||||
      "type": "MX",
 | 
			
		||||
      "regions": [
 | 
			
		||||
        "global"
 | 
			
		||||
      ],
 | 
			
		||||
      "system_record": false,
 | 
			
		||||
      "created_at": "2017-03-09T15:55:10Z",
 | 
			
		||||
      "updated_at": "2017-03-09T15:55:10Z"
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "pagination": {
 | 
			
		||||
    "current_page": 1,
 | 
			
		||||
    "per_page": 20,
 | 
			
		||||
    "total_entries": 27,
 | 
			
		||||
    "total_pages": 2
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										138
									
								
								tests/fixtures/dnsimple-page-2.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										138
									
								
								tests/fixtures/dnsimple-page-2.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,138 @@
 | 
			
		||||
{
 | 
			
		||||
  "data": [
 | 
			
		||||
    {
 | 
			
		||||
      "id": 11189893,
 | 
			
		||||
      "zone_id": "unit.tests",
 | 
			
		||||
      "parent_id": null,
 | 
			
		||||
      "name": "mx",
 | 
			
		||||
      "content": "smtp-1.unit.tests",
 | 
			
		||||
      "ttl": 300,
 | 
			
		||||
      "priority": 40,
 | 
			
		||||
      "type": "MX",
 | 
			
		||||
      "regions": [
 | 
			
		||||
        "global"
 | 
			
		||||
      ],
 | 
			
		||||
      "system_record": false,
 | 
			
		||||
      "created_at": "2017-03-09T15:55:10Z",
 | 
			
		||||
      "updated_at": "2017-03-09T15:55:10Z"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": 11189894,
 | 
			
		||||
      "zone_id": "unit.tests",
 | 
			
		||||
      "parent_id": null,
 | 
			
		||||
      "name": "aaaa",
 | 
			
		||||
      "content": "2601:644:500:e210:62f8:1dff:feb8:947a",
 | 
			
		||||
      "ttl": 600,
 | 
			
		||||
      "priority": null,
 | 
			
		||||
      "type": "AAAA",
 | 
			
		||||
      "regions": [
 | 
			
		||||
        "global"
 | 
			
		||||
      ],
 | 
			
		||||
      "system_record": false,
 | 
			
		||||
      "created_at": "2017-03-09T15:55:10Z",
 | 
			
		||||
      "updated_at": "2017-03-09T15:55:10Z"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": 11189895,
 | 
			
		||||
      "zone_id": "unit.tests",
 | 
			
		||||
      "parent_id": null,
 | 
			
		||||
      "name": "cname",
 | 
			
		||||
      "content": "unit.tests",
 | 
			
		||||
      "ttl": 300,
 | 
			
		||||
      "priority": null,
 | 
			
		||||
      "type": "CNAME",
 | 
			
		||||
      "regions": [
 | 
			
		||||
        "global"
 | 
			
		||||
      ],
 | 
			
		||||
      "system_record": false,
 | 
			
		||||
      "created_at": "2017-03-09T15:55:10Z",
 | 
			
		||||
      "updated_at": "2017-03-09T15:55:10Z"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": 11189896,
 | 
			
		||||
      "zone_id": "unit.tests",
 | 
			
		||||
      "parent_id": null,
 | 
			
		||||
      "name": "ptr",
 | 
			
		||||
      "content": "foo.bar.com.",
 | 
			
		||||
      "ttl": 300,
 | 
			
		||||
      "priority": null,
 | 
			
		||||
      "type": "PTR",
 | 
			
		||||
      "regions": [
 | 
			
		||||
        "global"
 | 
			
		||||
      ],
 | 
			
		||||
      "system_record": false,
 | 
			
		||||
      "created_at": "2017-03-09T15:55:10Z",
 | 
			
		||||
      "updated_at": "2017-03-09T15:55:10Z"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": 11189897,
 | 
			
		||||
      "zone_id": "unit.tests",
 | 
			
		||||
      "parent_id": null,
 | 
			
		||||
      "name": "www.sub",
 | 
			
		||||
      "content": "2.2.3.6",
 | 
			
		||||
      "ttl": 300,
 | 
			
		||||
      "priority": null,
 | 
			
		||||
      "type": "A",
 | 
			
		||||
      "regions": [
 | 
			
		||||
        "global"
 | 
			
		||||
      ],
 | 
			
		||||
      "system_record": false,
 | 
			
		||||
      "created_at": "2017-03-09T15:55:10Z",
 | 
			
		||||
      "updated_at": "2017-03-09T15:55:10Z"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": 11189898,
 | 
			
		||||
      "zone_id": "unit.tests",
 | 
			
		||||
      "parent_id": null,
 | 
			
		||||
      "name": "naptr",
 | 
			
		||||
      "content": "10 100 \"S\" \"SIP+D2U\" \"!^.*$!sip:info@bar.example.com!\" .",
 | 
			
		||||
      "ttl": 600,
 | 
			
		||||
      "priority": null,
 | 
			
		||||
      "type": "NAPTR",
 | 
			
		||||
      "regions": [
 | 
			
		||||
        "global"
 | 
			
		||||
      ],
 | 
			
		||||
      "system_record": false,
 | 
			
		||||
      "created_at": "2017-03-09T15:55:11Z",
 | 
			
		||||
      "updated_at": "2017-03-09T15:55:11Z"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": 11189899,
 | 
			
		||||
      "zone_id": "unit.tests",
 | 
			
		||||
      "parent_id": null,
 | 
			
		||||
      "name": "naptr",
 | 
			
		||||
      "content": "100 100 \"U\" \"SIP+D2U\" \"!^.*$!sip:info@bar.example.com!\" .",
 | 
			
		||||
      "ttl": 600,
 | 
			
		||||
      "priority": null,
 | 
			
		||||
      "type": "NAPTR",
 | 
			
		||||
      "regions": [
 | 
			
		||||
        "global"
 | 
			
		||||
      ],
 | 
			
		||||
      "system_record": false,
 | 
			
		||||
      "created_at": "2017-03-09T15:55:11Z",
 | 
			
		||||
      "updated_at": "2017-03-09T15:55:11Z"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "id": 11189900,
 | 
			
		||||
      "zone_id": "unit.tests",
 | 
			
		||||
      "parent_id": null,
 | 
			
		||||
      "name": "spf",
 | 
			
		||||
      "content": "v=spf1 ip4:192.168.0.1/16-all",
 | 
			
		||||
      "ttl": 600,
 | 
			
		||||
      "priority": null,
 | 
			
		||||
      "type": "SPF",
 | 
			
		||||
      "regions": [
 | 
			
		||||
        "global"
 | 
			
		||||
      ],
 | 
			
		||||
      "system_record": false,
 | 
			
		||||
      "created_at": "2017-03-09T15:55:11Z",
 | 
			
		||||
      "updated_at": "2017-03-09T15:55:11Z"
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "pagination": {
 | 
			
		||||
    "current_page": 2,
 | 
			
		||||
    "per_page": 20,
 | 
			
		||||
    "total_entries": 27,
 | 
			
		||||
    "total_pages": 2
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										4190
									
								
								tests/fixtures/dyn-traffic-director-get.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										4190
									
								
								tests/fixtures/dyn-traffic-director-get.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										235
									
								
								tests/fixtures/powerdns-full-data.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										235
									
								
								tests/fixtures/powerdns-full-data.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,235 @@
 | 
			
		||||
{
 | 
			
		||||
    "account": "",
 | 
			
		||||
    "dnssec": false,
 | 
			
		||||
    "id": "unit.tests.",
 | 
			
		||||
    "kind": "Master",
 | 
			
		||||
    "last_check": 0,
 | 
			
		||||
    "masters": [],
 | 
			
		||||
    "name": "unit.tests.",
 | 
			
		||||
    "notified_serial": 2017012803,
 | 
			
		||||
    "rrsets": [
 | 
			
		||||
        {
 | 
			
		||||
            "comments": [],
 | 
			
		||||
            "name": "mx.unit.tests.",
 | 
			
		||||
            "records": [
 | 
			
		||||
                {
 | 
			
		||||
                    "content": "40 smtp-1.unit.tests.",
 | 
			
		||||
                    "disabled": false
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "content": "20 smtp-2.unit.tests.",
 | 
			
		||||
                    "disabled": false
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "content": "30 smtp-3.unit.tests.",
 | 
			
		||||
                    "disabled": false
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "content": "10 smtp-4.unit.tests.",
 | 
			
		||||
                    "disabled": false
 | 
			
		||||
                }
 | 
			
		||||
            ],
 | 
			
		||||
            "ttl": 300,
 | 
			
		||||
            "type": "MX"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "comments": [],
 | 
			
		||||
            "name": "sub.unit.tests.",
 | 
			
		||||
            "records": [
 | 
			
		||||
                {
 | 
			
		||||
                    "content": "6.2.3.4.",
 | 
			
		||||
                    "disabled": false
 | 
			
		||||
                }, {
 | 
			
		||||
                    "content": "7.2.3.4.",
 | 
			
		||||
                    "disabled": false
 | 
			
		||||
                }
 | 
			
		||||
            ],
 | 
			
		||||
            "ttl": 3600,
 | 
			
		||||
            "type": "NS"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "comments": [],
 | 
			
		||||
            "name": "www.unit.tests.",
 | 
			
		||||
            "records": [
 | 
			
		||||
                {
 | 
			
		||||
                    "content": "2.2.3.6",
 | 
			
		||||
                    "disabled": false
 | 
			
		||||
                }
 | 
			
		||||
            ],
 | 
			
		||||
            "ttl": 300,
 | 
			
		||||
            "type": "A"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "comments": [],
 | 
			
		||||
            "name": "_srv._tcp.unit.tests.",
 | 
			
		||||
            "records": [
 | 
			
		||||
                {
 | 
			
		||||
                    "content": "10 20 30 foo-1.unit.tests.",
 | 
			
		||||
                    "disabled": false
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "content": "12 20 30 foo-2.unit.tests.",
 | 
			
		||||
                    "disabled": false
 | 
			
		||||
                }
 | 
			
		||||
            ],
 | 
			
		||||
            "ttl": 600,
 | 
			
		||||
            "type": "SRV"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "comments": [],
 | 
			
		||||
            "name": "txt.unit.tests.",
 | 
			
		||||
            "records": [
 | 
			
		||||
                {
 | 
			
		||||
                    "content": "\"Bah bah black sheep\"",
 | 
			
		||||
                    "disabled": false
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "content": "\"have you any wool.\"",
 | 
			
		||||
                    "disabled": false
 | 
			
		||||
                }
 | 
			
		||||
            ],
 | 
			
		||||
            "ttl": 600,
 | 
			
		||||
            "type": "TXT"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "comments": [],
 | 
			
		||||
            "name": "naptr.unit.tests.",
 | 
			
		||||
            "records": [
 | 
			
		||||
                {
 | 
			
		||||
                    "content": "10 100 \"S\" \"SIP+D2U\" \"!^.*$!sip:info@bar.example.com!\" .",
 | 
			
		||||
                    "disabled": false
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "content": "100 100 \"U\" \"SIP+D2U\" \"!^.*$!sip:info@bar.example.com!\" .",
 | 
			
		||||
                    "disabled": false
 | 
			
		||||
                }
 | 
			
		||||
            ],
 | 
			
		||||
            "ttl": 600,
 | 
			
		||||
            "type": "NAPTR"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "comments": [],
 | 
			
		||||
            "name": "ptr.unit.tests.",
 | 
			
		||||
            "records": [
 | 
			
		||||
                {
 | 
			
		||||
                    "content": "foo.bar.com.",
 | 
			
		||||
                    "disabled": false
 | 
			
		||||
                }
 | 
			
		||||
            ],
 | 
			
		||||
            "ttl": 300,
 | 
			
		||||
            "type": "PTR"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "comments": [],
 | 
			
		||||
            "name": "spf.unit.tests.",
 | 
			
		||||
            "records": [
 | 
			
		||||
                {
 | 
			
		||||
                    "content": "\"v=spf1 ip4:192.168.0.1/16-all\"",
 | 
			
		||||
                    "disabled": false
 | 
			
		||||
                }
 | 
			
		||||
            ],
 | 
			
		||||
            "ttl": 600,
 | 
			
		||||
            "type": "SPF"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "comments": [],
 | 
			
		||||
            "name": "cname.unit.tests.",
 | 
			
		||||
            "records": [
 | 
			
		||||
                {
 | 
			
		||||
                    "content": "unit.tests.",
 | 
			
		||||
                    "disabled": false
 | 
			
		||||
                }
 | 
			
		||||
            ],
 | 
			
		||||
            "ttl": 300,
 | 
			
		||||
            "type": "CNAME"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "comments": [],
 | 
			
		||||
            "name": "www.sub.unit.tests.",
 | 
			
		||||
            "records": [
 | 
			
		||||
                {
 | 
			
		||||
                    "content": "2.2.3.6",
 | 
			
		||||
                    "disabled": false
 | 
			
		||||
                }
 | 
			
		||||
            ],
 | 
			
		||||
            "ttl": 300,
 | 
			
		||||
            "type": "A"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "comments": [],
 | 
			
		||||
            "name": "aaaa.unit.tests.",
 | 
			
		||||
            "records": [
 | 
			
		||||
                {
 | 
			
		||||
                    "content": "2601:644:500:e210:62f8:1dff:feb8:947a",
 | 
			
		||||
                    "disabled": false
 | 
			
		||||
                }
 | 
			
		||||
            ],
 | 
			
		||||
            "ttl": 600,
 | 
			
		||||
            "type": "AAAA"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "comments": [],
 | 
			
		||||
            "name": "unit.tests.",
 | 
			
		||||
            "records": [
 | 
			
		||||
                {
 | 
			
		||||
                    "content": "1 1 7491973e5f8b39d5327cd4e08bc81b05f7710b49",
 | 
			
		||||
                    "disabled": false
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "content": "1 1 bf6b6825d2977c511a475bbefb88aad54a92ac73",
 | 
			
		||||
                    "disabled": false
 | 
			
		||||
                }
 | 
			
		||||
            ],
 | 
			
		||||
            "ttl": 3600,
 | 
			
		||||
            "type": "SSHFP"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "comments": [],
 | 
			
		||||
            "name": "unit.tests.",
 | 
			
		||||
            "records": [
 | 
			
		||||
                {
 | 
			
		||||
                    "content": "ns1.ext.unit.tests. hostmaster.unit.tests. 2017012803 3600 600 604800 60",
 | 
			
		||||
                    "disabled": false
 | 
			
		||||
                }
 | 
			
		||||
            ],
 | 
			
		||||
            "ttl": 3600,
 | 
			
		||||
            "type": "SOA"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "comments": [],
 | 
			
		||||
            "name": "unit.tests.",
 | 
			
		||||
            "records": [
 | 
			
		||||
                {
 | 
			
		||||
                    "content": "1.1.1.1.",
 | 
			
		||||
                    "disabled": false
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "content": "4.4.4.4.",
 | 
			
		||||
                    "disabled": false
 | 
			
		||||
                }
 | 
			
		||||
            ],
 | 
			
		||||
            "ttl": 600,
 | 
			
		||||
            "type": "NS"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "comments": [],
 | 
			
		||||
            "name": "unit.tests.",
 | 
			
		||||
            "records": [
 | 
			
		||||
                {
 | 
			
		||||
                    "content": "1.2.3.5",
 | 
			
		||||
                    "disabled": false
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "content": "1.2.3.4",
 | 
			
		||||
                    "disabled": false
 | 
			
		||||
                }
 | 
			
		||||
            ],
 | 
			
		||||
            "ttl": 300,
 | 
			
		||||
            "type": "A"
 | 
			
		||||
        }
 | 
			
		||||
    ],
 | 
			
		||||
    "serial": 2017012803,
 | 
			
		||||
    "soa_edit": "",
 | 
			
		||||
    "soa_edit_api": "INCEPTION-INCREMENT",
 | 
			
		||||
    "url": "api/v1/servers/localhost/zones/unit.tests."
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user