dnsimple-ruby 1.4.1 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +0 -3
  3. data/.ruby-version +1 -1
  4. data/.travis.yml +1 -0
  5. data/CHANGELOG.md +8 -0
  6. data/README.md +2 -4
  7. data/dnsimple-ruby.gemspec +3 -6
  8. data/features/README.md +9 -0
  9. data/lib/dnsimple/certificate.rb +37 -36
  10. data/lib/dnsimple/client.rb +7 -4
  11. data/lib/dnsimple/contact.rb +49 -48
  12. data/lib/dnsimple/domain.rb +79 -79
  13. data/lib/dnsimple/extended_attribute.rb +1 -1
  14. data/lib/dnsimple/record.rb +7 -12
  15. data/lib/dnsimple/service.rb +2 -2
  16. data/lib/dnsimple/template.rb +11 -17
  17. data/lib/dnsimple/template_record.rb +4 -4
  18. data/lib/dnsimple/transfer_order.rb +1 -1
  19. data/lib/dnsimple/user.rb +6 -14
  20. data/lib/dnsimple/version.rb +1 -1
  21. data/spec/ci/.dnsimple.test +1 -1
  22. data/spec/dnsimple/certificate_spec.rb +40 -30
  23. data/spec/dnsimple/client_spec.rb +9 -9
  24. data/spec/dnsimple/contact_spec.rb +34 -26
  25. data/spec/dnsimple/domain_spec.rb +21 -74
  26. data/spec/dnsimple/extended_attributes_spec.rb +42 -9
  27. data/spec/dnsimple/record_spec.rb +35 -43
  28. data/spec/dnsimple/template_spec.rb +27 -5
  29. data/spec/dnsimple/user_spec.rb +22 -14
  30. data/spec/files/certificates/index/success.http +19 -0
  31. data/spec/files/certificates/show/notfound.http +17 -0
  32. data/spec/files/certificates/show/success.http +19 -0
  33. data/spec/files/contacts/show/notfound.http +17 -0
  34. data/spec/files/contacts/show/success.http +19 -0
  35. data/spec/files/domains/show/notfound.http +17 -0
  36. data/spec/files/domains/show/success.http +19 -0
  37. data/spec/files/extended_attributes/ca.http +19 -0
  38. data/spec/files/extended_attributes/com.http +19 -0
  39. data/spec/files/extended_attributes/success.http +19 -0
  40. data/spec/files/records/index/success.http +19 -0
  41. data/spec/files/records/show/notfound.http +17 -0
  42. data/spec/files/records/show/success.http +19 -0
  43. data/spec/files/templates/show/notfound.http +17 -0
  44. data/spec/files/templates/show/success.http +19 -0
  45. data/spec/files/users/me/success.http +19 -0
  46. data/spec/spec_helper.rb +14 -17
  47. data/spec/support/helpers.rb +15 -0
  48. data/spec/support/webmock.rb +11 -0
  49. metadata +65 -84
  50. data/features/README +0 -12
  51. data/fixtures/vcr_cassettes/DNSimple_Certificate/_all.yml +0 -57
  52. data/fixtures/vcr_cassettes/DNSimple_Certificate/_purchase.yml +0 -57
  53. data/fixtures/vcr_cassettes/DNSimple_Certificate/_submit.yml +0 -57
  54. data/fixtures/vcr_cassettes/DNSimple_Contact/a_new_contact.yml +0 -50
  55. data/fixtures/vcr_cassettes/DNSimple_Contact/an_existing_contact.yml +0 -50
  56. data/fixtures/vcr_cassettes/DNSimple_Domain/_all.yml +0 -149
  57. data/fixtures/vcr_cassettes/DNSimple_Domain/applying_templates.yml +0 -246
  58. data/fixtures/vcr_cassettes/DNSimple_Domain/creating_a_new_domain.yml +0 -51
  59. data/fixtures/vcr_cassettes/DNSimple_Domain/finding_an_existing_domain/by_id.yml +0 -51
  60. data/fixtures/vcr_cassettes/DNSimple_Domain/finding_an_existing_domain/by_name.yml +0 -51
  61. data/fixtures/vcr_cassettes/DNSimple_Domain/registration/with_a_new_registrant_contact.yml +0 -52
  62. data/fixtures/vcr_cassettes/DNSimple_Domain/registration/with_an_existing_contact.yml +0 -52
  63. data/fixtures/vcr_cassettes/DNSimple_ExtendedAttribute/list_extended_attributes/for_ca.yml +0 -273
  64. data/fixtures/vcr_cassettes/DNSimple_ExtendedAttribute/list_extended_attributes/for_com.yml +0 -46
  65. data/fixtures/vcr_cassettes/DNSimple_Record/_all.yml +0 -195
  66. data/fixtures/vcr_cassettes/DNSimple_Record/creating_a_new_record.yml +0 -51
  67. data/fixtures/vcr_cassettes/DNSimple_Record/find_a_record.yml +0 -51
  68. data/fixtures/vcr_cassettes/DNSimple_Template/a_template.yml +0 -53
  69. data/fixtures/vcr_cassettes/DNSimple_User/_me.yml +0 -49
  70. data/spec/README +0 -10
