digital_ocean 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -1
- data/digital_ocean.gemspec +1 -1
- data/lib/digital_ocean/version.rb +1 -1
- data/spec/api_spec.rb +1 -1
- data/spec/vcr/cassettes/DigitalOcean_API/_domains/_create/should_be_successful.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_domains/_create/should_return_domain_id.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_domains/_create_record/should_be_successful.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_domains/_create_record/should_return_record_id.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_domains/_delete/should_be_successful.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_domains/_delete_record/should_be_successful.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_domains/_edit_record/should_be_successful.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_domains/_list/should_be_successful.yml +17 -11
- data/spec/vcr/cassettes/DigitalOcean_API/_domains/_list/should_return_a_list_of_all_domains.yml +17 -11
- data/spec/vcr/cassettes/DigitalOcean_API/_domains/_list_records/should_be_successful.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_domains/_list_records/should_return_a_list_of_all_domain_records.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_domains/_show/should_be_successful.yml +7 -5
- data/spec/vcr/cassettes/DigitalOcean_API/_domains/_show_record/should_be_successful.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_create/should_be_successful.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_create/should_return_droplet_id.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_delete/should_be_successful.yml +4 -4
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_disable_backups/should_be_successful.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_enable_backups/should_be_successful.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_list/should_be_successful.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_list/should_return_a_list_of_all_droplets.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_password_reset/should_be_successful.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_power_cycle/should_be_successful.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_power_off/should_be_successful.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_power_on/should_be_successful.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_reboot/should_be_successful.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_rebuild/should_be_successful.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_resize/should_be_successful.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_restore/should_be_successful.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_show/should_be_successful.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_shutdown/should_be_successful.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_snapshot/should_be_successful.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_images/_delete/invalid/should_not_be_successful.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_images/_delete/valid/should_be_successful.yml +3 -3
- data/spec/vcr/cassettes/DigitalOcean_API/_images/_list/with_filter_global/should_be_successful.yml +31 -23
- data/spec/vcr/cassettes/DigitalOcean_API/_images/_list/with_filter_global/should_return_global_images.yml +31 -23
- data/spec/vcr/cassettes/DigitalOcean_API/_images/_list/with_filter_my_images/should_be_successful.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_images/_list/with_filter_my_images/should_return_my_images.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_images/_list/without_filter/should_be_successful.yml +32 -24
- data/spec/vcr/cassettes/DigitalOcean_API/_images/_list/without_filter/should_return_a_list_of_all_images.yml +32 -24
- data/spec/vcr/cassettes/DigitalOcean_API/_images/_show/invalid/should_not_be_successful.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_images/_show/valid/should_be_successful.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_images/_show/valid/should_return_the_image.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_regions/_list/should_be_successful.yml +3 -3
- data/spec/vcr/cassettes/DigitalOcean_API/_regions/_list/should_return_a_list_of_all_available_regions.yml +3 -3
- data/spec/vcr/cassettes/DigitalOcean_API/_regions/_list/should_return_a_list_of_all_regions.yml +3 -3
- data/spec/vcr/cassettes/DigitalOcean_API/_sizes/_list/should_be_successful.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_sizes/_list/should_return_a_list_of_all_droplet_sizes.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_sizes/_list/should_return_the_correct_ID_for_the_96GB_size.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_ssh_keys/_add/should_be_successful.yml +3 -3
- data/spec/vcr/cassettes/DigitalOcean_API/_ssh_keys/_delete/should_be_successful.yml +5 -5
- data/spec/vcr/cassettes/DigitalOcean_API/_ssh_keys/_edit/should_be_successful.yml +3 -3
- data/spec/vcr/cassettes/DigitalOcean_API/_ssh_keys/_list/should_be_successful.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_ssh_keys/_list/should_return_a_list_of_all_SSH_keys.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_ssh_keys/_show/invalid/should_not_be_successful.yml +2 -2
- data/spec/vcr/cassettes/DigitalOcean_API/_ssh_keys/_show/valid/should_be_successful.yml +3 -3
- data/spec/vcr/cassettes/DigitalOcean_API/_ssh_keys/_show/valid/should_return_a_list_of_all_SSH_keys.yml +3 -3
- data/spec/vcr/cassettes/DigitalOcean_API/_ssh_keys/_show/valid/should_return_the_public_keykey.yml +3 -3
- metadata +30 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fcfb8cab261fe88b3d65fef73972e56cc9dc1ed
|
4
|
+
data.tar.gz: de2ba582c1187ab7a08a42bf1fbb4e407c93c131
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 514ff9bd2314457f22f7e5ae57bb559cb4409a38d7aaadbaa3fd21df84e1cc181323bd69b088376d2bc531d850748c97b6b46534a3e6a6f30a37934648391e1f
|
7
|
+
data.tar.gz: 9c0ae838d4a2d151b108815cf055190e32026136f5f5e8ceeb5a0a10513b31381470fe18bd06b23fe91607d782c9a3c14a4c23d480b20db500a5e034fe16a0f0
|
data/CHANGELOG.md
CHANGED
@@ -1,12 +1,21 @@
|
|
1
1
|
## unreleased
|
2
2
|
|
3
|
-
* [Full Changelog](https://github.com/rmoriz/digital_ocean/compare/v1.
|
3
|
+
* [Full Changelog](https://github.com/rmoriz/digital_ocean/compare/v1.4.0...master)
|
4
|
+
|
5
|
+
|
6
|
+
## 1.4.0 / 2014-04-26
|
7
|
+
|
8
|
+
* upgrade Faraday (contributed by github user mrloop)
|
9
|
+
|
10
|
+
* [Full Changelog](https://github.com/rmoriz/digital_ocean/compare/v1.3.0...v1.4.0)
|
4
11
|
|
5
12
|
|
6
13
|
## 1.3.0 / 2013-12-30
|
7
14
|
|
8
15
|
* on droplet delete use ```scrub_data``` by default
|
9
16
|
|
17
|
+
* [Full Changelog](https://github.com/rmoriz/digital_ocean/compare/v1.2.0...v1.3.0)
|
18
|
+
|
10
19
|
|
11
20
|
## 1.2.0 / 2013-09-07
|
12
21
|
|
data/digital_ocean.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |gem|
|
|
23
23
|
gem.add_runtime_dependency 'jruby-openssl'
|
24
24
|
end
|
25
25
|
|
26
|
-
gem.add_dependency 'faraday', '~> 0.
|
26
|
+
gem.add_dependency 'faraday', '~> 0.9.0'
|
27
27
|
gem.add_dependency 'faraday_middleware', '~> 0.9.0'
|
28
28
|
gem.add_dependency 'json'
|
29
29
|
gem.add_dependency 'rash'
|
data/spec/api_spec.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.digitalocean.com/domains/new?client_id=client_id_XXXXXXXXXXXXXXXXXXX&
|
5
|
+
uri: https://api.digitalocean.com/domains/new?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX&ip_address=192.81.213.70&name=test.do.cityhawk.ru
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -40,7 +40,7 @@ http_interactions:
|
|
40
40
|
- miss
|
41
41
|
body:
|
42
42
|
encoding: US-ASCII
|
43
|
-
string:
|
43
|
+
string: "{\"status\":\"OK\",\"domain\":{\"id\":30001,\"name\":\"test.do.cityhawk.ru\"}}"
|
44
44
|
http_version:
|
45
45
|
recorded_at: Sun, 09 Jun 2013 02:35:34 GMT
|
46
46
|
recorded_with: VCR 2.5.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.digitalocean.com/domains/new?client_id=client_id_XXXXXXXXXXXXXXXXXXX&
|
5
|
+
uri: https://api.digitalocean.com/domains/new?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX&ip_address=192.81.213.70&name=test.do.cityhawk.ru
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -40,7 +40,7 @@ http_interactions:
|
|
40
40
|
- miss
|
41
41
|
body:
|
42
42
|
encoding: US-ASCII
|
43
|
-
string:
|
43
|
+
string: "{\"status\":\"OK\",\"domain\":{\"id\":30004,\"name\":\"test.do.cityhawk.ru\"}}"
|
44
44
|
http_version:
|
45
45
|
recorded_at: Sun, 09 Jun 2013 02:38:54 GMT
|
46
46
|
recorded_with: VCR 2.5.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.digitalocean.com/domains/30163/records/new?client_id=client_id_XXXXXXXXXXXXXXXXXXX&
|
5
|
+
uri: https://api.digitalocean.com/domains/30163/records/new?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX&data=bar&name=foo&record_type=TXT
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -40,7 +40,7 @@ http_interactions:
|
|
40
40
|
- miss
|
41
41
|
body:
|
42
42
|
encoding: US-ASCII
|
43
|
-
string:
|
43
|
+
string: "{\"status\":\"OK\",\"record\":{\"id\":206996,\"domain_id\":30163,\"record_type\":\"TXT\",\"name\":\"foo\",\"data\":\"bar\",\"priority\":null,\"port\":null,\"weight\":null}}"
|
44
44
|
http_version:
|
45
45
|
recorded_at: Sun, 09 Jun 2013 15:36:11 GMT
|
46
46
|
recorded_with: VCR 2.5.0
|
data/spec/vcr/cassettes/DigitalOcean_API/_domains/_create_record/should_return_record_id.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.digitalocean.com/domains/30163/records/new?client_id=client_id_XXXXXXXXXXXXXXXXXXX&
|
5
|
+
uri: https://api.digitalocean.com/domains/30163/records/new?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX&data=bar&name=foo&record_type=TXT
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -40,7 +40,7 @@ http_interactions:
|
|
40
40
|
- miss
|
41
41
|
body:
|
42
42
|
encoding: US-ASCII
|
43
|
-
string:
|
43
|
+
string: "{\"status\":\"OK\",\"record\":{\"id\":206997,\"domain_id\":30163,\"record_type\":\"TXT\",\"name\":\"foo\",\"data\":\"bar\",\"priority\":null,\"port\":null,\"weight\":null}}"
|
44
44
|
http_version:
|
45
45
|
recorded_at: Sun, 09 Jun 2013 15:36:11 GMT
|
46
46
|
recorded_with: VCR 2.5.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.digitalocean.com/domains/30158/destroy?client_id=client_id_XXXXXXXXXXXXXXXXXXX
|
5
|
+
uri: https://api.digitalocean.com/domains/30158/destroy?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -40,7 +40,7 @@ http_interactions:
|
|
40
40
|
- miss
|
41
41
|
body:
|
42
42
|
encoding: US-ASCII
|
43
|
-
string:
|
43
|
+
string: "{\"status\":\"OK\"}"
|
44
44
|
http_version:
|
45
45
|
recorded_at: Sun, 09 Jun 2013 15:16:12 GMT
|
46
46
|
recorded_with: VCR 2.5.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.digitalocean.com/domains/30163/records/206997/destroy?client_id=client_id_XXXXXXXXXXXXXXXXXXX
|
5
|
+
uri: https://api.digitalocean.com/domains/30163/records/206997/destroy?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -40,7 +40,7 @@ http_interactions:
|
|
40
40
|
- miss
|
41
41
|
body:
|
42
42
|
encoding: US-ASCII
|
43
|
-
string:
|
43
|
+
string: "{\"status\":\"OK\"}"
|
44
44
|
http_version:
|
45
45
|
recorded_at: Sun, 09 Jun 2013 15:39:29 GMT
|
46
46
|
recorded_with: VCR 2.5.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.digitalocean.com/domains/30163/records/206982/edit?client_id=client_id_XXXXXXXXXXXXXXXXXXX&
|
5
|
+
uri: https://api.digitalocean.com/domains/30163/records/206982/edit?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX&data=8.8.8.8&record_type=A
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -40,7 +40,7 @@ http_interactions:
|
|
40
40
|
- miss
|
41
41
|
body:
|
42
42
|
encoding: US-ASCII
|
43
|
-
string:
|
43
|
+
string: "{\"status\":\"OK\",\"record\":{\"id\":206982,\"domain_id\":30163,\"record_type\":\"A\",\"name\":\"@\",\"data\":\"8.8.8.8\",\"priority\":null,\"port\":null,\"weight\":null}}"
|
44
44
|
http_version:
|
45
45
|
recorded_at: Sun, 09 Jun 2013 15:30:49 GMT
|
46
46
|
recorded_with: VCR 2.5.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.digitalocean.com/domains?client_id=client_id_XXXXXXXXXXXXXXXXXXX
|
5
|
+
uri: https://api.digitalocean.com/domains?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -42,16 +42,22 @@ http_interactions:
|
|
42
42
|
- miss
|
43
43
|
body:
|
44
44
|
encoding: US-ASCII
|
45
|
-
string:
|
46
|
-
(
|
47
|
-
;
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
;
|
54
|
-
|
45
|
+
string: "{\"status\":\"OK\",\"domains\":[{\"id\":26230,\"name\":\"chefserver.do.cityhawk.ru\",\"ttl\":10800,\"live_zone_file\":\"$TTL\\t600\\n@\\t\\tIN\\tSOA\\tNS1.DIGITALOCEAN.COM.\\thostmaster.chefserver.do.cityhawk.ru.
|
46
|
+
(\\n\\t\\t\\t1369610095 ; last update: 2013-05-26 23:14:55 UTC\\n\\t\\t\\t3600
|
47
|
+
; refresh\\n\\t\\t\\t900 ; retry\\n\\t\\t\\t1209600 ; expire\\n\\t\\t\\t10800
|
48
|
+
; ttl\\n\\t\\t\\t)\\n IN NS NS1.DIGITALOCEAN.COM.\\n
|
49
|
+
\ NS NS2.DIGITALOCEAN.COM.\\n NS
|
50
|
+
\ NS3.DIGITALOCEAN.COM.\\n@\\tIN A\\t192.81.213.70\\n\",\"error\":null,\"zone_file_with_error\":null},{\"id\":26233,\"name\":\"hadoop001.do.cityhawk.ru\",\"ttl\":10800,\"live_zone_file\":\"$TTL\\t600\\n@\\t\\tIN\\tSOA\\tNS1.DIGITALOCEAN.COM.\\thostmaster.hadoop001.do.cityhawk.ru.
|
51
|
+
(\\n\\t\\t\\t1370638105 ; last update: 2013-06-07 20:48:25 UTC\\n\\t\\t\\t3600
|
52
|
+
; refresh\\n\\t\\t\\t900 ; retry\\n\\t\\t\\t1209600 ; expire\\n\\t\\t\\t10800
|
53
|
+
; ttl\\n\\t\\t\\t)\\n IN NS NS1.DIGITALOCEAN.COM.\\n
|
54
|
+
\ NS NS2.DIGITALOCEAN.COM.\\n NS
|
55
|
+
\ NS3.DIGITALOCEAN.COM.\\n@\\tIN A\\t198.199.71.249\\n\",\"error\":null,\"zone_file_with_error\":null},{\"id\":28755,\"name\":\"hadoop006.do.cityhawk.ru\",\"ttl\":1800,\"live_zone_file\":\"$TTL\\t600\\n@\\t\\tIN\\tSOA\\tNS1.DIGITALOCEAN.COM.\\thostmaster.hadoop006.do.cityhawk.ru.
|
56
|
+
(\\n\\t\\t\\t1370376343 ; last update: 2013-06-04 20:05:43 UTC\\n\\t\\t\\t3600
|
57
|
+
; refresh\\n\\t\\t\\t900 ; retry\\n\\t\\t\\t1209600 ; expire\\n\\t\\t\\t1800
|
58
|
+
; ttl\\n\\t\\t\\t)\\n IN NS NS1.DIGITALOCEAN.COM.\\n
|
59
|
+
\ NS NS2.DIGITALOCEAN.COM.\\n NS
|
60
|
+
\ NS3.DIGITALOCEAN.COM.\\n@\\tIN A\\t198.211.100.176\\n\",\"error\":null,\"zone_file_with_error\":null}]}"
|
55
61
|
http_version:
|
56
62
|
recorded_at: Sat, 08 Jun 2013 17:03:38 GMT
|
57
63
|
recorded_with: VCR 2.5.0
|
data/spec/vcr/cassettes/DigitalOcean_API/_domains/_list/should_return_a_list_of_all_domains.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.digitalocean.com/domains?client_id=client_id_XXXXXXXXXXXXXXXXXXX
|
5
|
+
uri: https://api.digitalocean.com/domains?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -42,16 +42,22 @@ http_interactions:
|
|
42
42
|
- miss
|
43
43
|
body:
|
44
44
|
encoding: US-ASCII
|
45
|
-
string:
|
46
|
-
(
|
47
|
-
;
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
;
|
54
|
-
|
45
|
+
string: "{\"status\":\"OK\",\"domains\":[{\"id\":26230,\"name\":\"chefserver.do.cityhawk.ru\",\"ttl\":10800,\"live_zone_file\":\"$TTL\\t600\\n@\\t\\tIN\\tSOA\\tNS1.DIGITALOCEAN.COM.\\thostmaster.chefserver.do.cityhawk.ru.
|
46
|
+
(\\n\\t\\t\\t1369610095 ; last update: 2013-05-26 23:14:55 UTC\\n\\t\\t\\t3600
|
47
|
+
; refresh\\n\\t\\t\\t900 ; retry\\n\\t\\t\\t1209600 ; expire\\n\\t\\t\\t10800
|
48
|
+
; ttl\\n\\t\\t\\t)\\n IN NS NS1.DIGITALOCEAN.COM.\\n
|
49
|
+
\ NS NS2.DIGITALOCEAN.COM.\\n NS
|
50
|
+
\ NS3.DIGITALOCEAN.COM.\\n@\\tIN A\\t192.81.213.70\\n\",\"error\":null,\"zone_file_with_error\":null},{\"id\":26233,\"name\":\"hadoop001.do.cityhawk.ru\",\"ttl\":10800,\"live_zone_file\":\"$TTL\\t600\\n@\\t\\tIN\\tSOA\\tNS1.DIGITALOCEAN.COM.\\thostmaster.hadoop001.do.cityhawk.ru.
|
51
|
+
(\\n\\t\\t\\t1370638105 ; last update: 2013-06-07 20:48:25 UTC\\n\\t\\t\\t3600
|
52
|
+
; refresh\\n\\t\\t\\t900 ; retry\\n\\t\\t\\t1209600 ; expire\\n\\t\\t\\t10800
|
53
|
+
; ttl\\n\\t\\t\\t)\\n IN NS NS1.DIGITALOCEAN.COM.\\n
|
54
|
+
\ NS NS2.DIGITALOCEAN.COM.\\n NS
|
55
|
+
\ NS3.DIGITALOCEAN.COM.\\n@\\tIN A\\t198.199.71.249\\n\",\"error\":null,\"zone_file_with_error\":null},{\"id\":28755,\"name\":\"hadoop006.do.cityhawk.ru\",\"ttl\":1800,\"live_zone_file\":\"$TTL\\t600\\n@\\t\\tIN\\tSOA\\tNS1.DIGITALOCEAN.COM.\\thostmaster.hadoop006.do.cityhawk.ru.
|
56
|
+
(\\n\\t\\t\\t1370376343 ; last update: 2013-06-04 20:05:43 UTC\\n\\t\\t\\t3600
|
57
|
+
; refresh\\n\\t\\t\\t900 ; retry\\n\\t\\t\\t1209600 ; expire\\n\\t\\t\\t1800
|
58
|
+
; ttl\\n\\t\\t\\t)\\n IN NS NS1.DIGITALOCEAN.COM.\\n
|
59
|
+
\ NS NS2.DIGITALOCEAN.COM.\\n NS
|
60
|
+
\ NS3.DIGITALOCEAN.COM.\\n@\\tIN A\\t198.211.100.176\\n\",\"error\":null,\"zone_file_with_error\":null}]}"
|
55
61
|
http_version:
|
56
62
|
recorded_at: Sat, 08 Jun 2013 17:03:38 GMT
|
57
63
|
recorded_with: VCR 2.5.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.digitalocean.com/domains/30163/records?client_id=client_id_XXXXXXXXXXXXXXXXXXX
|
5
|
+
uri: https://api.digitalocean.com/domains/30163/records?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -40,7 +40,7 @@ http_interactions:
|
|
40
40
|
- miss
|
41
41
|
body:
|
42
42
|
encoding: US-ASCII
|
43
|
-
string:
|
43
|
+
string: "{\"status\":\"OK\",\"records\":[{\"id\":206982,\"domain_id\":30163,\"record_type\":\"A\",\"name\":\"@\",\"data\":\"192.81.213.70\",\"priority\":null,\"port\":null,\"weight\":null},{\"id\":206983,\"domain_id\":30163,\"record_type\":\"NS\",\"name\":null,\"data\":\"NS1.DIGITALOCEAN.COM.\",\"priority\":null,\"port\":null,\"weight\":null},{\"id\":206984,\"domain_id\":30163,\"record_type\":\"NS\",\"name\":null,\"data\":\"NS2.DIGITALOCEAN.COM.\",\"priority\":null,\"port\":null,\"weight\":null},{\"id\":206985,\"domain_id\":30163,\"record_type\":\"NS\",\"name\":null,\"data\":\"NS3.DIGITALOCEAN.COM.\",\"priority\":null,\"port\":null,\"weight\":null}]}"
|
44
44
|
http_version:
|
45
45
|
recorded_at: Sun, 09 Jun 2013 15:23:34 GMT
|
46
46
|
recorded_with: VCR 2.5.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.digitalocean.com/domains/30163/records?client_id=client_id_XXXXXXXXXXXXXXXXXXX
|
5
|
+
uri: https://api.digitalocean.com/domains/30163/records?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -40,7 +40,7 @@ http_interactions:
|
|
40
40
|
- miss
|
41
41
|
body:
|
42
42
|
encoding: US-ASCII
|
43
|
-
string:
|
43
|
+
string: "{\"status\":\"OK\",\"records\":[{\"id\":206982,\"domain_id\":30163,\"record_type\":\"A\",\"name\":\"@\",\"data\":\"192.81.213.70\",\"priority\":null,\"port\":null,\"weight\":null},{\"id\":206983,\"domain_id\":30163,\"record_type\":\"NS\",\"name\":null,\"data\":\"NS1.DIGITALOCEAN.COM.\",\"priority\":null,\"port\":null,\"weight\":null},{\"id\":206984,\"domain_id\":30163,\"record_type\":\"NS\",\"name\":null,\"data\":\"NS2.DIGITALOCEAN.COM.\",\"priority\":null,\"port\":null,\"weight\":null},{\"id\":206985,\"domain_id\":30163,\"record_type\":\"NS\",\"name\":null,\"data\":\"NS3.DIGITALOCEAN.COM.\",\"priority\":null,\"port\":null,\"weight\":null}]}"
|
44
44
|
http_version:
|
45
45
|
recorded_at: Sun, 09 Jun 2013 15:26:20 GMT
|
46
46
|
recorded_with: VCR 2.5.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.digitalocean.com/domains/26230?client_id=client_id_XXXXXXXXXXXXXXXXXXX
|
5
|
+
uri: https://api.digitalocean.com/domains/26230?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -40,10 +40,12 @@ http_interactions:
|
|
40
40
|
- miss
|
41
41
|
body:
|
42
42
|
encoding: US-ASCII
|
43
|
-
string:
|
44
|
-
(
|
45
|
-
;
|
46
|
-
|
43
|
+
string: "{\"status\":\"OK\",\"domain\":{\"id\":26230,\"name\":\"chefserver.do.cityhawk.ru\",\"ttl\":10800,\"live_zone_file\":\"$TTL\\t600\\n@\\t\\tIN\\tSOA\\tNS1.DIGITALOCEAN.COM.\\thostmaster.chefserver.do.cityhawk.ru.
|
44
|
+
(\\n\\t\\t\\t1369610095 ; last update: 2013-05-26 23:14:55 UTC\\n\\t\\t\\t3600
|
45
|
+
; refresh\\n\\t\\t\\t900 ; retry\\n\\t\\t\\t1209600 ; expire\\n\\t\\t\\t10800
|
46
|
+
; ttl\\n\\t\\t\\t)\\n IN NS NS1.DIGITALOCEAN.COM.\\n
|
47
|
+
\ NS NS2.DIGITALOCEAN.COM.\\n NS
|
48
|
+
\ NS3.DIGITALOCEAN.COM.\\n@\\tIN A\\t192.81.213.70\\n\",\"error\":null,\"zone_file_with_error\":null}}"
|
47
49
|
http_version:
|
48
50
|
recorded_at: Sat, 08 Jun 2013 17:17:59 GMT
|
49
51
|
recorded_with: VCR 2.5.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.digitalocean.com/domains/30163/records/206982?client_id=client_id_XXXXXXXXXXXXXXXXXXX
|
5
|
+
uri: https://api.digitalocean.com/domains/30163/records/206982?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -40,7 +40,7 @@ http_interactions:
|
|
40
40
|
- miss
|
41
41
|
body:
|
42
42
|
encoding: US-ASCII
|
43
|
-
string:
|
43
|
+
string: "{\"status\":\"OK\",\"record\":{\"id\":206982,\"domain_id\":30163,\"record_type\":\"A\",\"name\":\"@\",\"data\":\"192.81.213.70\",\"priority\":null,\"port\":null,\"weight\":null}}"
|
44
44
|
http_version:
|
45
45
|
recorded_at: Sun, 09 Jun 2013 15:30:49 GMT
|
46
46
|
recorded_with: VCR 2.5.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.digitalocean.com/droplets/new?client_id=client_id_XXXXXXXXXXXXXXXXXXX&
|
5
|
+
uri: https://api.digitalocean.com/droplets/new?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX&image_id=25306&name=t1®ion_id=2&size_id=66
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -44,7 +44,7 @@ http_interactions:
|
|
44
44
|
- miss
|
45
45
|
body:
|
46
46
|
encoding: US-ASCII
|
47
|
-
string:
|
47
|
+
string: "{\"status\":\"OK\",\"droplet\":{\"id\":106267,\"name\":\"t1\",\"image_id\":25306,\"size_id\":66,\"event_id\":765542}}"
|
48
48
|
http_version:
|
49
49
|
recorded_at: Wed, 20 Feb 2013 11:05:16 GMT
|
50
50
|
recorded_with: VCR 2.4.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.digitalocean.com/droplets/new?client_id=client_id_XXXXXXXXXXXXXXXXXXX&
|
5
|
+
uri: https://api.digitalocean.com/droplets/new?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX&image_id=25306&name=t1®ion_id=2&size_id=66
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -44,7 +44,7 @@ http_interactions:
|
|
44
44
|
- miss
|
45
45
|
body:
|
46
46
|
encoding: US-ASCII
|
47
|
-
string:
|
47
|
+
string: "{\"status\":\"OK\",\"droplet\":{\"id\":106268,\"name\":\"t1\",\"image_id\":25306,\"size_id\":66,\"event_id\":765543}}"
|
48
48
|
http_version:
|
49
49
|
recorded_at: Wed, 20 Feb 2013 11:05:17 GMT
|
50
50
|
recorded_with: VCR 2.4.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: delete
|
5
|
-
uri: https://api.digitalocean.com/droplets/106265/destroy?client_id=client_id_XXXXXXXXXXXXXXXXXXX&
|
5
|
+
uri: https://api.digitalocean.com/droplets/106265/destroy?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX&scrub_data=1
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -10,7 +10,7 @@ http_interactions:
|
|
10
10
|
response:
|
11
11
|
status:
|
12
12
|
code: 200
|
13
|
-
message:
|
13
|
+
message:
|
14
14
|
headers:
|
15
15
|
server:
|
16
16
|
- nginx
|
@@ -44,7 +44,7 @@ http_interactions:
|
|
44
44
|
- invalidate, pass
|
45
45
|
body:
|
46
46
|
encoding: US-ASCII
|
47
|
-
string:
|
48
|
-
http_version:
|
47
|
+
string: "{\"status\":\"OK\",\"event_id\":765555}"
|
48
|
+
http_version:
|
49
49
|
recorded_at: Wed, 20 Feb 2013 11:05:27 GMT
|
50
50
|
recorded_with: VCR 2.4.0
|
data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_disable_backups/should_be_successful.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://api.digitalocean.com/droplets/106265/disable_backups?client_id=client_id_XXXXXXXXXXXXXXXXXXX
|
5
|
+
uri: https://api.digitalocean.com/droplets/106265/disable_backups?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -44,7 +44,7 @@ http_interactions:
|
|
44
44
|
- invalidate, pass
|
45
45
|
body:
|
46
46
|
encoding: US-ASCII
|
47
|
-
string:
|
47
|
+
string: "{\"status\":\"OK\",\"event_id\":765554}"
|
48
48
|
http_version:
|
49
49
|
recorded_at: Wed, 20 Feb 2013 11:05:26 GMT
|
50
50
|
recorded_with: VCR 2.4.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://api.digitalocean.com/droplets/106265/enable_backups?client_id=client_id_XXXXXXXXXXXXXXXXXXX
|
5
|
+
uri: https://api.digitalocean.com/droplets/106265/enable_backups?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -44,7 +44,7 @@ http_interactions:
|
|
44
44
|
- invalidate, pass
|
45
45
|
body:
|
46
46
|
encoding: US-ASCII
|
47
|
-
string:
|
47
|
+
string: "{\"status\":\"OK\",\"event_id\":765553}"
|
48
48
|
http_version:
|
49
49
|
recorded_at: Wed, 20 Feb 2013 11:05:25 GMT
|
50
50
|
recorded_with: VCR 2.4.0
|