kitchen-digitalocean 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d5bd11d573f8cd1d5b9f7d298ce216e501b74dc
|
4
|
+
data.tar.gz: adce4e30accf397ac559e5c31b053cf5f520360d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee1cb1862d944b0255822c009723c8c5e706e22ee2232dbe0a4e73bcb2af2a5cf802391bb2ade6c66526803707b46622558ddb4f332514b3eac605c0169cfe70
|
7
|
+
data.tar.gz: 1dcc1561e8b9fd35681b3707c52cab21b6ae5e28844b23e1c5b146c9ef1b9f194c05225261d53e25b557b5e5d0265ea426dc6c033373e0faac7e60a7952cf83c
|
data/README.md
CHANGED
@@ -32,13 +32,13 @@ Provide, at a minimum, the required driver options in your `.kitchen.yml` file:
|
|
32
32
|
require_chef_omnibus: latest (if you'll be using Chef)
|
33
33
|
|
34
34
|
By default, the driver will spawn a 512MB Ubuntu 12.10 instance in the New York
|
35
|
-
|
35
|
+
region. Additional, optional settings can be provided:
|
36
36
|
|
37
37
|
image_id: [SERVER IMAGE ID]
|
38
38
|
flavor_id: [SERVER FLAVOR ID]
|
39
39
|
name: [A UNIQUE SERVER NAME]
|
40
40
|
region_id: [A VALID DIGITAL OCEAN REGION ID]
|
41
|
-
ssh_key_ids: [SSH KEY
|
41
|
+
ssh_key_ids: [COMMA SEPERATED SSH KEY IDS FROM DIGITAL OCEAN]
|
42
42
|
|
43
43
|
### List of Regions
|
44
44
|
|
@@ -32,7 +32,7 @@ module Kitchen
|
|
32
32
|
default_config :flavor_id, '66'
|
33
33
|
default_config :name, nil
|
34
34
|
default_config :ssh_key_ids, nil
|
35
|
-
default_config :region_id, 1
|
35
|
+
default_config :region_id, '1'
|
36
36
|
default_config :username, 'root'
|
37
37
|
default_config :port, '22'
|
38
38
|
default_config :sudo, false
|
@@ -72,11 +72,11 @@ module Kitchen
|
|
72
72
|
|
73
73
|
def create_server
|
74
74
|
compute.servers.create(
|
75
|
-
:name
|
76
|
-
:image_id
|
77
|
-
:flavor_id
|
78
|
-
:region_id
|
79
|
-
:ssh_key_ids
|
75
|
+
:name => config[:name],
|
76
|
+
:image_id => config[:image_id],
|
77
|
+
:flavor_id => config[:flavor_id],
|
78
|
+
:region_id => config[:region_id],
|
79
|
+
:ssh_key_ids => config[:ssh_key_ids]
|
80
80
|
)
|
81
81
|
end
|
82
82
|
|
@@ -62,7 +62,7 @@ describe Kitchen::Driver::Digitalocean do
|
|
62
62
|
end
|
63
63
|
|
64
64
|
it 'defaults to New York region id' do
|
65
|
-
expect(driver[:region_id]).to eq(1)
|
65
|
+
expect(driver[:region_id]).to eq('1')
|
66
66
|
end
|
67
67
|
end
|
68
68
|
|
@@ -102,12 +102,11 @@ describe Kitchen::Driver::Digitalocean do
|
|
102
102
|
d
|
103
103
|
end
|
104
104
|
|
105
|
-
context 'Client ID API key
|
105
|
+
context 'Client ID and API key only provided' do
|
106
106
|
let(:config) do
|
107
107
|
{
|
108
108
|
:digitalocean_client_id => 'Quei4zaey9nijiexoong',
|
109
109
|
:digitalocean_api_key => 'Eep4eidaiz7chohd4cheyei9peigooyoa9Ek4sua',
|
110
|
-
:region_id => '1'
|
111
110
|
}
|
112
111
|
end
|
113
112
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-digitalocean
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Greg Fitzgerald
|
@@ -122,6 +122,20 @@ dependencies:
|
|
122
122
|
- - '>='
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: multi_json
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - '>='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
125
139
|
description: A Test Kitchen Digital Ocean driver
|
126
140
|
email:
|
127
141
|
- greg@gregf.org
|