data/features/README DELETED
@@ -1,12 +0,0 @@
1
- Before running the DNSimple Ruby Client cucumber feature files, you must do the following:
2
-
3
- 1.) If you haven't already go to https://test.dnsimple.com and create an account. Activate your account to the Platinum level using the credit card number of "1".
4
-
5
- 2.) Create a file in your home directory called .dnsimple.test and include the following:
6
-
7
- username: YOUR_USERNAME
8
- password: YOUR_PASSWORD
9
- base_uri: https://test.dnsimple.com
10
-
11
-
12
-
@@ -1,57 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/domains/example.com/certificates
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept:
11
- - application/json
12
- Authorization:
13
- - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
14
- response:
15
- status:
16
- code: 200
17
- message: OK
18
- headers:
19
- X-Ua-Compatible:
20
- - IE=Edge
21
- Access-Control-Allow-Headers:
22
- - Authorization,Accepts,Content-Type
23
- X-Dnsimple-Api-Version:
24
- - 1.0.0
25
- Etag:
26
- - ! '"ee7304ebee78ff7065676d9aff2e1967"'
27
- Access-Control-Allow-Methods:
28
- - OPTIONS
29
- Content-Type:
30
- - application/json; charset=utf-8
31
- Access-Control-Allow-Origin:
32
- - ! '*'
33
- Date:
34
- - Fri, 11 Nov 2011 21:18:55 GMT
35
- Server:
36
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
37
- X-Runtime:
38
- - '8.864356'
39
- Content-Length:
40
- - '3936'
41
- Set-Cookie:
42
- - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlYzE1ZDBhNDlhNmY1NzM4ZWU0MWM4ZGM5NWM2ODFlOWJJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--fadb5db75b3ab141668c6511771e2d22eeb07409;
43
- path=/; HttpOnly
44
- Cache-Control:
45
- - max-age=0, private, must-revalidate
46
- body:
47
- encoding: UTF-8
48
- string: ! '[{"certificate":{"approver_email":null,"certificate_status":"Awaiting
49
- Configuration","configured_at":"2011-11-11T20:56:36Z","contact_id":1,"created_at":"2011-11-11T20:56:14Z","csr":"-----BEGIN
50
- NEW CERTIFICATE REQUEST-----\nMIIDMjCCAeoCAQAwXTELMAkGA1UEBhMCVVMxFTATBgNVBAoTDEFudGhvbnkgRWRl\nbjEQMA4GA1UEBxMHTWFsYWJhcjELMAkGA1UECBMCRkwxGDAWBgNVBAMTD3d3dy5l\neGFtcGxlLmNvbTCCAVIwDQYJKoZIhvcNAQEBBQADggE/ADCCAToCggExALVqxT38\nVYrafdjtqrYGCn1/HOYnOTJ0r8aYR71cW/AN50H6t0NOwLdrKstQ11uxGxkqFotl\ndHklfJUh5gJyrisIZNP/YZ55s+rjcbuFeiAyouEs12YwYOK2GzsHB6t3OBJC2+Nm\nZirDUUbhA4VDkf7DqiIRVSKcC0BKJyr69fnGewpAW9xiECryYqq884vD1/MoxuPQ\nYWKSWXB4G/iD5vXamBNqF5TCJV8U8/53mKClWBTsMQxO2eCjPEqO6Yf1LViu4vZx\nOmB093Iet8h+DI93FYGRQFmYy8SKBb/jOnr83gXEKIbKSGccYNHy8QGlYMguX+Yb\nNbUGqKgr2LL2sk9rtLv8rCu/fSkJMhOw7Rz9N1TAVccZYLqGm+gNDDlI3TcKUQ6o\n1R4uE7TOX3OFCOsCAwEAAaAwMC4GCSqGSIb3DQEJDjEhMB8wDAYDVR0TAQH/BAIw\nADAPBgNVHQ8BAf8EBQMDB4AAMA0GCSqGSIb3DQEBBQUAA4IBMQAFJ9nGFHx5Mcg6\n/TnT3kvT8qaux6SwfCw35XepT9rJ7YppaMgeOanEGJdvjtZtYxIWzxq2E+lFcNGd\nAsJoNk1jnmvbFLARjTAfN9JSvxfkT6x+rcR8rSbpzYb19NV2QTUivrDuur5BvLI3\nCUHunT7bQaWuxbZK/GgZ4KiRIvplsUz09Ir6HDcLS2TNeswSRwqNYs1v1uY1TWeS\nUGbW391e7EsmesnHi8QdzqafwIjWqUoz55V8TMN0xJF7Dlwfw09NZ7rhh3hmC9aT\nk/s8jl+Cfaz9aumrTHex2RkBfBpfLNnTbkCrBuYSp2lkV7XSn6GRXL84QVIrVwZo\nRgQisMWQ0HWKVVGpAhh8u1PcRBHpJiCsK1AoN+TsQ/7N/cbGpyllS5IBAzRCDM9V\nUNT4A6BR\n-----END
51
- NEW CERTIFICATE REQUEST-----\n","domain_id":39,"expiration_date":"11/11/2012
52
- 12:56:14 PM","id":1,"name":"www","order_date":"11/11/2011 12:56:14 PM","private_key":"-----BEGIN
53
- RSA PRIVATE KEY-----\nMIIFewIBAAKCATEAtWrFPfxVitp92O2qtgYKfX8c5ic5MnSvxphHvVxb8A3nQfq3\nQ07At2sqy1DXW7EbGSoWi2V0eSV8lSHmAnKuKwhk0/9hnnmz6uNxu4V6IDKi4SzX\nZjBg4rYbOwcHq3c4EkLb42ZmKsNRRuEDhUOR/sOqIhFVIpwLQEonKvr1+cZ7CkBb\n3GIQKvJiqrzzi8PX8yjG49BhYpJZcHgb+IPm9dqYE2oXlMIlXxTz/neYoKVYFOwx\nDE7Z4KM8So7ph/UtWK7i9nE6YHT3ch63yH4Mj3cVgZFAWZjLxIoFv+M6evzeBcQo\nhspIZxxg0fLxAaVgyC5f5hs1tQaoqCvYsvayT2u0u/ysK799KQkyE7DtHP03VMBV\nxxlguoab6A0MOUjdNwpRDqjVHi4TtM5fc4UI6wID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AJ6UHhf7\nlgFNGdhy06nve2cc+sqRmQqkHr2OZcsndAP8A56MXTHEgbHyBucf02HfP3OofSd+\nSyvF9AxWqjxAV88soqKr9X6rAti+pVfDDYnKtlL3f24X3hyQuPVOsiZ6ZnyqVApB\nqIoXdVYY9N66roWvP9QHThqX1bqDaQ5j3fC/BthpDT7N5i1OHEVdbQQRg6S4xz68\nr+9tAoGZAIyiHwn1QZqCUsIKiffm4g5sfVPcNqHhtKPCOTnNkNxAM7G4XB9WQyBA\nzDnRRpwtFq+5R4XyJUyloSflZpltJ+T/aifq6lDn9sLf0ma6y+cCkTm06Lfx4MHw\nMGvuTjj6oOeGj30kAe35j6e0xcNyhGFTRK+QROKkdMFMV2V9a9Jo3wTOr4PYr8Q6\nt1BYovwF54fuQF/ceAFz\n-----END
54
- RSA PRIVATE KEY-----\n","ssl_certificate":null,"updated_at":"2011-11-11T20:56:36Z","available_approver_emails":"res-dom@iana.org,res-dom@iana.org,admin@example.com,administrator@example.com,hostmaster@example.com,root@example.com,webmaster@example.com,postmaster@example.com,admin@www.example.com,administrator@www.example.com,hostmaster@www.example.com,root@www.example.com,webmaster@www.example.com,postmaster@www.example.com"}}]'
55
- http_version: '1.1'
56
- recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
57
- recorded_with: VCR 2.2.5
@@ -1,57 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/domains/example.com/certificates
6
- body:
7
- encoding: UTF-8
8
- string: certificate[name]=www&certificate[contact_id]=1
9
- headers:
10
- Accept:
11
- - application/json
12
- Authorization:
13
- - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
14
- response:
15
- status:
16
- code: 201
17
- message: Created
18
- headers:
19
- X-Ua-Compatible:
20
- - IE=Edge
21
- Access-Control-Allow-Headers:
22
- - Authorization,Accepts,Content-Type
23
- X-Dnsimple-Api-Version:
24
- - 1.0.0
25
- Location:
26
- - https://test.dnsimple.com/domains/example.com/certificates/1
27
- Access-Control-Allow-Methods:
28
- - OPTIONS
29
- Content-Type:
30
- - application/json; charset=utf-8
31
- Access-Control-Allow-Origin:
32
- - ! '*'
33
- Date:
34
- - Fri, 11 Nov 2011 20:56:40 GMT
35
- Server:
36
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
37
- X-Runtime:
38
- - '26.966412'
39
- Content-Length:
40
- - '3934'
41
- Set-Cookie:
42
- - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlMDcwNmU3ZmFjYjkwNTNiZmMxZDYxNTg1NTlkOWJlMjFJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--532360b59a4ad0353247bd38617b4ede4dbe5e6c;
43
- path=/; HttpOnly
44
- Cache-Control:
45
- - no-cache
46
- body:
47
- encoding: UTF-8
48
- string: ! '{"certificate":{"approver_email":null,"certificate_status":"Awaiting
49
- Configuration","configured_at":"2011-11-11T20:56:36Z","contact_id":1,"created_at":"2011-11-11T20:56:14Z","csr":"-----BEGIN
50
- NEW CERTIFICATE REQUEST-----\nMIIDMjCCAeoCAQAwXTELMAkGA1UEBhMCVVMxFTATBgNVBAoTDEFudGhvbnkgRWRl\nbjEQMA4GA1UEBxMHTWFsYWJhcjELMAkGA1UECBMCRkwxGDAWBgNVBAMTD3d3dy5l\neGFtcGxlLmNvbTCCAVIwDQYJKoZIhvcNAQEBBQADggE/ADCCAToCggExALVqxT38\nVYrafdjtqrYGCn1/HOYnOTJ0r8aYR71cW/AN50H6t0NOwLdrKstQ11uxGxkqFotl\ndHklfJUh5gJyrisIZNP/YZ55s+rjcbuFeiAyouEs12YwYOK2GzsHB6t3OBJC2+Nm\nZirDUUbhA4VDkf7DqiIRVSKcC0BKJyr69fnGewpAW9xiECryYqq884vD1/MoxuPQ\nYWKSWXB4G/iD5vXamBNqF5TCJV8U8/53mKClWBTsMQxO2eCjPEqO6Yf1LViu4vZx\nOmB093Iet8h+DI93FYGRQFmYy8SKBb/jOnr83gXEKIbKSGccYNHy8QGlYMguX+Yb\nNbUGqKgr2LL2sk9rtLv8rCu/fSkJMhOw7Rz9N1TAVccZYLqGm+gNDDlI3TcKUQ6o\n1R4uE7TOX3OFCOsCAwEAAaAwMC4GCSqGSIb3DQEJDjEhMB8wDAYDVR0TAQH/BAIw\nADAPBgNVHQ8BAf8EBQMDB4AAMA0GCSqGSIb3DQEBBQUAA4IBMQAFJ9nGFHx5Mcg6\n/TnT3kvT8qaux6SwfCw35XepT9rJ7YppaMgeOanEGJdvjtZtYxIWzxq2E+lFcNGd\nAsJoNk1jnmvbFLARjTAfN9JSvxfkT6x+rcR8rSbpzYb19NV2QTUivrDuur5BvLI3\nCUHunT7bQaWuxbZK/GgZ4KiRIvplsUz09Ir6HDcLS2TNeswSRwqNYs1v1uY1TWeS\nUGbW391e7EsmesnHi8QdzqafwIjWqUoz55V8TMN0xJF7Dlwfw09NZ7rhh3hmC9aT\nk/s8jl+Cfaz9aumrTHex2RkBfBpfLNnTbkCrBuYSp2lkV7XSn6GRXL84QVIrVwZo\nRgQisMWQ0HWKVVGpAhh8u1PcRBHpJiCsK1AoN+TsQ/7N/cbGpyllS5IBAzRCDM9V\nUNT4A6BR\n-----END
51
- NEW CERTIFICATE REQUEST-----\n","domain_id":39,"expiration_date":"11/11/2012
52
- 12:56:14 PM","id":1,"name":"www","order_date":"11/11/2011 12:56:14 PM","private_key":"-----BEGIN
53
- RSA PRIVATE KEY-----\nMIIFewIBAAKCATEAtWrFPfxVitp92O2qtgYKfX8c5ic5MnSvxphHv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NO\nQNXP4SKE41k3orqwpt7QYBGefGtPoI8294D0YV1K78yYOMkA83KbjAr5aUcCRLdL\nXjk8E4esQAjWWYurdbwmrpD0WoKWgIlvM+s6aYjRzRYvamZa9bGk+a2n0zrM+HgX\nBhQYSdpd1DiSvuV561UgmAiIRmNYdT7txRmVRwKBmGZUaogrvtTSQ+vk2tquEXci\nNv8lmtI+DlYpQxNCpK9s0hg7hjFLihWz5HVYYaiDtFDYidX/cYasdBW2rgGJlEz6\nYXMsiHXYOTWwD4nNzm5hJtQdX8V5RRAqMm/4G7BChRI4FLLtQrk3PTfDOe/FM6Wv\nWnH4dY3KH8m4HnJ1wdh6NfHouo3uNB8Ylkaok6d7aTbK8rE6ItlJAoGZAJ6UHhf7\nlgFNGdhy06nve2cc+sqRmQqkHr2OZcsndAP8A56MXTHEgbHyBucf02HfP3OofSd+\nSyvF9AxWqjxAV88soqKr9X6rAti+pVfDDYnKtlL3f24X3hyQuPVOsiZ6ZnyqVApB\nqIoXdVYY9N66roWvP9QHThqX1bqDaQ5j3fC/BthpDT7N5i1OHEVdbQQRg6S4xz68\nr+9tAoGZAIyiHwn1QZqCUsIKiffm4g5sfVPcNqHhtKPCOTnNkNxAM7G4XB9WQyBA\nzDnRRpwtFq+5R4XyJUyloSflZpltJ+T/aifq6lDn9sLf0ma6y+cCkTm06Lfx4MHw\nMGvuTjj6oOeGj30kAe35j6e0xcNyhGFTRK+QROKkdMFMV2V9a9Jo3wTOr4PYr8Q6\nt1BYovwF54fuQF/ceAFz\n-----END
54
- RSA PRIVATE KEY-----\n","ssl_certificate":null,"updated_at":"2011-11-11T20:56:36Z","available_approver_emails":"res-dom@iana.org,res-dom@iana.org,admin@example.com,administrator@example.com,hostmaster@example.com,root@example.com,webmaster@example.com,postmaster@example.com,admin@www.example.com,administrator@www.example.com,hostmaster@www.example.com,root@www.example.com,webmaster@www.example.com,postmaster@www.example.com"}}'
55
- http_version: '1.1'
56
- recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
57
- recorded_with: VCR 2.2.5
@@ -1,57 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: put
5
- uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/domains/example.com/certificates/1/submit
6
- body:
7
- encoding: UTF-8
8
- string: certificate[approver_email]=admin%40example.com
9
- headers:
10
- Accept:
11
- - application/json
12
- Authorization:
13
- - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
14
- response:
15
- status:
16
- code: 200
17
- message: OK
18
- headers:
19
- X-Ua-Compatible:
20
- - IE=Edge
21
- Access-Control-Allow-Headers:
22
- - Authorization,Accepts,Content-Type
23
- X-Dnsimple-Api-Version:
24
- - 1.0.0
25
- Etag:
26
- - ! '"8f2d8c456cd7fe85919f3a532762385d"'
27
- Access-Control-Allow-Methods:
28
- - OPTIONS
29
- Content-Type:
30
- - application/json; charset=utf-8
31
- Access-Control-Allow-Origin:
32
- - ! '*'
33
- Date:
34
- - Sat, 12 Nov 2011 13:01:04 GMT
35
- Server:
36
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
37
- X-Runtime:
38
- - '9.576010'
39
- Content-Length:
40
- - '3949'
41
- Set-Cookie:
42
- - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlNjk3MjQ4OTU0NTYzMjliNWMwNDFhYzEyN2IwMmNhMzNJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--3f528e10ce8d7fcd773ecf939cb846d7f5da1d6c;
43
- path=/; HttpOnly
44
- Cache-Control:
45
- - max-age=0, private, must-revalidate
46
- body:
47
- encoding: UTF-8
48
- string: ! '{"certificate":{"approver_email":"admin@example.com","certificate_status":"Awaiting
49
- Configuration","configured_at":"2011-11-12T12:19:26Z","contact_id":1,"created_at":"2011-11-11T20:56:14Z","csr":"-----BEGIN
50
- NEW CERTIFICATE REQUEST-----\nMIIDMjCCAeoCAQAwXTELMAkGA1UEBhMCVVMxFTATBgNVBAoTDEFudGhvbnkgRWRl\nbjEQMA4GA1UEBxMHTWFsYWJhcjELMAkGA1UECBMCRkwxGDAWBgNVBAMTD3d3dy5l\neGFtcGxlLmNvbTCCAVIwDQYJKoZIhvcNAQEBBQADggE/ADCCAToCggExALVqxT38\nVYrafdjtqrYGCn1/HOYnOTJ0r8aYR71cW/AN50H6t0NOwLdrKstQ11uxGxkqFotl\ndHklfJUh5gJyrisIZNP/YZ55s+rjcbuFeiAyouEs12YwYOK2GzsHB6t3OBJC2+Nm\nZirDUUbhA4VDkf7DqiIRVSKcC0BKJyr69fnGewpAW9xiECryYqq884vD1/MoxuPQ\nYWKSWXB4G/iD5vXamBNqF5TCJV8U8/53mKClWBTsMQxO2eCjPEqO6Yf1LViu4vZx\nOmB093Iet8h+DI93FYGRQFmYy8SKBb/jOnr83gXEKIbKSGccYNHy8QGlYMguX+Yb\nNbUGqKgr2LL2sk9rtLv8rCu/fSkJMhOw7Rz9N1TAVccZYLqGm+gNDDlI3TcKUQ6o\n1R4uE7TOX3OFCOsCAwEAAaAwMC4GCSqGSIb3DQEJDjEhMB8wDAYDVR0TAQH/BAIw\nADAPBgNVHQ8BAf8EBQMDB4AAMA0GCSqGSIb3DQEBBQUAA4IBMQAFJ9nGFHx5Mcg6\n/TnT3kvT8qaux6SwfCw35XepT9rJ7YppaMgeOanEGJdvjtZtYxIWzxq2E+lFcNGd\nAsJoNk1jnmvbFLARjTAfN9JSvxfkT6x+rcR8rSbpzYb19NV2QTUivrDuur5BvLI3\nCUHunT7bQaWuxbZK/GgZ4KiRIvplsUz09Ir6HDcLS2TNeswSRwqNYs1v1uY1TWeS\nUGbW391e7EsmesnHi8QdzqafwIjWqUoz55V8TMN0xJF7Dlwfw09NZ7rhh3hmC9aT\nk/s8jl+Cfaz9aumrTHex2RkBfBpfLNnTbkCrBuYSp2lkV7XSn6GRXL84QVIrVwZo\nRgQisMWQ0HWKVVGpAhh8u1PcRBHpJiCsK1AoN+TsQ/7N/cbGpyllS5IBAzRCDM9V\nUNT4A6BR\n-----END
51
- NEW CERTIFICATE REQUEST-----\n","domain_id":39,"expiration_date":"11/11/2012
52
- 12:56:14 PM","id":1,"name":"www","order_date":"11/11/2011 12:56:14 PM","private_key":"-----BEGIN
53
- RSA PRIVATE KEY-----\nMIIFewIBAAKCATEAtWrFPfxVitp92O2qtgYKfX8c5ic5MnSvxphHvVxb8A3nQfq3\nQ07At2sqy1DXW7EbGSoWi2V0eSV8lSHmAnKuKwhk0/9hnnmz6uNxu4V6IDKi4SzX\nZjBg4rYbOwcHq3c4EkLb42ZmKsNRRuEDhUOR/sOqIhFVIpwLQEonKvr1+cZ7CkBb\n3GIQKvJiqrzzi8PX8yjG49BhYpJZcHgb+IPm9dqYE2oXlMIlXxTz/neYoKVYFOwx\nDE7Z4KM8So7ph/UtWK7i9nE6YHT3ch63yH4Mj3cVgZFAWZjLxIoFv+M6evzeBcQo\nhspIZxxg0fLxAaVgyC5f5hs1tQaoqCvYsvayT2u0u/ysK799KQkyE7DtHP03VMBV\nxxlguoab6A0MOUjdNwpRDqjVHi4TtM5fc4UI6wIDAQABAoIBLxQcLxiT1s62Kzbj\n6W+O9zCUf5x6UnXLnwG5BSgUoWEQv1aUJjMhB7jD+ZmpFKbBF0MHJcnK4pHo/OmL\nLLi7FqYxqMmx05PseV/FYAT19a/UOA5HV4BKeLFkP/4ov/i1ZxSGKRhHY/Lvbxxp\nLHR9N9ps4qQ7jFCFJ2j14hayx5GHyX/AcKzUx90NnXg2xMiXIiQHUYfpJEAdIGc4\njAMO8wjTQk9CGW3U/faibxdvRplpNbCV9Zmi7W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\nzDnRRpwtFq+5R4XyJUyloSflZpltJ+T/aifq6lDn9sLf0ma6y+cCkTm06Lfx4MHw\nMGvuTjj6oOeGj30kAe35j6e0xcNyhGFTRK+QROKkdMFMV2V9a9Jo3wTOr4PYr8Q6\nt1BYovwF54fuQF/ceAFz\n-----END
54
- RSA PRIVATE KEY-----\n","ssl_certificate":null,"updated_at":"2011-11-12T12:19:26Z","available_approver_emails":"res-dom@iana.org,res-dom@iana.org,admin@example.com,administrator@example.com,hostmaster@example.com,root@example.com,webmaster@example.com,postmaster@example.com,admin@www.example.com,administrator@www.example.com,hostmaster@www.example.com,root@www.example.com,webmaster@www.example.com,postmaster@www.example.com"}}'
55
- http_version: '1.1'
56
- recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
57
- recorded_with: VCR 2.2.5
@@ -1,50 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/contacts
6
- body:
7
- encoding: UTF-8
8
- string: contact[phone]=305%20111%202222&contact[city]=Miami&contact[first_name]=John&contact[state_province]=FL&contact[last_name]=Doe&contact[postal_code]=33143&contact[country]=US&contact[address1]=1%20SW%201st%20Street&contact[email_address]=john.doe%40example.com
9
- headers:
10
- Authorization:
11
- - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
12
- response:
13
- status:
14
- code: 201
15
- message: Created
16
- headers:
17
- X-Ua-Compatible:
18
- - IE=Edge
19
- Access-Control-Allow-Headers:
20
- - Authorization,Accepts,Content-Type
21
- X-Dnsimple-Api-Version:
22
- - 1.0.0
23
- Location:
24
- - https://test.dnsimple.com/contacts/4
25
- Access-Control-Allow-Methods:
26
- - OPTIONS
27
- Content-Type:
28
- - application/json; charset=utf-8
29
- Access-Control-Allow-Origin:
30
- - ! '*'
31
- Date:
32
- - Fri, 11 Nov 2011 20:33:54 GMT
33
- Server:
34
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
35
- X-Runtime:
36
- - '0.326136'
37
- Content-Length:
38
- - '406'
39
- Set-Cookie:
40
- - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlOTBjZWJmZjc2YmJkODEwODhkNzBmNmI3YWM2NWEwNjZJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--3be5473018837faded15ad4b1e10c8a95c74edb1;
41
- path=/; HttpOnly
42
- Cache-Control:
43
- - no-cache
44
- body:
45
- encoding: UTF-8
46
- string: ! '{"contact":{"address1":"1 SW 1st Street","address2":null,"city":"Miami","country":"US","created_at":"2011-11-11T20:33:54Z","email_address":"john.doe@example.com","fax":null,"first_name":"John","id":4,"job_title":null,"label":null,"last_name":"Doe","organization_name":null,"phone":"305
47
- 111 2222","phone_ext":null,"postal_code":"33143","state_province":"FL","updated_at":"2011-11-11T20:33:54Z","user_id":1}}'
48
- http_version: '1.1'
49
- recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
50
- recorded_with: VCR 2.2.5
@@ -1,50 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/contacts/1
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Authorization:
11
- - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
12
- response:
13
- status:
14
- code: 200
15
- message: OK
16
- headers:
17
- X-Ua-Compatible:
18
- - IE=Edge
19
- Access-Control-Allow-Headers:
20
- - Authorization,Accepts,Content-Type
21
- X-Dnsimple-Api-Version:
22
- - 1.0.0
23
- Etag:
24
- - ! '"e311cdfc85cf816f955c96e6777b2960"'
25
- Access-Control-Allow-Methods:
26
- - OPTIONS
27
- Content-Type:
28
- - application/json; charset=utf-8
29
- Access-Control-Allow-Origin:
30
- - ! '*'
31
- Date:
32
- - Fri, 11 Nov 2011 20:34:48 GMT
33
- Server:
34
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
35
- X-Runtime:
36
- - '0.435917'
37
- Content-Length:
38
- - '401'
39
- Set-Cookie:
40
- - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlNjI1ZTcwODA3NzhjMzY2NDBmMzA4YzExOTQzZWZlYjNJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--62ec9088d88ee5b5446a9e75637b33ef10ec8aed;
41
- path=/; HttpOnly
42
- Cache-Control:
43
- - max-age=0, private, must-revalidate
44
- body:
45
- encoding: UTF-8
46
- string: ! '{"contact":{"address1":"2045 Corey Rd","address2":"","city":"Malabar","country":"US","created_at":"2011-10-16T16:46:55Z","email_address":"anthonyeden@gmail.com","fax":"","first_name":"Anthony","id":1,"job_title":"","label":"","last_name":"Eden","organization_name":"","phone":"321
47
- 505 0025","phone_ext":null,"postal_code":"32950","state_province":"FL","updated_at":"2011-10-16T16:46:55Z","user_id":1}}'
48
- http_version: '1.1'
49
- recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
50
- recorded_with: VCR 2.2.5
@@ -1,149 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/domains
6
- body:
7
- encoding: UTF-8
8
- string: domain[name]=example0.com
9
- headers:
10
- Accept:
11
- - application/json
12
- Authorization:
13
- - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
14
- response:
15
- status:
16
- code: 201
17
- message: Created
18
- headers:
19
- X-Ua-Compatible:
20
- - IE=Edge
21
- Access-Control-Allow-Headers:
22
- - Authorization,Accepts,Content-Type
23
- X-Dnsimple-Api-Version:
24
- - 1.0.0
25
- Location:
26
- - https://test.dnsimple.com/domains/example0.com
27
- Access-Control-Allow-Methods:
28
- - OPTIONS
29
- Content-Type:
30
- - application/json; charset=utf-8
31
- Access-Control-Allow-Origin:
32
- - ! '*'
33
- Date:
34
- - Fri, 11 Nov 2011 20:13:05 GMT
35
- Server:
36
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
37
- X-Runtime:
38
- - '5.103398'
39
- Content-Length:
40
- - '413'
41
- Set-Cookie:
42
- - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlMWJiOTg2ZWU2ZTdkYTkzMDFmOTRhODAwOGY2MzIxMjRJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--f054d6190541c9e7551cf14f746ac29150a64a5a;
43
- path=/; HttpOnly
44
- Cache-Control:
45
- - no-cache
46
- body:
47
- encoding: UTF-8
48
- string: ! '{"domain":{"auto_renew":null,"created_at":"2011-11-11T20:13:01Z","expires_at":null,"id":42,"last_name_server_status_check":null,"lockable":true,"name":"example0.com","name_server_status":"unknown","parsed_expiration_date":null,"real_time":true,"registrant_id":null,"registration_status":"hosted","state":"hosted","updated_at":"2011-11-11T20:13:01Z","user_id":1,"uses_external_name_servers":null,"record_count":0}}'
49
- http_version: '1.1'
50
- recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
51
- - request:
52
- method: post
53
- uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/domains
54
- body:
55
- encoding: UTF-8
56
- string: domain[name]=example1.com
57
- headers:
58
- Accept:
59
- - application/json
60
- Authorization:
61
- - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
62
- response:
63
- status:
64
- code: 201
65
- message: Created
66
- headers:
67
- X-Ua-Compatible:
68
- - IE=Edge
69
- Access-Control-Allow-Headers:
70
- - Authorization,Accepts,Content-Type
71
- X-Dnsimple-Api-Version:
72
- - 1.0.0
73
- Location:
74
- - https://test.dnsimple.com/domains/example1.com
75
- Access-Control-Allow-Methods:
76
- - OPTIONS
77
- Content-Type:
78
- - application/json; charset=utf-8
79
- Access-Control-Allow-Origin:
80
- - ! '*'
81
- Date:
82
- - Fri, 11 Nov 2011 20:13:11 GMT
83
- Server:
84
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
85
- X-Runtime:
86
- - '6.008554'
87
- Content-Length:
88
- - '413'
89
- Set-Cookie:
90
- - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlOTA1OTE0NTdjNTQ0OTMwYTZkZmNhYzc2YjVmNzRlOWRJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--a0b803488b056619e9c9a90b7d3d94d63d3bd27b;
91
- path=/; HttpOnly
92
- Cache-Control:
93
- - no-cache
94
- body:
95
- encoding: UTF-8
96
- string: ! '{"domain":{"auto_renew":null,"created_at":"2011-11-11T20:13:06Z","expires_at":null,"id":43,"last_name_server_status_check":null,"lockable":true,"name":"example1.com","name_server_status":"unknown","parsed_expiration_date":null,"real_time":true,"registrant_id":null,"registration_status":"hosted","state":"hosted","updated_at":"2011-11-11T20:13:06Z","user_id":1,"uses_external_name_servers":null,"record_count":0}}'
97
- http_version: '1.1'
98
- recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
99
- - request:
100
- method: get
101
- uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/domains
102
- body:
103
- encoding: US-ASCII
104
- string: ''
105
- headers:
106
- Accept:
107
- - application/json
108
- Authorization:
109
- - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
110
- response:
111
- status:
112
- code: 200
113
- message: OK
114
- headers:
115
- X-Ua-Compatible:
116
- - IE=Edge
117
- Access-Control-Allow-Headers:
118
- - Authorization,Accepts,Content-Type
119
- X-Dnsimple-Api-Version:
120
- - 1.0.0
121
- Etag:
122
- - ! '"e20ab09f44139d8c9a7cb836af8412de"'
123
- Access-Control-Allow-Methods:
124
- - OPTIONS
125
- Content-Type:
126
- - application/json; charset=utf-8
127
- Access-Control-Allow-Origin:
128
- - ! '*'
129
- Date:
130
- - Fri, 11 Nov 2011 20:13:12 GMT
131
- Server:
132
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
133
- X-Runtime:
134
- - '0.710570'
135
- Content-Length:
136
- - '2194'
137
- Set-Cookie:
138
- - _dnsimple_session=BAh7CUkiD3Nlc3Npb25faWQGOgZFRiIlZTQ3NTM4OWMyZTI2NTYyY2Q3YzIyYzk1ZjRkMDYyYjJJIg5yZXR1cm5fdG8GOwBGSSINL2RvbWFpbnMGOwBGSSIVdXNlcl9jcmVkZW50aWFscwY7AEZJIgGANWMyNGU2MzhmMDYxZGVkZjdmOWEzYmI2NzE3YmY1MTI5YmZlMGI3Yzg4OThmZGU1YTZhMzRjMWQ5MDllMjJjZTZiMzE3ODM0ZWU3ZmNkZGI5ZWI0Nzg3YWI2ZTAzNWNhNGZhMmJmNDFlZGMyYjljMWRhMDc2MGQ3YzM4Zjc2NTgGOwBUSSIYdXNlcl9jcmVkZW50aWFsc19pZAY7AEZpBg%3D%3D--bc44fcfe069cfcad0aa4bdee121f273b6ba6fd25;
139
- path=/; HttpOnly
140
- Cache-Control:
141
- - max-age=0, private, must-revalidate
142
- body:
143
- encoding: UTF-8
144
- string: ! '[{"domain":{"auto_renew":null,"created_at":"2011-11-11T20:10:46Z","expires_at":"11/11/2012
145
- 12:10:00 PM","id":40,"last_name_server_status_check":null,"lockable":true,"name":"dnsimple-example-1321042237.com","name_server_status":"unknown","parsed_expiration_date":"2012-11-11T12:10:00Z","real_time":true,"registrant_id":1,"registration_status":"registered","state":"registered","updated_at":"2011-11-11T20:11:09Z","user_id":1,"uses_external_name_servers":null,"record_count":0}},{"domain":{"auto_renew":null,"created_at":"2011-11-11T20:11:34Z","expires_at":"11/11/2012
146
- 12:11:00 PM","id":41,"last_name_server_status_check":null,"lockable":true,"name":"dnsimple-example-1321042288.com","name_server_status":"unknown","parsed_expiration_date":"2012-11-11T12:11:00Z","real_time":true,"registrant_id":3,"registration_status":"registered","state":"registered","updated_at":"2011-11-11T20:12:00Z","user_id":1,"uses_external_name_servers":null,"record_count":0}},{"domain":{"auto_renew":null,"created_at":"2011-11-11T20:05:07Z","expires_at":null,"id":39,"last_name_server_status_check":null,"lockable":true,"name":"example.com","name_server_status":"unknown","parsed_expiration_date":null,"real_time":true,"registrant_id":null,"registration_status":"hosted","state":"hosted","updated_at":"2011-11-11T20:05:07Z","user_id":1,"uses_external_name_servers":null,"record_count":0}},{"domain":{"auto_renew":null,"created_at":"2011-11-11T20:13:01Z","expires_at":null,"id":42,"last_name_server_status_check":null,"lockable":true,"name":"example0.com","name_server_status":"unknown","parsed_expiration_date":null,"real_time":true,"registrant_id":null,"registration_status":"hosted","state":"hosted","updated_at":"2011-11-11T20:13:01Z","user_id":1,"uses_external_name_servers":null,"record_count":0}},{"domain":{"auto_renew":null,"created_at":"2011-11-11T20:13:06Z","expires_at":null,"id":43,"last_name_server_status_check":null,"lockable":true,"name":"example1.com","name_server_status":"unknown","parsed_expiration_date":null,"real_time":true,"registrant_id":null,"registration_status":"hosted","state":"hosted","updated_at":"2011-11-11T20:13:06Z","user_id":1,"uses_external_name_servers":null,"record_count":0}}]'
147
- http_version: '1.1'
148
- recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
149
- recorded_with: VCR 2.2.5
@@ -1,246 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/domains/example.com
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept:
11
- - application/json
12
- Authorization:
13
- - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
14
- response:
15
- status:
16
- code: 200
17
- message: OK
18
- headers:
19
- X-Ua-Compatible:
20
- - IE=Edge
21
- Access-Control-Allow-Headers:
22
- - Authorization,Accepts,Content-Type
23
- X-Dnsimple-Api-Version:
24
- - 1.0.0
25
- Etag:
26
- - ! '"24f073eea7b01a97c81f7582b82bed62"'
27
- Access-Control-Allow-Methods:
28
- - OPTIONS
29
- Content-Type:
30
- - application/json; charset=utf-8
31
- Access-Control-Allow-Origin:
32
- - ! '*'
33
- Date:
34
- - Fri, 11 Nov 2011 20:16:51 GMT
35
- Server:
36
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
37
- X-Runtime:
38
- - '0.696375'
39
- Content-Length:
40
- - '412'
41
- Set-Cookie:
42
- - _dnsimple_session=BAh7CUkiD3Nlc3Npb25faWQGOgZFRiIlNDZlNmVkZTc3OGYzMjY4MGUxYjdmZGJmZmEwYmE0NDJJIg5yZXR1cm5fdG8GOwBGSSIZL2RvbWFpbnMvZXhhbXBsZS5jb20GOwBGSSIVdXNlcl9jcmVkZW50aWFscwY7AEZJIgGANWMyNGU2MzhmMDYxZGVkZjdmOWEzYmI2NzE3YmY1MTI5YmZlMGI3Yzg4OThmZGU1YTZhMzRjMWQ5MDllMjJjZTZiMzE3ODM0ZWU3ZmNkZGI5ZWI0Nzg3YWI2ZTAzNWNhNGZhMmJmNDFlZGMyYjljMWRhMDc2MGQ3YzM4Zjc2NTgGOwBUSSIYdXNlcl9jcmVkZW50aWFsc19pZAY7AEZpBg%3D%3D--cd37e0f2a6bad9c2fb8bbc62dd2c75d17a577e7d;
43
- path=/; HttpOnly
44
- Cache-Control:
45
- - max-age=0, private, must-revalidate
46
- body:
47
- encoding: UTF-8
48
- string: ! '{"domain":{"auto_renew":null,"created_at":"2011-11-11T20:05:07Z","expires_at":null,"id":39,"last_name_server_status_check":null,"lockable":true,"name":"example.com","name_server_status":"unknown","parsed_expiration_date":null,"real_time":true,"registrant_id":null,"registration_status":"hosted","state":"hosted","updated_at":"2011-11-11T20:05:07Z","user_id":1,"uses_external_name_servers":null,"record_count":0}}'
49
- http_version: '1.1'
50
- recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
51
- - request:
52
- method: get
53
- uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/domains/example.com/records
54
- body:
55
- encoding: US-ASCII
56
- string: ''
57
- headers:
58
- Accept:
59
- - application/json
60
- Authorization:
61
- - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
62
- response:
63
- status:
64
- code: 200
65
- message: OK
66
- headers:
67
- X-Ua-Compatible:
68
- - IE=Edge
69
- Access-Control-Allow-Headers:
70
- - Authorization,Accepts,Content-Type
71
- X-Dnsimple-Api-Version:
72
- - 1.0.0
73
- Etag:
74
- - ! '"d751713988987e9331980363e24189ce"'
75
- Access-Control-Allow-Methods:
76
- - OPTIONS
77
- Content-Type:
78
- - application/json; charset=utf-8
79
- Access-Control-Allow-Origin:
80
- - ! '*'
81
- Date:
82
- - Fri, 11 Nov 2011 20:16:52 GMT
83
- Server:
84
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
85
- X-Runtime:
86
- - '0.655348'
87
- Content-Length:
88
- - '2'
89
- Set-Cookie:
90
- - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlZmY1ZmJiZWZiY2MwODAzZmNmYTFmZjM1ZDJiYWRiODdJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--1c9773a3d217749d1eb8e1796ae23027e20784eb;
91
- path=/; HttpOnly
92
- Cache-Control:
93
- - max-age=0, private, must-revalidate
94
- body:
95
- encoding: UTF-8
96
- string: ! '[]'
97
- http_version: '1.1'
98
- recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
99
- - request:
100
- method: get
101
- uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/templates/googleapps
102
- body:
103
- encoding: US-ASCII
104
- string: ''
105
- headers:
106
- Accept:
107
- - application/json
108
- Authorization:
109
- - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
110
- response:
111
- status:
112
- code: 200
113
- message: OK
114
- headers:
115
- X-Ua-Compatible:
116
- - IE=Edge
117
- Access-Control-Allow-Headers:
118
- - Authorization,Accepts,Content-Type
119
- X-Dnsimple-Api-Version:
120
- - 1.0.0
121
- Etag:
122
- - ! '"3649a89c5333cc5c491e30a29901f286"'
123
- Access-Control-Allow-Methods:
124
- - OPTIONS
125
- Content-Type:
126
- - application/json; charset=utf-8
127
- Access-Control-Allow-Origin:
128
- - ! '*'
129
- Date:
130
- - Fri, 11 Nov 2011 20:16:52 GMT
131
- Server:
132
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
133
- X-Runtime:
134
- - '0.307405'
135
- Content-Length:
136
- - '266'
137
- Set-Cookie:
138
- - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlNjdiYTQ3OTIyNzZmZjVkMGFhOGEwN2I4Y2MxMmEyZWNJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--662c626a025eeafa23e41f2b6e22e4d31f9eda57;
139
- path=/; HttpOnly
140
- Cache-Control:
141
- - max-age=0, private, must-revalidate
142
- body:
143
- encoding: UTF-8
144
- string: ! '{"dns_template":{"created_at":"2011-09-04T01:08:50Z","description":"The
145
- Google Mail Servers and Google Apps CNAME records in a single template.","id":3,"name":"Google
146
- Apps","short_name":"googleapps","updated_at":"2011-09-04T01:08:50Z","user_id":null,"visible":true}}'
147
- http_version: '1.1'
148
- recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
149
- - request:
150
- method: post
151
- uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/domains/example.com/templates/3/apply
152
- body:
153
- encoding: US-ASCII
154
- string: ''
155
- headers:
156
- Accept:
157
- - application/json
158
- Authorization:
159
- - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
160
- response:
161
- status:
162
- code: 200
163
- message: OK
164
- headers:
165
- X-Ua-Compatible:
166
- - IE=Edge
167
- Access-Control-Allow-Headers:
168
- - Authorization,Accepts,Content-Type
169
- X-Dnsimple-Api-Version:
170
- - 1.0.0
171
- Etag:
172
- - ! '"0a15ac15403eae5130591327fd7b360f"'
173
- Access-Control-Allow-Methods:
174
- - OPTIONS
175
- Content-Type:
176
- - application/json; charset=utf-8
177
- Access-Control-Allow-Origin:
178
- - ! '*'
179
- Date:
180
- - Fri, 11 Nov 2011 20:16:53 GMT
181
- Server:
182
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
183
- X-Runtime:
184
- - '1.071534'
185
- Content-Length:
186
- - '413'
187
- Set-Cookie:
188
- - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlMzBkMDNjZjMyMGNiNjA3ZDYzZWY2NjY2ODc4YjAxM2FJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--bbd0c2e269949b143932ed13bdc8037f1e4a7ab8;
189
- path=/; HttpOnly
190
- Cache-Control:
191
- - max-age=0, private, must-revalidate
192
- body:
193
- encoding: UTF-8
194
- string: ! '{"domain":{"auto_renew":null,"created_at":"2011-11-11T20:05:07Z","expires_at":null,"id":39,"last_name_server_status_check":null,"lockable":true,"name":"example.com","name_server_status":"unknown","parsed_expiration_date":null,"real_time":true,"registrant_id":null,"registration_status":"hosted","state":"hosted","updated_at":"2011-11-11T20:05:07Z","user_id":1,"uses_external_name_servers":null,"record_count":13}}'
195
- http_version: '1.1'
196
- recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
197
- - request:
198
- method: get
199
- uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/domains/example.com/records
200
- body:
201
- encoding: US-ASCII
202
- string: ''
203
- headers:
204
- Accept:
205
- - application/json
206
- Authorization:
207
- - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
208
- response:
209
- status:
210
- code: 200
211
- message: OK
212
- headers:
213
- X-Ua-Compatible:
214
- - IE=Edge
215
- Access-Control-Allow-Headers:
216
- - Authorization,Accepts,Content-Type
217
- X-Dnsimple-Api-Version:
218
- - 1.0.0
219
- Etag:
220
- - ! '"0294ef7bc6515407471bbe1dfb3a58ea"'
221
- Access-Control-Allow-Methods:
222
- - OPTIONS
223
- Content-Type:
224
- - application/json; charset=utf-8
225
- Access-Control-Allow-Origin:
226
- - ! '*'
227
- Date:
228
- - Fri, 11 Nov 2011 20:16:54 GMT
229
- Server:
230
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
231
- X-Runtime:
232
- - '0.664379'
233
- Content-Length:
234
- - '3422'
235
- Set-Cookie:
236
- - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlMjM5MmQ5NjZjOGI4ZDBmMjNjZjc0YWQyMDRiNGFmMTZJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--680fd40be1baa41b93e49c718980eb4dd293c075;
237
- path=/; HttpOnly
238
- Cache-Control:
239
- - max-age=0, private, must-revalidate
240
- body:
241
- encoding: UTF-8
242
- string: ! '[{"record":{"content":"ghs.google.com","created_at":"2011-11-11T20:16:53Z","domain_id":39,"domain_service_id":null,"id":67,"name":"calendar","pdns_identifier":null,"prio":null,"record_type":"CNAME","special_type":null,"ttl":3600,"updated_at":"2011-11-11T20:16:53Z"}},{"record":{"content":"ghs.google.com","created_at":"2011-11-11T20:16:53Z","domain_id":39,"domain_service_id":null,"id":69,"name":"dashboard","pdns_identifier":null,"prio":null,"record_type":"CNAME","special_type":null,"ttl":3600,"updated_at":"2011-11-11T20:16:53Z"}},{"record":{"content":"ghs.google.com","created_at":"2011-11-11T20:16:53Z","domain_id":39,"domain_service_id":null,"id":66,"name":"docs","pdns_identifier":null,"prio":null,"record_type":"CNAME","special_type":null,"ttl":3600,"updated_at":"2011-11-11T20:16:53Z"}},{"record":{"content":"ghs.google.com","created_at":"2011-11-11T20:16:53Z","domain_id":39,"domain_service_id":null,"id":65,"name":"mail","pdns_identifier":null,"prio":null,"record_type":"CNAME","special_type":null,"ttl":3600,"updated_at":"2011-11-11T20:16:53Z"}},{"record":{"content":"ghs.google.com","created_at":"2011-11-11T20:16:53Z","domain_id":39,"domain_service_id":null,"id":68,"name":"pages","pdns_identifier":null,"prio":null,"record_type":"CNAME","special_type":null,"ttl":3600,"updated_at":"2011-11-11T20:16:53Z"}},{"record":{"content":"aspmx.l.google.com","created_at":"2011-11-11T20:16:53Z","domain_id":39,"domain_service_id":null,"id":57,"name":"","pdns_identifier":null,"prio":10,"record_type":"MX","special_type":null,"ttl":3600,"updated_at":"2011-11-11T20:16:53Z"}},{"record":{"content":"alt1.aspmx.l.google.com","created_at":"2011-11-11T20:16:53Z","domain_id":39,"domain_service_id":null,"id":58,"name":"","pdns_identifier":null,"prio":20,"record_type":"MX","special_type":null,"ttl":3600,"updated_at":"2011-11-11T20:16:53Z"}},{"record":{"content":"alt2.aspmx.l.google.com","created_at":"2011-11-11T20:16:53Z","domain_id":39,"domain_service_id":null,"id":59,"name":"","pdns_identifier":null,"prio":20,"record_type":"MX","special_type":null,"ttl":3600,"updated_at":"2011-11-11T20:16:53Z"}},{"record":{"content":"aspmx2.googlemail.com","created_at":"2011-11-11T20:16:53Z","domain_id":39,"domain_service_id":null,"id":60,"name":"","pdns_identifier":null,"prio":30,"record_type":"MX","special_type":null,"ttl":3600,"updated_at":"2011-11-11T20:16:53Z"}},{"record":{"content":"aspmx3.googlemail.com","created_at":"2011-11-11T20:16:53Z","domain_id":39,"domain_service_id":null,"id":61,"name":"","pdns_identifier":null,"prio":30,"record_type":"MX","special_type":null,"ttl":3600,"updated_at":"2011-11-11T20:16:53Z"}},{"record":{"content":"aspmx4.googlemail.com","created_at":"2011-11-11T20:16:53Z","domain_id":39,"domain_service_id":null,"id":62,"name":"","pdns_identifier":null,"prio":30,"record_type":"MX","special_type":null,"ttl":3600,"updated_at":"2011-11-11T20:16:53Z"}},{"record":{"content":"aspmx5.googlemail.com","created_at":"2011-11-11T20:16:53Z","domain_id":39,"domain_service_id":null,"id":63,"name":"","pdns_identifier":null,"prio":30,"record_type":"MX","special_type":null,"ttl":3600,"updated_at":"2011-11-11T20:16:53Z"}},{"record":{"content":"v=spf1
243
- a include:_spf.google.com -all","created_at":"2011-11-11T20:16:53Z","domain_id":39,"domain_service_id":null,"id":64,"name":"","pdns_identifier":null,"prio":null,"record_type":"TXT","special_type":"SPF","ttl":3600,"updated_at":"2011-11-11T20:16:53Z"}}]'
244
- http_version: '1.1'
245
- recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
246
- recorded_with: VCR 2.2.5