kitchen-digitalocean 0.10.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,17 +0,0 @@
1
- HTTP/1.1 401 Unauthorized
2
- Server: cloudflare-nginx
3
- Date: Fri, 22 Aug 2014 00:23:51 GMT
4
- Content-Type: application/json; charset=utf-8
5
- Transfer-Encoding: chunked
6
- Connection: keep-alive
7
- Set-Cookie: __cfduid=de33405f4e3dfe14da3bc8fa075f282161408667031739; expires=Mon, 23-Dec-2019 23:50:00 GMT; path=/; domain=.digitalocean.com; HttpOnly
8
- Status: 401 Unauthorized
9
- Cache-Control: no-store
10
- Pragma: no-cache
11
- WWW-Authenticate: Bearer realm="DigitalOcean", error="invalid_token", error_description="The access token is invalid"
12
- X-Request-Id: 1da2bd7f00ee6102f4a105592ce7c5ba
13
- X-Runtime: 0.008179
14
- X-Rack-Cache: invalidate, pass
15
- CF-RAY: 15daec945b0d0ed9-EWR
16
-
17
- {"id":"unauthorized","message":"Unable to authenticate you."}
@@ -1,132 +0,0 @@
1
- HTTP/1.1 200 OK
2
- Server: cloudflare-nginx
3
- Date: Thu, 21 Aug 2014 23:51:40 GMT
4
- Content-Type: application/json; charset=utf-8
5
- Transfer-Encoding: chunked
6
- Connection: keep-alive
7
- Set-Cookie: __cfduid=de2ed0d345ecce441bb505881fcf50d341408665100399; expires=Mon, 23-Dec-2019 23:50:00 GMT; path=/; domain=.digitalocean.com; HttpOnly
8
- Status: 200 OK
9
- RateLimit-Limit: 1200
10
- RateLimit-Remaining: 1191
11
- RateLimit-Reset: 1408667389
12
- Cache-Control: must-revalidate, private, max-age=0
13
- X-Request-Id: 0018d68e007a1ddf51190a3f85746740
14
- X-Runtime: 0.175303
15
- X-Rack-Cache: miss
16
- CF-RAY: 15dabd6d78ac00af-EWR
17
-
18
- {
19
- "droplet":{
20
- "id":"1234",
21
- "name":"test-1234",
22
- "memory":512,
23
- "vcpus":1,
24
- "disk":20,
25
- "region":{
26
- "slug":"nyc2",
27
- "name":"New York 2",
28
- "sizes":[
29
- "1gb",
30
- "2gb",
31
- "4gb",
32
- "8gb",
33
- "32gb",
34
- "64gb",
35
- "512mb",
36
- "16gb",
37
- "48gb"
38
- ],
39
- "available":true,
40
- "features":[
41
- "virtio",
42
- "private_networking",
43
- "backups"
44
- ]
45
- },
46
- "image":{
47
- "id":3445812,
48
- "name":"Debian 7.0 x64",
49
- "distribution":"Debian",
50
- "slug":null,
51
- "public":false,
52
- "regions":[
53
- "nyc1",
54
- "ams1",
55
- "sfo1",
56
- "nyc2",
57
- "ams2",
58
- "sgp1",
59
- "lon1",
60
- "nyc3"
61
- ],
62
- "created_at":"2014-05-02T18:16:21Z",
63
- "action_ids":[
64
- 23178598,
65
- 23179182,
66
- 23179643,
67
- 23179647,
68
- 23179652,
69
- 23179657,
70
- 23179662,
71
- 23187797,
72
- 23188844,
73
- 23189209,
74
- 23190072,
75
- 23190271,
76
- 23190972,
77
- 23191081,
78
- 23192889,
79
- 23192901,
80
- 23193176,
81
- 23193805,
82
- 23193991,
83
- 23194165,
84
- 23194334,
85
- 23195135,
86
- 23196883,
87
- 23199694,
88
- 23200447
89
- ]
90
- },
91
- "size":{
92
- "slug":"512mb",
93
- "transfer":1,
94
- "price_monthly":5.0,
95
- "price_hourly":0.00744
96
- },
97
- "locked":false,
98
- "status":"active",
99
- "networks":{
100
- "v4":[
101
- {
102
- "ip_address":"10.128.210.209",
103
- "netmask":"255.255.0.0",
104
- "gateway":"10.128.1.1",
105
- "type":"private"
106
- },
107
- {
108
- "ip_address":"1.2.3.4",
109
- "netmask":"255.255.255.0",
110
- "gateway":"162.243.243.1",
111
- "type":"public"
112
- }
113
- ],
114
- "v6":[]
115
- },
116
- "kernel":{
117
- "id":952,
118
- "name":"* Debian 7.0 x64 vmlinuz-3.2.0-4-amd64 (3.2.54-2)",
119
- "version":"3.2.0-4-amd64"
120
- },
121
- "created_at":"2014-08-05T01:54:38Z",
122
- "features":[
123
- "private_networking",
124
- "virtio"
125
- ],
126
- "backup_ids":[],
127
- "snapshot_ids":[],
128
- "action_ids":[
129
- 30176699
130
- ]
131
- }
132
- }
@@ -1,16 +0,0 @@
1
- HTTP/1.1 204 No Content
2
- Server: cloudflare-nginx
3
- Date: Fri, 22 Aug 2014 00:08:34 GMT
4
- Content-Type: application/octet-stream
5
- Connection: keep-alive
6
- Set-Cookie: __cfduid=da9e671d485a710cdacdfab0537c9c5371408666113766; expires=Mon, 23-Dec-2019 23:50:00 GMT; path=/; domain=.digitalocean.com; HttpOnly
7
- Status: 204 No Content
8
- RateLimit-Limit: 1200
9
- RateLimit-Remaining: 1186
10
- RateLimit-Reset: 1408667389
11
- Cache-Control: no-cache
12
- X-Request-Id: b1916109f4827d5df75311055b476205
13
- X-Runtime: 0.426074
14
- X-Rack-Cache: invalidate, pass
15
- CF-RAY: 15dad62b0cfe00af-EWR
16
-
@@ -1,81 +0,0 @@
1
- HTTP/1.1 200 OK
2
- Server: cloudflare-nginx
3
- Date: Thu, 21 Aug 2014 23:51:40 GMT
4
- Content-Type: application/json; charset=utf-8
5
- Transfer-Encoding: chunked
6
- Connection: keep-alive
7
- Set-Cookie: __cfduid=de2ed0d345ecce441bb505881fcf50d341408665100399; expires=Mon, 23-Dec-2019 23:50:00 GMT; path=/; domain=.digitalocean.com; HttpOnly
8
- Status: 200 OK
9
- X-Frame-Options: SAMEORIGIN
10
- X-XSS-Protection: 1; mode=block
11
- X-Content-Type-Options: nosniff
12
- RateLimit-Limit: 5000
13
- RateLimit-Remaining: 4983
14
- RateLimit-Reset: 1432053600
15
- Cache-Control: max-age=0, private, must-revalidate
16
- X-Request-Id: 49ed05f3-328b-406c-99b0-e3a2ddadafa3
17
- X-Runtime: 0.236491
18
- CF-RAY: 1e90fbb7d41b0707-SJC
19
-
20
- {
21
- "droplet": {
22
- "id": 1234,
23
- "name": "test-droplet",
24
- "memory": 512,
25
- "vcpus": 1,
26
- "disk": 20,
27
- "locked": false,
28
- "status": "active",
29
- "kernel": {
30
- "id": 4703,
31
- "name": "Ubuntu 14.04 x64 vmlinuz-3.13.0-52-generic",
32
- "version": "3.13.0-52-generic"
33
- },
34
- "created_at": "2014-05-02T18:16:21Z",
35
- "features": [
36
- "virtio"
37
- ],
38
- "backup_ids": [],
39
- "next_backup_window": null,
40
- "snapshot_ids": [],
41
- "image": {
42
- "id": 11836690,
43
- "name": "14.04 x64",
44
- "distribution": "Ubuntu",
45
- "slug": "ubuntu-14-04-x64",
46
- "public": true,
47
- "regions": ["nyc1", "ams1", "sfo1", "nyc2", "ams2", "sgp1", "lon1", "nyc3", "ams3", "fra1"],
48
- "created_at": "2015-05-12T23:51:05Z",
49
- "min_disk_size": 20,
50
- "type": "snapshot"
51
- },
52
- "size": {
53
- "slug": "512mb",
54
- "memory": 512,
55
- "vcpus": 1,
56
- "disk": 20,
57
- "transfer": 1.0,
58
- "price_monthly": 5.0,
59
- "price_hourly": 0.00744,
60
- "regions": ["nyc1", "sgp1", "ams1", "sfo1", "nyc2", "lon1", "nyc3", "ams3", "ams2", "fra1"],
61
- "available": true
62
- },
63
- "size_slug": "512mb",
64
- "networks": {
65
- "v4": [{
66
- "ip_address": "45.55.141.244",
67
- "netmask": "255.255.192.0",
68
- "gateway": "45.55.128.1",
69
- "type": "public"
70
- }],
71
- "v6": []
72
- },
73
- "region": {
74
- "name": "New York 3",
75
- "slug": "nyc3",
76
- "sizes": ["32gb", "16gb", "2gb", "1gb", "4gb", "8gb", "512mb", "64gb", "48gb"],
77
- "features": ["virtio", "private_networking", "backups", "ipv6", "metadata"],
78
- "available": true
79
- }
80
- }
81
- }
@@ -1,52 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- #
3
- # Author:: Greg Fitzgerald (<greg@gregf.org>)
4
- #
5
- # Copyright (C) 2013, Greg Fitzgerald
6
- #
7
- # Licensed under the Apache License, Version 2.0 (the "License");
8
- # you may not use this file except in compliance with the License.
9
- # You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing, software
14
- # distributed under the License is distributed on an "AS IS" BASIS,
15
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- # See the License for the specific language governing permissions and
17
- # limitations under the License.
18
-
19
- require 'rspec'
20
- require 'webmock/rspec'
21
- require 'simplecov'
22
- require 'simplecov-console'
23
- require 'coveralls'
24
-
25
- SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
26
- Coveralls::SimpleCov::Formatter,
27
- SimpleCov::Formatter::HTMLFormatter,
28
- SimpleCov::Formatter::Console
29
- ])
30
- SimpleCov.start
31
-
32
- WebMock.disable_net_connect!(allow_localhost: true)
33
-
34
- require_relative '../lib/kitchen/driver/digitalocean'
35
-
36
- def create
37
- File.read(File.join(File.dirname(__FILE__), 'mocks', 'create.txt'))
38
- end
39
-
40
- def delete
41
- File.read(File.join(File.dirname(__FILE__), 'mocks', 'delete.txt'))
42
- end
43
-
44
- def auth_error
45
- File.read(File.join(File.dirname(__FILE__), 'mocks', 'auth_error.txt'))
46
- end
47
-
48
- def find
49
- File.read(File.join(File.dirname(__FILE__), 'mocks', 'find.txt'))
50
- end
51
-
52
- # vim: ai et ts=2 sts=2 sw=2 ft=ruby