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
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.digitalocean.com/droplets?client_id=client_id_XXXXXXXXXXXXXXXXXXX
|
5
|
+
uri: https://api.digitalocean.com/droplets?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
|
- miss
|
45
45
|
body:
|
46
46
|
encoding: US-ASCII
|
47
|
-
string:
|
47
|
+
string: "{\"status\":\"OK\",\"droplets\":[{\"id\":83102,\"name\":\"app200.ams.nl.moriz.net\",\"image_id\":25306,\"size_id\":63,\"region_id\":2,\"backups_active\":true,\"ip_address\":\"185.14.185.158\",\"status\":\"active\"},{\"id\":106265,\"name\":\"test\",\"image_id\":25306,\"size_id\":66,\"region_id\":2,\"backups_active\":null,\"ip_address\":\"192.81.220.107\",\"status\":\"active\"}]}"
|
48
48
|
http_version:
|
49
49
|
recorded_at: Wed, 20 Feb 2013 11:05:14 GMT
|
50
50
|
recorded_with: VCR 2.4.0
|
data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_list/should_return_a_list_of_all_droplets.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.digitalocean.com/droplets?client_id=client_id_XXXXXXXXXXXXXXXXXXX
|
5
|
+
uri: https://api.digitalocean.com/droplets?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
|
- miss
|
45
45
|
body:
|
46
46
|
encoding: US-ASCII
|
47
|
-
string:
|
47
|
+
string: "{\"status\":\"OK\",\"droplets\":[{\"id\":83102,\"name\":\"app200.ams.nl.moriz.net\",\"image_id\":25306,\"size_id\":63,\"region_id\":2,\"backups_active\":true,\"ip_address\":\"185.14.185.158\",\"status\":\"active\"},{\"id\":106265,\"name\":\"test\",\"image_id\":25306,\"size_id\":66,\"region_id\":2,\"backups_active\":null,\"ip_address\":\"192.81.220.107\",\"status\":\"active\"}]}"
|
48
48
|
http_version:
|
49
49
|
recorded_at: Wed, 20 Feb 2013 11:05:15 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/password_reset?client_id=client_id_XXXXXXXXXXXXXXXXXXX
|
5
|
+
uri: https://api.digitalocean.com/droplets/106265/password_reset?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\":765549}"
|
48
48
|
http_version:
|
49
49
|
recorded_at: Wed, 20 Feb 2013 11:05:22 GMT
|
50
50
|
recorded_with: VCR 2.4.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: put
|
5
|
-
uri: https://api.digitalocean.com/droplets/106265/power_cycle?client_id=client_id_XXXXXXXXXXXXXXXXXXX
|
5
|
+
uri: https://api.digitalocean.com/droplets/106265/power_cycle?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\":765545}"
|
48
48
|
http_version:
|
49
49
|
recorded_at: Wed, 20 Feb 2013 11:05:19 GMT
|
50
50
|
recorded_with: VCR 2.4.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: put
|
5
|
-
uri: https://api.digitalocean.com/droplets/106265/power_off?client_id=client_id_XXXXXXXXXXXXXXXXXXX
|
5
|
+
uri: https://api.digitalocean.com/droplets/106265/power_off?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\":765548}"
|
48
48
|
http_version:
|
49
49
|
recorded_at: Wed, 20 Feb 2013 11:05:21 GMT
|
50
50
|
recorded_with: VCR 2.4.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: put
|
5
|
-
uri: https://api.digitalocean.com/droplets/106265/power_on?client_id=client_id_XXXXXXXXXXXXXXXXXXX
|
5
|
+
uri: https://api.digitalocean.com/droplets/106265/power_on?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\":765547}"
|
48
48
|
http_version:
|
49
49
|
recorded_at: Wed, 20 Feb 2013 11:05:20 GMT
|
50
50
|
recorded_with: VCR 2.4.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: put
|
5
|
-
uri: https://api.digitalocean.com/droplets/106265/reboot?client_id=client_id_XXXXXXXXXXXXXXXXXXX
|
5
|
+
uri: https://api.digitalocean.com/droplets/106265/reboot?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\":765544}"
|
48
48
|
http_version:
|
49
49
|
recorded_at: Wed, 20 Feb 2013 11:05:18 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/rebuild?client_id=client_id_XXXXXXXXXXXXXXXXXXX&
|
5
|
+
uri: https://api.digitalocean.com/droplets/106265/rebuild?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX&image_id=57658
|
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\":765552}"
|
48
48
|
http_version:
|
49
49
|
recorded_at: Wed, 20 Feb 2013 11:05:25 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/106265/resize?client_id=client_id_XXXXXXXXXXXXXXXXXXX&
|
5
|
+
uri: https://api.digitalocean.com/droplets/106265/resize?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX&size_id=63
|
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\",\"event_id\":765550}"
|
48
48
|
http_version:
|
49
49
|
recorded_at: Wed, 20 Feb 2013 11:05:22 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/restore?client_id=client_id_XXXXXXXXXXXXXXXXXXX&
|
5
|
+
uri: https://api.digitalocean.com/droplets/106265/restore?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX&image_id=57658
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -42,7 +42,7 @@ http_interactions:
|
|
42
42
|
- invalidate, pass
|
43
43
|
body:
|
44
44
|
encoding: US-ASCII
|
45
|
-
string:
|
45
|
+
string: "{\"status\":\"OK\",\"event_id\":594687}"
|
46
46
|
http_version:
|
47
47
|
recorded_at: Thu, 24 Jan 2013 09:50:05 GMT
|
48
48
|
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/83102?client_id=client_id_XXXXXXXXXXXXXXXXXXX
|
5
|
+
uri: https://api.digitalocean.com/droplets/83102?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
|
- miss
|
45
45
|
body:
|
46
46
|
encoding: US-ASCII
|
47
|
-
string:
|
47
|
+
string: "{\"status\":\"OK\",\"droplet\":{\"id\":83102,\"name\":\"app200.ams.nl.moriz.net\",\"image_id\":25306,\"size_id\":63,\"region_id\":2,\"backups_active\":true,\"ip_address\":\"185.14.185.158\",\"status\":\"active\"}}"
|
48
48
|
http_version:
|
49
49
|
recorded_at: Wed, 20 Feb 2013 11:05:15 GMT
|
50
50
|
recorded_with: VCR 2.4.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: put
|
5
|
-
uri: https://api.digitalocean.com/droplets/106265/shutdown?client_id=client_id_XXXXXXXXXXXXXXXXXXX
|
5
|
+
uri: https://api.digitalocean.com/droplets/106265/shutdown?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\":765546}"
|
48
48
|
http_version:
|
49
49
|
recorded_at: Wed, 20 Feb 2013 11:05:20 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/106265/snapshot?client_id=client_id_XXXXXXXXXXXXXXXXXXX&
|
5
|
+
uri: https://api.digitalocean.com/droplets/106265/snapshot?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX&name=test_snapshot_1
|
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\",\"event_id\":765551}"
|
48
48
|
http_version:
|
49
49
|
recorded_at: Wed, 20 Feb 2013 11:05:23 GMT
|
50
50
|
recorded_with: VCR 2.4.0
|
data/spec/vcr/cassettes/DigitalOcean_API/_images/_delete/invalid/should_not_be_successful.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.digitalocean.com/images/0/destroy?client_id=client_id_XXXXXXXXXXXXXXXXXXX
|
5
|
+
uri: https://api.digitalocean.com/images/0/destroy?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -42,7 +42,7 @@ http_interactions:
|
|
42
42
|
- miss
|
43
43
|
body:
|
44
44
|
encoding: US-ASCII
|
45
|
-
string:
|
45
|
+
string: "{\"status\":\"ERROR\",\"error_message\":\"No Image Was Found\"}"
|
46
46
|
http_version:
|
47
47
|
recorded_at: Wed, 23 Jan 2013 21:16:25 GMT
|
48
48
|
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/images/57089/destroy?client_id=client_id_XXXXXXXXXXXXXXXXXXX
|
5
|
+
uri: https://api.digitalocean.com/images/57089/destroy?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -42,8 +42,8 @@ http_interactions:
|
|
42
42
|
- miss
|
43
43
|
body:
|
44
44
|
encoding: US-ASCII
|
45
|
-
string:
|
46
|
-
action you specified cannot be found"]}}
|
45
|
+
string: "{\"status\":\"ERROR\",\"error_message\":{\"action\":[\"Invalid Action
|
46
|
+
- The action you specified cannot be found\"]}}"
|
47
47
|
http_version:
|
48
48
|
recorded_at: Wed, 23 Jan 2013 21:16:24 GMT
|
49
49
|
recorded_with: VCR 2.4.0
|
data/spec/vcr/cassettes/DigitalOcean_API/_images/_list/with_filter_global/should_be_successful.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.digitalocean.com/images?client_id=client_id_XXXXXXXXXXXXXXXXXXX&
|
5
|
+
uri: https://api.digitalocean.com/images?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX&filter=global
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -42,28 +42,36 @@ http_interactions:
|
|
42
42
|
- miss
|
43
43
|
body:
|
44
44
|
encoding: US-ASCII
|
45
|
-
string:
|
46
|
-
5.8 x32"
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
Desktop"
|
62
|
-
|
63
|
-
|
64
|
-
12.
|
65
|
-
Server"
|
66
|
-
|
45
|
+
string: "{\"status\":\"OK\",\"images\":[{\"id\":1601,\"name\":\"CentOS 5.8 x64\",\"distribution\":\"CentOS\"},{\"id\":1602,\"name\":\"CentOS
|
46
|
+
5.8 x32\",\"distribution\":\"CentOS\"},{\"id\":1605,\"name\":\"CentOS 6.0
|
47
|
+
x32\",\"distribution\":\"CentOS\"},{\"id\":1606,\"name\":\"Fedora 15 x64\",\"distribution\":\"Fedora\"},{\"id\":1607,\"name\":\"Gentoo
|
48
|
+
x64\",\"distribution\":\"Gentoo\"},{\"id\":1609,\"name\":\"Ubuntu 11.10 x32
|
49
|
+
Server\",\"distribution\":\"Ubuntu\"},{\"id\":1611,\"name\":\"CentOS 6.2 x64\",\"distribution\":\"CentOS\"},{\"id\":1615,\"name\":\"Fedora
|
50
|
+
16 x64 Server\",\"distribution\":\"Fedora\"},{\"id\":1618,\"name\":\"Fedora
|
51
|
+
16 x64 Desktop\",\"distribution\":\"Fedora\"},{\"id\":2676,\"name\":\"Ubuntu
|
52
|
+
12.04 x64 Server\",\"distribution\":\"Ubuntu\"},{\"id\":4870,\"name\":\"Rails
|
53
|
+
3.2.2 - Nginx MySQL Passenger\",\"distribution\":\"Ubuntu\"},{\"id\":12573,\"name\":\"Debian
|
54
|
+
6.0 x64\",\"distribution\":\"Debian\"},{\"id\":12574,\"name\":\"CentOS 6.3
|
55
|
+
x64\",\"distribution\":\"CentOS\"},{\"id\":12575,\"name\":\"Debian 6.0 x32\",\"distribution\":\"Debian\"},{\"id\":12578,\"name\":\"CentOS
|
56
|
+
6.3 x32\",\"distribution\":\"CentOS\"},{\"id\":13632,\"name\":\"Open Suse
|
57
|
+
12.1 x32\",\"distribution\":\"openSUSE\"},{\"id\":13863,\"name\":\"Open Suse
|
58
|
+
12.2 X64\",\"distribution\":\"openSUSE\"},{\"id\":14097,\"name\":\"Ubuntu
|
59
|
+
10.04 x64 Server\",\"distribution\":\"Ubuntu\"},{\"id\":14098,\"name\":\"Ubuntu
|
60
|
+
10.04 x32 Server\",\"distribution\":\"Ubuntu\"},{\"id\":14218,\"name\":\"Ubuntu
|
61
|
+
12.04 x64 Desktop\",\"distribution\":\"Ubuntu\"},{\"id\":23593,\"name\":\"Arch
|
62
|
+
Linux 2012-09 x64\",\"distribution\":\"Arch Linux\"},{\"id\":25306,\"name\":\"Ubuntu
|
63
|
+
12.10 x32 Server\",\"distribution\":\"Ubuntu\"},{\"id\":25485,\"name\":\"Ubuntu
|
64
|
+
12.10 x32 Desktop\",\"distribution\":\"Ubuntu\"},{\"id\":25489,\"name\":\"Ubuntu
|
65
|
+
12.10 x64 Server\",\"distribution\":\"Ubuntu\"},{\"id\":25493,\"name\":\"Ubuntu
|
66
|
+
12.10 x64 Desktop\",\"distribution\":\"Ubuntu\"},{\"id\":32387,\"name\":\"Fedora
|
67
|
+
17 x32 Server\",\"distribution\":\"Fedora\"},{\"id\":32399,\"name\":\"Fedora
|
68
|
+
17 x32 Desktop\",\"distribution\":\"Fedora\"},{\"id\":32419,\"name\":\"Fedora
|
69
|
+
17 x64 Desktop\",\"distribution\":\"Fedora\"},{\"id\":32428,\"name\":\"Fedora
|
70
|
+
17 x64 Server\",\"distribution\":\"Fedora\"},{\"id\":42735,\"name\":\"Ubuntu
|
71
|
+
12.04 x32 Server\",\"distribution\":\"Ubuntu\"},{\"id\":43458,\"name\":\"Ubuntu
|
72
|
+
11.04x64 Server\",\"distribution\":\"Ubuntu\"},{\"id\":43462,\"name\":\"Ubuntu
|
73
|
+
11.04x32 Desktop\",\"distribution\":\"Ubuntu\"},{\"id\":46964,\"name\":\"LAMP
|
74
|
+
on Ubuntu 12.04\",\"distribution\":\"Ubuntu\"}]}"
|
67
75
|
http_version:
|
68
76
|
recorded_at: Wed, 23 Jan 2013 21:04:43 GMT
|
69
77
|
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/images?client_id=client_id_XXXXXXXXXXXXXXXXXXX&
|
5
|
+
uri: https://api.digitalocean.com/images?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX&filter=global
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -42,28 +42,36 @@ http_interactions:
|
|
42
42
|
- miss
|
43
43
|
body:
|
44
44
|
encoding: US-ASCII
|
45
|
-
string:
|
46
|
-
5.8 x32"
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
Desktop"
|
62
|
-
|
63
|
-
|
64
|
-
12.
|
65
|
-
Server"
|
66
|
-
|
45
|
+
string: "{\"status\":\"OK\",\"images\":[{\"id\":1601,\"name\":\"CentOS 5.8 x64\",\"distribution\":\"CentOS\"},{\"id\":1602,\"name\":\"CentOS
|
46
|
+
5.8 x32\",\"distribution\":\"CentOS\"},{\"id\":1605,\"name\":\"CentOS 6.0
|
47
|
+
x32\",\"distribution\":\"CentOS\"},{\"id\":1606,\"name\":\"Fedora 15 x64\",\"distribution\":\"Fedora\"},{\"id\":1607,\"name\":\"Gentoo
|
48
|
+
x64\",\"distribution\":\"Gentoo\"},{\"id\":1609,\"name\":\"Ubuntu 11.10 x32
|
49
|
+
Server\",\"distribution\":\"Ubuntu\"},{\"id\":1611,\"name\":\"CentOS 6.2 x64\",\"distribution\":\"CentOS\"},{\"id\":1615,\"name\":\"Fedora
|
50
|
+
16 x64 Server\",\"distribution\":\"Fedora\"},{\"id\":1618,\"name\":\"Fedora
|
51
|
+
16 x64 Desktop\",\"distribution\":\"Fedora\"},{\"id\":2676,\"name\":\"Ubuntu
|
52
|
+
12.04 x64 Server\",\"distribution\":\"Ubuntu\"},{\"id\":4870,\"name\":\"Rails
|
53
|
+
3.2.2 - Nginx MySQL Passenger\",\"distribution\":\"Ubuntu\"},{\"id\":12573,\"name\":\"Debian
|
54
|
+
6.0 x64\",\"distribution\":\"Debian\"},{\"id\":12574,\"name\":\"CentOS 6.3
|
55
|
+
x64\",\"distribution\":\"CentOS\"},{\"id\":12575,\"name\":\"Debian 6.0 x32\",\"distribution\":\"Debian\"},{\"id\":12578,\"name\":\"CentOS
|
56
|
+
6.3 x32\",\"distribution\":\"CentOS\"},{\"id\":13632,\"name\":\"Open Suse
|
57
|
+
12.1 x32\",\"distribution\":\"openSUSE\"},{\"id\":13863,\"name\":\"Open Suse
|
58
|
+
12.2 X64\",\"distribution\":\"openSUSE\"},{\"id\":14097,\"name\":\"Ubuntu
|
59
|
+
10.04 x64 Server\",\"distribution\":\"Ubuntu\"},{\"id\":14098,\"name\":\"Ubuntu
|
60
|
+
10.04 x32 Server\",\"distribution\":\"Ubuntu\"},{\"id\":14218,\"name\":\"Ubuntu
|
61
|
+
12.04 x64 Desktop\",\"distribution\":\"Ubuntu\"},{\"id\":23593,\"name\":\"Arch
|
62
|
+
Linux 2012-09 x64\",\"distribution\":\"Arch Linux\"},{\"id\":25306,\"name\":\"Ubuntu
|
63
|
+
12.10 x32 Server\",\"distribution\":\"Ubuntu\"},{\"id\":25485,\"name\":\"Ubuntu
|
64
|
+
12.10 x32 Desktop\",\"distribution\":\"Ubuntu\"},{\"id\":25489,\"name\":\"Ubuntu
|
65
|
+
12.10 x64 Server\",\"distribution\":\"Ubuntu\"},{\"id\":25493,\"name\":\"Ubuntu
|
66
|
+
12.10 x64 Desktop\",\"distribution\":\"Ubuntu\"},{\"id\":32387,\"name\":\"Fedora
|
67
|
+
17 x32 Server\",\"distribution\":\"Fedora\"},{\"id\":32399,\"name\":\"Fedora
|
68
|
+
17 x32 Desktop\",\"distribution\":\"Fedora\"},{\"id\":32419,\"name\":\"Fedora
|
69
|
+
17 x64 Desktop\",\"distribution\":\"Fedora\"},{\"id\":32428,\"name\":\"Fedora
|
70
|
+
17 x64 Server\",\"distribution\":\"Fedora\"},{\"id\":42735,\"name\":\"Ubuntu
|
71
|
+
12.04 x32 Server\",\"distribution\":\"Ubuntu\"},{\"id\":43458,\"name\":\"Ubuntu
|
72
|
+
11.04x64 Server\",\"distribution\":\"Ubuntu\"},{\"id\":43462,\"name\":\"Ubuntu
|
73
|
+
11.04x32 Desktop\",\"distribution\":\"Ubuntu\"},{\"id\":46964,\"name\":\"LAMP
|
74
|
+
on Ubuntu 12.04\",\"distribution\":\"Ubuntu\"}]}"
|
67
75
|
http_version:
|
68
76
|
recorded_at: Wed, 23 Jan 2013 21:04:43 GMT
|
69
77
|
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/images?client_id=client_id_XXXXXXXXXXXXXXXXXXX&
|
5
|
+
uri: https://api.digitalocean.com/images?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX&filter=my_images
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -42,7 +42,7 @@ http_interactions:
|
|
42
42
|
- miss
|
43
43
|
body:
|
44
44
|
encoding: US-ASCII
|
45
|
-
string:
|
45
|
+
string: "{\"status\":\"OK\",\"images\":[{\"id\":57002,\"name\":\"init\",\"distribution\":\"Ubuntu\"},{\"id\":57089,\"name\":\"test1\",\"distribution\":\"Ubuntu\"}]}"
|
46
46
|
http_version:
|
47
47
|
recorded_at: Wed, 23 Jan 2013 21:04:45 GMT
|
48
48
|
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/images?client_id=client_id_XXXXXXXXXXXXXXXXXXX&
|
5
|
+
uri: https://api.digitalocean.com/images?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX&filter=my_images
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -42,7 +42,7 @@ http_interactions:
|
|
42
42
|
- miss
|
43
43
|
body:
|
44
44
|
encoding: US-ASCII
|
45
|
-
string:
|
45
|
+
string: "{\"status\":\"OK\",\"images\":[{\"id\":57002,\"name\":\"init\",\"distribution\":\"Ubuntu\"},{\"id\":57089,\"name\":\"test1\",\"distribution\":\"Ubuntu\"}]}"
|
46
46
|
http_version:
|
47
47
|
recorded_at: Wed, 23 Jan 2013 21:04:46 GMT
|
48
48
|
recorded_with: VCR 2.4.0
|