fog-aws 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +51 -2
- data/lib/fog/aws.rb +29 -27
- data/lib/fog/aws/elb.rb +0 -1
- data/lib/fog/aws/iam.rb +4 -2
- data/lib/fog/aws/kms.rb +180 -0
- data/lib/fog/aws/mock.rb +13 -1
- data/lib/fog/aws/models/compute/flavors.rb +40 -0
- data/lib/fog/aws/models/elasticache/cluster.rb +1 -0
- data/lib/fog/aws/models/kms/key.rb +34 -0
- data/lib/fog/aws/models/kms/keys.rb +29 -0
- data/lib/fog/aws/models/rds/server.rb +33 -26
- data/lib/fog/aws/parsers/compute/describe_reserved_instances.rb +1 -1
- data/lib/fog/aws/parsers/elasticache/cache_cluster_parser.rb +15 -3
- data/lib/fog/aws/parsers/kms/describe_key.rb +34 -0
- data/lib/fog/aws/parsers/kms/list_keys.rb +38 -0
- data/lib/fog/aws/parsers/rds/db_parser.rb +7 -14
- data/lib/fog/aws/rds.rb +1 -1
- data/lib/fog/aws/requests/compute/describe_spot_price_history.rb +59 -0
- data/lib/fog/aws/requests/compute/request_spot_instances.rb +80 -0
- data/lib/fog/aws/requests/dns/change_resource_record_sets.rb +36 -5
- data/lib/fog/aws/requests/dns/list_resource_record_sets.rb +33 -5
- data/lib/fog/aws/requests/elb/create_load_balancer.rb +15 -2
- data/lib/fog/aws/requests/iam/create_role.rb +5 -5
- data/lib/fog/aws/requests/kms/create_key.rb +62 -0
- data/lib/fog/aws/requests/kms/describe_key.rb +27 -0
- data/lib/fog/aws/requests/kms/list_keys.rb +82 -0
- data/lib/fog/aws/requests/rds/create_db_instance.rb +33 -38
- data/lib/fog/aws/requests/rds/create_db_instance_read_replica.rb +7 -2
- data/lib/fog/aws/requests/rds/promote_read_replica.rb +7 -6
- data/lib/fog/aws/requests/sns/subscribe.rb +1 -1
- data/lib/fog/aws/storage.rb +6 -3
- data/lib/fog/aws/version.rb +1 -1
- data/tests/helper.rb +2 -2
- data/tests/models/rds/helper.rb +10 -3
- data/tests/models/rds/server_tests.rb +7 -4
- data/tests/requests/compute/spot_instance_tests.rb +2 -2
- data/tests/requests/compute/spot_price_history_tests.rb +0 -2
- data/tests/requests/kms/helper.rb +27 -0
- data/tests/requests/kms/key_tests.rb +23 -0
- data/tests/requests/rds/helper.rb +52 -46
- data/tests/requests/rds/instance_tests.rb +16 -12
- metadata +12 -2
@@ -36,16 +36,17 @@ module Fog
|
|
36
36
|
def promote_read_replica(identifier, backup_retention_period = nil, preferred_backup_window = nil)
|
37
37
|
if self.data[:servers][identifier]
|
38
38
|
data = {
|
39
|
-
|
40
|
-
|
41
|
-
|
39
|
+
'BackupRetentionPeriod' => backup_retention_period || 1,
|
40
|
+
'PreferredBackupWindow' => preferred_backup_window || '08:00-08:30',
|
41
|
+
'DBInstanceIdentifier' => identifier,
|
42
42
|
}
|
43
|
-
|
43
|
+
|
44
|
+
db_instance = self.data[:servers][identifier].merge(data)
|
44
45
|
|
45
46
|
response = Excon::Response.new
|
46
47
|
response.body = {
|
47
|
-
|
48
|
-
|
48
|
+
"ResponseMetadata" => { "RequestId" => Fog::AWS::Mock.request_id },
|
49
|
+
"PromoteReadReplicaResult" => { "DBInstance" => db_instance }
|
49
50
|
}
|
50
51
|
response.status = 200
|
51
52
|
response
|
@@ -65,7 +65,7 @@ module Fog
|
|
65
65
|
:aws_secret_access_key => SecureRandom.hex(3)
|
66
66
|
).send_message(endpoint, Fog::JSON.encode(
|
67
67
|
"Type" => "SubscriptionConfirmation",
|
68
|
-
"MessageId" =>
|
68
|
+
"MessageId" => UUID.uuid,
|
69
69
|
"Token" => token,
|
70
70
|
"TopicArn" => arn,
|
71
71
|
"Message" => message,
|
data/lib/fog/aws/storage.rb
CHANGED
@@ -139,6 +139,8 @@ module Fog
|
|
139
139
|
end
|
140
140
|
|
141
141
|
def signed_url(params, expires)
|
142
|
+
refresh_credentials_if_expired
|
143
|
+
|
142
144
|
#convert expires from a point in time to a delta to now
|
143
145
|
expires = expires.to_i
|
144
146
|
if @signature_version == 4
|
@@ -314,6 +316,7 @@ module Fog
|
|
314
316
|
|
315
317
|
class Mock
|
316
318
|
include Utils
|
319
|
+
include Fog::AWS::CredentialFetcher::ConnectionMethods
|
317
320
|
|
318
321
|
def self.acls(type)
|
319
322
|
case type
|
@@ -559,10 +562,10 @@ module Fog
|
|
559
562
|
params[:headers]['x-amz-content-sha256'] = 'STREAMING-AWS4-HMAC-SHA256-PAYLOAD'
|
560
563
|
params[:headers]['x-amz-decoded-content-length'] = params[:headers].delete 'Content-Length'
|
561
564
|
|
562
|
-
if params[:headers]['Content-Encoding']
|
563
|
-
encoding = "aws-chunked
|
565
|
+
if params[:headers]['Content-Encoding'] && params[:headers]['Content-Encoding'].to_s.length > 0
|
566
|
+
encoding = "aws-chunked,#{params[:headers]['Content-Encoding']}"
|
564
567
|
else
|
565
|
-
encoding = "aws-chunked
|
568
|
+
encoding = "aws-chunked"
|
566
569
|
end
|
567
570
|
|
568
571
|
params[:headers]['Content-Encoding'] = encoding
|
data/lib/fog/aws/version.rb
CHANGED
data/tests/helper.rb
CHANGED
@@ -14,8 +14,8 @@ Excon.defaults.merge!(:debug_request => true, :debug_response => true)
|
|
14
14
|
require File.expand_path(File.join(File.dirname(__FILE__), 'helpers', 'mock_helper'))
|
15
15
|
|
16
16
|
# This overrides the default 600 seconds timeout during live test runs
|
17
|
-
|
18
|
-
Fog.timeout = ENV['FOG_TEST_TIMEOUT'] ||
|
17
|
+
unless Fog.mocking?
|
18
|
+
Fog.timeout = ENV['FOG_TEST_TIMEOUT'] || 2_000
|
19
19
|
Fog::Logger.warning "Setting default fog timeout to #{Fog.timeout} seconds"
|
20
20
|
end
|
21
21
|
|
data/tests/models/rds/helper.rb
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
def rds_default_server_params
|
2
|
-
{
|
3
|
-
:
|
4
|
-
:backup_retention_period => 0
|
2
|
+
{
|
3
|
+
:allocated_storage => 5,
|
4
|
+
:backup_retention_period => 0,
|
5
|
+
:engine => 'mysql',
|
6
|
+
:version => '5.6.22',
|
7
|
+
:id => uniq_id,
|
8
|
+
:master_username => 'foguser',
|
9
|
+
:password => 'fogpassword',
|
10
|
+
:flavor_id => 'db.m3.medium',
|
11
|
+
}
|
5
12
|
end
|
@@ -13,22 +13,25 @@ Shindo.tests("AWS::RDS | server", ['aws', 'rds']) do
|
|
13
13
|
snapshot = nil
|
14
14
|
|
15
15
|
tests('#create').succeeds do
|
16
|
-
snapshot = @instance.snapshots.create(:id => 'fog-test
|
16
|
+
snapshot = @instance.snapshots.create(:id => uniq_id('fog-snapshot-test'))
|
17
17
|
end
|
18
18
|
|
19
19
|
snapshot.wait_for { ready?}
|
20
20
|
|
21
21
|
@instance.wait_for { ready? }
|
22
22
|
|
23
|
-
returns(true) { @instance.snapshots.map{|s| s.id}.include?(snapshot.id) }
|
23
|
+
returns(true) { @instance.snapshots.map{ |s| s.id }.include?(snapshot.id) }
|
24
24
|
snapshot.destroy
|
25
25
|
end
|
26
26
|
|
27
27
|
tests("#modify").succeeds do
|
28
28
|
pending if Fog.mocking?
|
29
29
|
|
30
|
+
engine = rds_default_server_params.fetch(:engine)
|
31
|
+
version = rds_default_server_params.fetch(:version).match(/\d+\.\d+/).to_s
|
32
|
+
|
30
33
|
orig_parameter_group = @instance.db_parameter_groups.first['DBParameterGroupName']
|
31
|
-
parameter_group = Fog::AWS[:rds].parameter_groups.create(:id => uniq_id, :family =>
|
34
|
+
parameter_group = Fog::AWS[:rds].parameter_groups.create(:id => uniq_id, :family => "#{engine}#{version}", :description => 'fog-test')
|
32
35
|
|
33
36
|
orig_security_groups = @instance.db_security_groups.map{|h| h['DBSecurityGroupName']}
|
34
37
|
security_group = Fog::AWS[:rds].security_groups.create(:id => uniq_id, :description => 'fog-test')
|
@@ -94,7 +97,7 @@ Shindo.tests("AWS::RDS | server", ['aws', 'rds']) do
|
|
94
97
|
end
|
95
98
|
|
96
99
|
test("Destroying with a final snapshot") do
|
97
|
-
final_snapshot_id = 'fog-test-snapshot'
|
100
|
+
final_snapshot_id = uniq_id('fog-test-snapshot')
|
98
101
|
|
99
102
|
@instance_with_final_snapshot.wait_for { ready? }
|
100
103
|
@instance_with_final_snapshot.destroy(final_snapshot_id)
|
@@ -36,14 +36,14 @@ Shindo.tests('Fog::Compute[:aws] | spot instance requests', ['aws']) do
|
|
36
36
|
|
37
37
|
tests('success') do
|
38
38
|
|
39
|
-
pending if Fog.mocking?
|
40
|
-
|
41
39
|
tests("#request_spot_instances('ami-3202f25b', 't1.micro', '0.001')").formats(@spot_instance_requests_format) do
|
42
40
|
data = Fog::Compute[:aws].request_spot_instances('ami-3202f25b', 't1.micro', '0.001',{'LaunchSpecification.EbsOptimized' => false}).body
|
43
41
|
@spot_instance_request_id = data['spotInstanceRequestSet'].first['spotInstanceRequestId']
|
44
42
|
data
|
45
43
|
end
|
46
44
|
|
45
|
+
pending if Fog.mocking?
|
46
|
+
|
47
47
|
tests("#describe_spot_instance_requests").formats(@spot_instance_requests_format) do
|
48
48
|
Fog::Compute[:aws].describe_spot_instance_requests('spot-instance-request-id' => [@spot_instance_request_id]).body
|
49
49
|
end
|
@@ -14,8 +14,6 @@ Shindo.tests('Fog::Compute[:aws] | spot price history requests', ['aws']) do
|
|
14
14
|
|
15
15
|
tests('success') do
|
16
16
|
|
17
|
-
pending # Some history data doesn't have an availability zone
|
18
|
-
|
19
17
|
tests("#describe_spot_price_history").formats(@spot_price_history_format) do
|
20
18
|
Fog::Compute[:aws].describe_spot_price_history.body
|
21
19
|
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
class AWS
|
2
|
+
module KMS
|
3
|
+
module Formats
|
4
|
+
BASIC = {
|
5
|
+
'ResponseMetadata' => { 'RequestId' => String }
|
6
|
+
}
|
7
|
+
|
8
|
+
DESCRIBE_KEY = {
|
9
|
+
"KeyMetadata" => {
|
10
|
+
"KeyUsage" => String,
|
11
|
+
"AWSAccountId" => String,
|
12
|
+
"KeyId" => String,
|
13
|
+
"Description" => Fog::Nullable::String,
|
14
|
+
"CreationDate" => Time,
|
15
|
+
"Arn" => String,
|
16
|
+
"Enabled" => Fog::Boolean
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
LIST_KEYS = {
|
21
|
+
"Keys" => [{ "KeyId" => String, "KeyArn" => String }],
|
22
|
+
"Truncated" => Fog::Boolean,
|
23
|
+
"Marker" => Fog::Nullable::String
|
24
|
+
}
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
Shindo.tests('AWS::KMS | key requests', ['aws', 'kms']) do
|
2
|
+
key_id = nil
|
3
|
+
|
4
|
+
tests('success') do
|
5
|
+
tests("#create_key").data_matches_schema(AWS::KMS::Formats::DESCRIBE_KEY) do
|
6
|
+
result = Fog::AWS[:kms].create_key.body
|
7
|
+
key_id = result["KeyMetadata"]["KeyId"]
|
8
|
+
|
9
|
+
result
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
tests("#describe_key").data_matches_schema(AWS::KMS::Formats::DESCRIBE_KEY) do
|
14
|
+
result = Fog::AWS[:kms].describe_key(key_id).body
|
15
|
+
returns(key_id) { result['KeyMetadata']['KeyId'] }
|
16
|
+
result
|
17
|
+
end
|
18
|
+
|
19
|
+
tests("#list_keys").data_matches_schema(AWS::KMS::Formats::LIST_KEYS) do
|
20
|
+
Fog::AWS[:kms].list_keys.body
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
@@ -6,14 +6,14 @@ class AWS
|
|
6
6
|
}
|
7
7
|
|
8
8
|
DB_AVAILABILITY_ZONE_OPTION = {
|
9
|
-
|
10
|
-
|
9
|
+
'Name' => String,
|
10
|
+
'ProvisionedIopsCapable' => Fog::Boolean
|
11
11
|
}
|
12
12
|
|
13
13
|
DB_PARAMETER_GROUP = {
|
14
|
-
|
15
|
-
|
16
|
-
|
14
|
+
'DBParameterGroupFamily' => String,
|
15
|
+
'DBParameterGroupName' => String,
|
16
|
+
'Description' => String
|
17
17
|
}
|
18
18
|
CREATE_DB_PARAMETER_GROUP = {
|
19
19
|
'ResponseMetadata' => { 'RequestId' => String },
|
@@ -32,7 +32,7 @@ class AWS
|
|
32
32
|
|
33
33
|
CREATE_DB_SECURITY_GROUP = BASIC.merge({
|
34
34
|
'CreateDBSecurityGroupResult' => {
|
35
|
-
|
35
|
+
'DBSecurityGroup' => DB_SECURITY_GROUP
|
36
36
|
}
|
37
37
|
})
|
38
38
|
|
@@ -82,20 +82,20 @@ class AWS
|
|
82
82
|
}
|
83
83
|
|
84
84
|
ORDERABLE_DB_INSTANCE_OPTION = {
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
85
|
+
'MultiAZCapable' => Fog::Boolean,
|
86
|
+
'Engine' => String,
|
87
|
+
'LicenseModel' => String,
|
88
|
+
'ReadReplicaCapable' => Fog::Boolean,
|
89
|
+
'EngineVersion' => String,
|
90
|
+
'AvailabilityZones' => [DB_AVAILABILITY_ZONE_OPTION],
|
91
|
+
'DBInstanceClass' => String,
|
92
|
+
'Vpc' => Fog::Boolean
|
93
93
|
}
|
94
94
|
|
95
95
|
DESCRIBE_ORDERABLE_DB_INSTANCE_OPTION = BASIC.merge({
|
96
|
-
|
97
|
-
|
98
|
-
|
96
|
+
'DescribeOrderableDBInstanceOptionsResult' => {
|
97
|
+
'OrderableDBInstanceOptions' => [ORDERABLE_DB_INSTANCE_OPTION]
|
98
|
+
}
|
99
99
|
})
|
100
100
|
|
101
101
|
MODIFY_PARAMETER_GROUP = BASIC.merge({
|
@@ -153,53 +153,59 @@ class AWS
|
|
153
153
|
}
|
154
154
|
|
155
155
|
INSTANCE = {
|
156
|
-
'AllocatedStorage'
|
156
|
+
'AllocatedStorage' => Integer,
|
157
157
|
'AutoMinorVersionUpgrade' => Fog::Boolean,
|
158
|
-
'AvailabilityZone'
|
159
|
-
'BackupRetentionPeriod'
|
160
|
-
'
|
161
|
-
'
|
162
|
-
'
|
163
|
-
'
|
158
|
+
'AvailabilityZone' => Fog::Nullable::String,
|
159
|
+
'BackupRetentionPeriod' => Integer,
|
160
|
+
'CACertificateIdentifier' => String,
|
161
|
+
'CharacterSetName' => Fog::Nullable::String,
|
162
|
+
'DbiResourceId' => Fog::Nullable::String,
|
163
|
+
'DBInstanceClass' => String,
|
164
|
+
'DBInstanceIdentifier' => String,
|
165
|
+
'DBInstanceStatus' => String,
|
166
|
+
'DBName' => Fog::Nullable::String,
|
164
167
|
'DBParameterGroups' => [{
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
+
'ParameterApplyStatus' => String,
|
169
|
+
'DBParameterGroupName' => String
|
170
|
+
}],
|
168
171
|
'DBSecurityGroups' => [{
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
'DBSubnetGroupName'
|
172
|
+
'Status' => String,
|
173
|
+
'DBSecurityGroupName' => String
|
174
|
+
}],
|
175
|
+
'DBSubnetGroupName' => Fog::Nullable::String,
|
173
176
|
'PubliclyAccessible' => Fog::Boolean,
|
174
177
|
'Endpoint' => {
|
175
178
|
'Address' => Fog::Nullable::String,
|
176
|
-
'Port'
|
179
|
+
'Port' => Fog::Nullable::Integer
|
177
180
|
},
|
178
|
-
'Engine'
|
179
|
-
'EngineVersion'
|
180
|
-
'InstanceCreateTime'
|
181
|
-
'Iops'
|
181
|
+
'Engine' => String,
|
182
|
+
'EngineVersion' => String,
|
183
|
+
'InstanceCreateTime' => Fog::Nullable::Time,
|
184
|
+
'Iops' => Fog::Nullable::Integer,
|
185
|
+
'KmsKeyId' => Fog::Nullable::String,
|
182
186
|
'LatestRestorableTime' => Fog::Nullable::Time,
|
183
|
-
'LicenseModel'
|
184
|
-
'MasterUsername'
|
185
|
-
'MultiAZ'
|
187
|
+
'LicenseModel' => String,
|
188
|
+
'MasterUsername' => String,
|
189
|
+
'MultiAZ' => Fog::Boolean,
|
186
190
|
'PendingModifiedValues' => {
|
187
191
|
'BackupRetentionPeriod' => Fog::Nullable::Integer,
|
188
192
|
'DBInstanceClass' => Fog::Nullable::String,
|
189
193
|
'EngineVersion' => Fog::Nullable::String,
|
190
194
|
'MasterUserPassword' => Fog::Nullable::String,
|
191
|
-
'MultiAZ' => Fog::Nullable::
|
195
|
+
'MultiAZ' => Fog::Nullable::Boolean,
|
192
196
|
'AllocatedStorage' => Fog::Nullable::Integer,
|
193
197
|
'Port' => Fog::Nullable::Integer
|
194
198
|
},
|
195
|
-
'PreferredBackupWindow'
|
196
|
-
'PreferredMaintenanceWindow'
|
197
|
-
'ReadReplicaDBInstanceIdentifiers' => [Fog::Nullable::String]
|
199
|
+
'PreferredBackupWindow' => String,
|
200
|
+
'PreferredMaintenanceWindow' => String,
|
201
|
+
'ReadReplicaDBInstanceIdentifiers' => [Fog::Nullable::String],
|
202
|
+
'StorageType' => String,
|
203
|
+
'StorageEncrypted' => Fog::Boolean,
|
204
|
+
'TdeCredentialArn' => Fog::Nullable::String
|
198
205
|
}
|
199
206
|
|
200
207
|
REPLICA_INSTANCE = INSTANCE.merge({
|
201
|
-
'
|
202
|
-
'PreferredBackupWindow' => Fog::Nullable::String,
|
208
|
+
'PreferredBackupWindow' => Fog::Nullable::String,
|
203
209
|
'ReadReplicaSourceDBInstanceIdentifier' => String
|
204
210
|
})
|
205
211
|
|
@@ -242,7 +248,7 @@ class AWS
|
|
242
248
|
|
243
249
|
PROMOTE_READ_REPLICA = BASIC.merge({
|
244
250
|
'PromoteReadReplicaResult' => {
|
245
|
-
|
251
|
+
'DBInstance' => INSTANCE
|
246
252
|
}
|
247
253
|
})
|
248
254
|
|
@@ -1,6 +1,4 @@
|
|
1
1
|
Shindo.tests('AWS::RDS | instance requests', ['aws', 'rds']) do
|
2
|
-
# Disabled due to https://github.com/fog/fog/1546
|
3
|
-
pending
|
4
2
|
|
5
3
|
# random_differentiator
|
6
4
|
# Useful when rapidly re-running tests, so we don't have to wait
|
@@ -9,20 +7,26 @@ Shindo.tests('AWS::RDS | instance requests', ['aws', 'rds']) do
|
|
9
7
|
|
10
8
|
@db_instance_id = "fog-test-#{suffix}"
|
11
9
|
@db_replica_id = "fog-replica-#{suffix}"
|
12
|
-
@db_snapshot_id = "fog-snapshot"
|
13
|
-
@db_final_snapshot_id = "fog-final-snapshot"
|
10
|
+
@db_snapshot_id = "fog-snapshot-#{suffix}"
|
11
|
+
@db_final_snapshot_id = "fog-final-snapshot-#{suffix}"
|
14
12
|
|
15
13
|
tests('success') do
|
16
14
|
|
17
15
|
tests("#create_db_instance").formats(AWS::RDS::Formats::CREATE_DB_INSTANCE) do
|
16
|
+
default_params = rds_default_server_params
|
17
|
+
|
18
|
+
# creation of replicas requires a > 0 BackupRetentionPeriod value
|
19
|
+
# InvalidDBInstanceState => Automated backups are not enabled for this database instance. To enable automated backups, use ModifyDBInstance to set the backup retention period to a non-zero value. (Fog::AWS::RDS::Error)
|
20
|
+
backup_retention_period = 1
|
21
|
+
|
18
22
|
result = Fog::AWS[:rds].create_db_instance(@db_instance_id,
|
19
|
-
'AllocatedStorage'
|
20
|
-
'DBInstanceClass'
|
21
|
-
'Engine'
|
22
|
-
'EngineVersion'
|
23
|
-
'MasterUsername'
|
24
|
-
'BackupRetentionPeriod' =>
|
25
|
-
'MasterUserPassword'
|
23
|
+
'AllocatedStorage' => default_params.fetch(:allocated_storage),
|
24
|
+
'DBInstanceClass' => default_params.fetch(:flavor_id),
|
25
|
+
'Engine' => default_params.fetch(:engine),
|
26
|
+
'EngineVersion' => default_params.fetch(:version),
|
27
|
+
'MasterUsername' => default_params.fetch(:master_username),
|
28
|
+
'BackupRetentionPeriod' => backup_retention_period,
|
29
|
+
'MasterUserPassword' => default_params.fetch(:password)).body
|
26
30
|
|
27
31
|
instance = result['CreateDBInstanceResult']['DBInstance']
|
28
32
|
returns('creating') { instance['DBInstanceStatus'] }
|
@@ -69,7 +73,7 @@ Shindo.tests('AWS::RDS | instance requests', ['aws', 'rds']) do
|
|
69
73
|
end
|
70
74
|
|
71
75
|
tests("#describe_db_snapshots").formats(AWS::RDS::Formats::DESCRIBE_DB_SNAPSHOTS) do
|
72
|
-
|
76
|
+
Fog::AWS[:rds].describe_db_snapshots.body
|
73
77
|
end
|
74
78
|
|
75
79
|
server.wait_for { state == 'available' }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog-aws
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Lane
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-05-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -149,6 +149,7 @@ files:
|
|
149
149
|
- lib/fog/aws/federation.rb
|
150
150
|
- lib/fog/aws/glacier.rb
|
151
151
|
- lib/fog/aws/iam.rb
|
152
|
+
- lib/fog/aws/kms.rb
|
152
153
|
- lib/fog/aws/mock.rb
|
153
154
|
- lib/fog/aws/models/auto_scaling/activities.rb
|
154
155
|
- lib/fog/aws/models/auto_scaling/activity.rb
|
@@ -258,6 +259,8 @@ files:
|
|
258
259
|
- lib/fog/aws/models/iam/roles.rb
|
259
260
|
- lib/fog/aws/models/iam/user.rb
|
260
261
|
- lib/fog/aws/models/iam/users.rb
|
262
|
+
- lib/fog/aws/models/kms/key.rb
|
263
|
+
- lib/fog/aws/models/kms/keys.rb
|
261
264
|
- lib/fog/aws/models/rds/event_subscription.rb
|
262
265
|
- lib/fog/aws/models/rds/event_subscriptions.rb
|
263
266
|
- lib/fog/aws/models/rds/instance_option.rb
|
@@ -511,6 +514,8 @@ files:
|
|
511
514
|
- lib/fog/aws/parsers/iam/update_user.rb
|
512
515
|
- lib/fog/aws/parsers/iam/upload_server_certificate.rb
|
513
516
|
- lib/fog/aws/parsers/iam/upload_signing_certificate.rb
|
517
|
+
- lib/fog/aws/parsers/kms/describe_key.rb
|
518
|
+
- lib/fog/aws/parsers/kms/list_keys.rb
|
514
519
|
- lib/fog/aws/parsers/rds/authorize_db_security_group_ingress.rb
|
515
520
|
- lib/fog/aws/parsers/rds/base.rb
|
516
521
|
- lib/fog/aws/parsers/rds/create_db_instance.rb
|
@@ -1022,6 +1027,9 @@ files:
|
|
1022
1027
|
- lib/fog/aws/requests/iam/update_user.rb
|
1023
1028
|
- lib/fog/aws/requests/iam/upload_server_certificate.rb
|
1024
1029
|
- lib/fog/aws/requests/iam/upload_signing_certificate.rb
|
1030
|
+
- lib/fog/aws/requests/kms/create_key.rb
|
1031
|
+
- lib/fog/aws/requests/kms/describe_key.rb
|
1032
|
+
- lib/fog/aws/requests/kms/list_keys.rb
|
1025
1033
|
- lib/fog/aws/requests/rds/add_tags_to_resource.rb
|
1026
1034
|
- lib/fog/aws/requests/rds/authorize_db_security_group_ingress.rb
|
1027
1035
|
- lib/fog/aws/requests/rds/create_db_instance.rb
|
@@ -1382,6 +1390,8 @@ files:
|
|
1382
1390
|
- tests/requests/iam/server_certificate_tests.rb
|
1383
1391
|
- tests/requests/iam/user_policy_tests.rb
|
1384
1392
|
- tests/requests/iam/user_tests.rb
|
1393
|
+
- tests/requests/kms/helper.rb
|
1394
|
+
- tests/requests/kms/key_tests.rb
|
1385
1395
|
- tests/requests/rds/db_engine_versions.rb
|
1386
1396
|
- tests/requests/rds/describe_events.rb
|
1387
1397
|
- tests/requests/rds/event_subscription_tests.rb
|