fog 0.0.84 → 0.0.85
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -0
- data/Gemfile.lock +47 -37
- data/bin/fog +9 -10
- data/fog.gemspec +23 -4
- data/lib/fog.rb +19 -1
- data/lib/fog/aws.rb +23 -0
- data/lib/fog/aws/bin.rb +4 -0
- data/lib/fog/aws/ec2.rb +20 -27
- data/lib/fog/aws/elb.rb +115 -0
- data/lib/fog/aws/models/ec2/server.rb +7 -1
- data/lib/fog/aws/models/s3/directories.rb +4 -4
- data/lib/fog/aws/models/s3/directory.rb +13 -11
- data/lib/fog/aws/parsers/elb/deregister_instances_from_load_balancer.rb +26 -0
- data/lib/fog/aws/parsers/elb/describe_instance_health.rb +30 -0
- data/lib/fog/aws/parsers/elb/describe_load_balancers.rb +101 -0
- data/lib/fog/aws/parsers/elb/disable_availability_zones_for_load_balancer.rb +26 -0
- data/lib/fog/aws/parsers/elb/enable_availability_zones_for_load_balancer.rb +26 -0
- data/lib/fog/aws/parsers/elb/register_instances_with_load_balancer.rb +26 -0
- data/lib/fog/aws/requests/ec2/detach_volume.rb +2 -2
- data/lib/fog/aws/requests/elb/deregister_instances_from_load_balancer.rb +45 -0
- data/lib/fog/aws/requests/elb/describe_instance_health.rb +44 -0
- data/lib/fog/aws/requests/elb/describe_load_balancers.rb +57 -0
- data/lib/fog/aws/requests/elb/disable_availability_zones_for_load_balancer.rb +44 -0
- data/lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb +44 -0
- data/lib/fog/aws/requests/elb/register_instances_with_load_balancer.rb +45 -0
- data/lib/fog/aws/s3.rb +8 -1
- data/lib/fog/aws/simpledb.rb +9 -18
- data/lib/fog/bin.rb +11 -1
- data/lib/fog/credentials.rb +1 -0
- data/lib/fog/local.rb +72 -0
- data/lib/fog/local/bin.rb +34 -0
- data/lib/fog/local/models/directories.rb +43 -0
- data/lib/fog/local/models/directory.rb +47 -0
- data/lib/fog/local/models/file.rb +58 -0
- data/lib/fog/local/models/files.rb +74 -0
- data/lib/fog/model.rb +2 -8
- data/lib/fog/rackspace/models/files/directories.rb +3 -3
- data/lib/fog/rackspace/models/files/directory.rb +8 -5
- data/lib/fog/rackspace/models/servers/server.rb +7 -3
- data/lib/fog/rackspace/requests/servers/create_server.rb +1 -1
- data/lib/fog/ssh.rb +91 -25
- data/lib/fog/terremark/bin.rb +1 -8
- data/lib/fog/terremark/ecloud.rb +14 -5
- data/lib/fog/terremark/models/shared/server.rb +54 -3
- data/lib/fog/terremark/parsers/shared/vapp.rb +1 -1
- data/lib/fog/terremark/requests/shared/get_network.rb +39 -1
- data/lib/fog/terremark/requests/shared/get_organization.rb +45 -1
- data/lib/fog/terremark/requests/shared/get_organizations.rb +2 -1
- data/lib/fog/terremark/requests/shared/get_public_ips.rb +32 -1
- data/lib/fog/terremark/requests/shared/get_vdc.rb +83 -1
- data/lib/fog/terremark/requests/shared/{reset.rb → power_reset.rb} +1 -1
- data/lib/fog/terremark/requests/shared/power_shutdown.rb +32 -0
- data/lib/fog/terremark/shared.rb +139 -18
- data/lib/fog/terremark/vcloud.rb +14 -5
- data/spec/aws/models/ec2/address_spec.rb +1 -3
- data/spec/aws/models/ec2/snapshot_spec.rb +25 -49
- data/spec/aws/models/ec2/snapshots_spec.rb +25 -31
- data/spec/aws/models/ec2/volume_spec.rb +9 -3
- data/spec/aws/models/s3/directory_spec.rb +14 -14
- data/spec/aws/requests/ec2/associate_address_spec.rb +4 -5
- data/spec/aws/requests/ec2/attach_volume_spec.rb +14 -16
- data/spec/aws/requests/ec2/create_snapshot_spec.rb +2 -3
- data/spec/aws/requests/ec2/delete_snapshot_spec.rb +5 -6
- data/spec/aws/requests/ec2/describe_instances_spec.rb +3 -2
- data/spec/aws/requests/ec2/describe_snapshots_spec.rb +21 -25
- data/spec/aws/requests/ec2/detach_volume_spec.rb +14 -16
- data/spec/aws/requests/ec2/disassociate_address_spec.rb +3 -4
- data/spec/aws/requests/ec2/get_console_output_spec.rb +1 -0
- data/spec/aws/requests/s3/get_service_spec.rb +5 -6
- data/spec/spec_helper.rb +0 -20
- data/tests/helper.rb +0 -10
- data/tests/rackspace/requests/servers/create_image_tests.rb +2 -2
- data/tests/rackspace/requests/servers/create_server_tests.rb +3 -2
- data/tests/rackspace/requests/servers/delete_image_tests.rb +2 -2
- data/tests/rackspace/requests/servers/delete_server_tests.rb +1 -1
- data/tests/rackspace/requests/servers/get_server_details_tests.rb +1 -1
- data/tests/rackspace/requests/servers/list_addresses_tests.rb +1 -1
- data/tests/rackspace/requests/servers/list_private_addresses_tests.rb +1 -1
- data/tests/rackspace/requests/servers/list_public_addresses_tests.rb +1 -1
- data/tests/rackspace/requests/servers/list_servers_detail_tests.rb +1 -1
- data/tests/rackspace/requests/servers/list_servers_tests.rb +1 -1
- data/tests/rackspace/requests/servers/reboot_server_tests.rb +3 -3
- data/tests/rackspace/requests/servers/update_server_tests.rb +1 -1
- data/tests/slicehost/requests/create_slice_tests.rb +1 -1
- data/tests/slicehost/requests/delete_slice_tests.rb +1 -1
- data/tests/slicehost/requests/get_slice_tests.rb +1 -1
- data/tests/slicehost/requests/reboot_slice_tests.rb +2 -2
- metadata +24 -5
- data/lib/fog/terremark/requests/shared/shutdown.rb +0 -43
@@ -3,13 +3,14 @@ require File.dirname(__FILE__) + '/../../../spec_helper'
|
|
3
3
|
describe 'EC2.describe_instances' do
|
4
4
|
describe 'success' do
|
5
5
|
|
6
|
-
before(:
|
6
|
+
before(:all) do
|
7
7
|
run_instances = AWS[:ec2].run_instances(GENTOO_AMI, 1, 1).body
|
8
8
|
@instance_id = run_instances['instancesSet'].first['instanceId']
|
9
9
|
@reservation_id = run_instances['reservationId']
|
10
|
+
AWS[:ec2].servers.get(@instance_id).wait_for { ready? }
|
10
11
|
end
|
11
12
|
|
12
|
-
after(:
|
13
|
+
after(:all) do
|
13
14
|
AWS[:ec2].terminate_instances([@instance_id])
|
14
15
|
end
|
15
16
|
|
@@ -3,42 +3,38 @@ require File.dirname(__FILE__) + '/../../../spec_helper'
|
|
3
3
|
describe 'EC2.describe_snapshots' do
|
4
4
|
describe 'success' do
|
5
5
|
|
6
|
-
before(:
|
6
|
+
before(:all) do
|
7
7
|
@volume_id = AWS[:ec2].create_volume('us-east-1a', 1).body['volumeId']
|
8
|
+
AWS[:ec2].volumes.get(@volume_id).wait_for { ready? }
|
8
9
|
@snapshot_id = AWS[:ec2].create_snapshot(@volume_id).body['snapshotId']
|
10
|
+
AWS[:ec2].snapshots.get(@snapshot_id).wait_for { ready? }
|
9
11
|
end
|
10
12
|
|
11
|
-
after(:
|
13
|
+
after(:all) do
|
12
14
|
AWS[:ec2].delete_volume(@volume_id)
|
13
|
-
|
14
|
-
AWS[:ec2].delete_snapshot(@snapshot_id)
|
15
|
-
end
|
15
|
+
AWS[:ec2].delete_snapshot(@snapshot_id)
|
16
16
|
end
|
17
17
|
|
18
18
|
it "should return proper attributes with no params" do
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
snapshot['volumeId'].should be_a(String)
|
28
|
-
end
|
19
|
+
actual = AWS[:ec2].describe_snapshots
|
20
|
+
actual.body['snapshotSet'].should be_an(Array)
|
21
|
+
snapshot = actual.body['snapshotSet'].select {|snapshot| snapshot['snapshotId'] == @snapshot_id}.first
|
22
|
+
snapshot['progress'].should be_a(String)
|
23
|
+
snapshot['snapshotId'].should be_a(String)
|
24
|
+
snapshot['startTime'].should be_a(Time)
|
25
|
+
snapshot['status'].should be_a(String)
|
26
|
+
snapshot['volumeId'].should be_a(String)
|
29
27
|
end
|
30
28
|
|
31
29
|
it "should return proper attributes with params" do
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
snapshot['volumeId'].should be_a(String)
|
41
|
-
end
|
30
|
+
actual = AWS[:ec2].describe_snapshots([@snapshot_id])
|
31
|
+
actual.body['snapshotSet'].should be_an(Array)
|
32
|
+
snapshot = actual.body['snapshotSet'].select {|snapshot| snapshot['snapshotId'] == @snapshot_id}.first
|
33
|
+
snapshot['progress'].should be_a(String)
|
34
|
+
snapshot['snapshotId'].should be_a(String)
|
35
|
+
snapshot['startTime'].should be_a(Time)
|
36
|
+
snapshot['status'].should be_a(String)
|
37
|
+
snapshot['volumeId'].should be_a(String)
|
42
38
|
end
|
43
39
|
|
44
40
|
end
|
@@ -6,28 +6,26 @@ describe 'EC2.detach_volume' do
|
|
6
6
|
before(:each) do
|
7
7
|
@instance_id = AWS[:ec2].run_instances(GENTOO_AMI, 1, 1, {'Placement.AvailabilityZone' => 'us-east-1a'}).body['instancesSet'].first['instanceId']
|
8
8
|
@volume_id = AWS[:ec2].create_volume('us-east-1a', 1).body['volumeId']
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
AWS[:ec2].servers.get(@instance_id).wait_for { ready? }
|
10
|
+
AWS[:ec2].servers.get(@instance_id).wait_for { ready? }
|
11
|
+
AWS[:ec2].attach_volume(@instance_id, @volume_id, '/dev/sdh')
|
12
|
+
AWS[:ec2].volumes.get(@volume_id).wait_for { ready? }
|
12
13
|
end
|
13
14
|
|
14
15
|
after(:each) do
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
end
|
16
|
+
AWS[:ec2].volumes.get(@volume_id).wait_for { ready? }
|
17
|
+
AWS[:ec2].delete_volume(@volume_id)
|
18
|
+
AWS[:ec2].terminate_instances([@instance_id])
|
19
19
|
end
|
20
20
|
|
21
21
|
it "should return proper attributes" do
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
actual.body['volumeId'].should be_a(String)
|
30
|
-
end
|
22
|
+
actual = AWS[:ec2].detach_volume(@volume_id)
|
23
|
+
actual.body['attachTime'].should be_a(Time)
|
24
|
+
actual.body['device'].should be_a(String)
|
25
|
+
actual.body['instanceId'].should be_a(String)
|
26
|
+
actual.body['requestId'].should be_a(String)
|
27
|
+
actual.body['status'].should be_a(String)
|
28
|
+
actual.body['volumeId'].should be_a(String)
|
31
29
|
end
|
32
30
|
|
33
31
|
end
|
@@ -5,10 +5,9 @@ describe 'EC2.disassociate_address' do
|
|
5
5
|
|
6
6
|
before(:each) do
|
7
7
|
@instance_id = AWS[:ec2].run_instances(GENTOO_AMI, 1, 1).body['instancesSet'].first['instanceId']
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
end
|
8
|
+
@public_ip = AWS[:ec2].allocate_address.body['publicIp']
|
9
|
+
AWS[:ec2].servers.get(@instance_id).wait_for { ready? }
|
10
|
+
AWS[:ec2].associate_address(@instance_id, @public_ip)
|
12
11
|
end
|
13
12
|
|
14
13
|
after(:each) do
|
@@ -3,11 +3,12 @@ require File.dirname(__FILE__) + '/../../../spec_helper'
|
|
3
3
|
describe 'S3.get_service' do
|
4
4
|
describe 'success' do
|
5
5
|
|
6
|
-
before(:
|
6
|
+
before(:all) do
|
7
7
|
AWS[:s3].put_bucket('foggetservice')
|
8
|
+
Fog.wait_for { AWS[:s3].directories.get('foggetservice') }
|
8
9
|
end
|
9
10
|
|
10
|
-
after(:
|
11
|
+
after(:all) do
|
11
12
|
AWS[:s3].delete_bucket('foggetservice')
|
12
13
|
end
|
13
14
|
|
@@ -23,10 +24,8 @@ describe 'S3.get_service' do
|
|
23
24
|
end
|
24
25
|
|
25
26
|
it 'should include foggetservice in get_service' do
|
26
|
-
|
27
|
-
|
28
|
-
actual.body['Buckets'].collect { |bucket| bucket['Name'] }.should include('foggetservice')
|
29
|
-
end
|
27
|
+
actual = AWS[:s3].get_service
|
28
|
+
actual.body['Buckets'].collect { |bucket| bucket['Name'] }.should include('foggetservice')
|
30
29
|
end
|
31
30
|
|
32
31
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -9,16 +9,6 @@ if ENV["FOG_MOCK"] == "true"
|
|
9
9
|
Fog.mock!
|
10
10
|
end
|
11
11
|
|
12
|
-
unless defined?(LOADED_SPEC_OPTS)
|
13
|
-
# inlined spec.opts
|
14
|
-
require "#{current_directory}/compact_progress_bar_formatter"
|
15
|
-
Spec::Runner.options.parse_format("Spec::Runner::Formatter::CompactProgressBarFormatter")
|
16
|
-
Spec::Runner.options.loadby = 'mtime'
|
17
|
-
Spec::Runner.options.reverse = true
|
18
|
-
LOADED_SPEC_OPTS = true
|
19
|
-
end
|
20
|
-
|
21
|
-
|
22
12
|
module AWS
|
23
13
|
class << self
|
24
14
|
def [](service)
|
@@ -104,16 +94,6 @@ def eventually(max_delay = 16, &block)
|
|
104
94
|
end
|
105
95
|
end
|
106
96
|
|
107
|
-
def wait_for(timeout = 600, &block)
|
108
|
-
start = Time.now
|
109
|
-
until instance_eval(&block)
|
110
|
-
if Time.now - start > timeout
|
111
|
-
break
|
112
|
-
end
|
113
|
-
sleep(1)
|
114
|
-
end
|
115
|
-
end
|
116
|
-
|
117
97
|
unless defined?(GENTOO_AMI)
|
118
98
|
GENTOO_AMI = 'ami-5ee70037'
|
119
99
|
end
|
data/tests/helper.rb
CHANGED
@@ -3,14 +3,14 @@ Shindo.tests('Rackspace::Servers#create_image', 'rackspace') do
|
|
3
3
|
|
4
4
|
before do
|
5
5
|
@server_id = Rackspace[:servers].create_server(1, 3, 'fogcreateimage').body['server']['id']
|
6
|
-
wait_for { Rackspace[:servers].get_server_details(@server_id).body['server']['status'] == 'ACTIVE' }
|
6
|
+
Fog.wait_for { Rackspace[:servers].get_server_details(@server_id).body['server']['status'] == 'ACTIVE' }
|
7
7
|
@data = Rackspace[:servers].create_image(@server_id).body['image']
|
8
8
|
@image_id = @data['id']
|
9
9
|
end
|
10
10
|
|
11
11
|
after do
|
12
12
|
Rackspace[:servers].delete_server(@server_id)
|
13
|
-
wait_for { Rackspace[:servers].get_image_details(@image_id).body['image']['status'] == 'ACTIVE' }
|
13
|
+
Fog.wait_for { Rackspace[:servers].get_image_details(@image_id).body['image']['status'] == 'ACTIVE' }
|
14
14
|
Rackspace[:servers].delete_image(@image_id)
|
15
15
|
end
|
16
16
|
|
@@ -2,12 +2,13 @@ Shindo.tests('Rackspace::Servers#create_server', 'rackspace') do
|
|
2
2
|
tests('success') do
|
3
3
|
|
4
4
|
before do
|
5
|
-
|
5
|
+
# 1 => 256MB, 3 => Gentoo
|
6
|
+
@data = Rackspace[:servers].create_server(1, 3).body['server']
|
6
7
|
@server_id = @data['id']
|
7
8
|
end
|
8
9
|
|
9
10
|
after do
|
10
|
-
wait_for { Rackspace[:servers].get_server_details(@server_id).body['server']['status'] == 'ACTIVE' }
|
11
|
+
Fog.wait_for { Rackspace[:servers].get_server_details(@server_id).body['server']['status'] == 'ACTIVE' }
|
11
12
|
Rackspace[:servers].delete_server(@server_id)
|
12
13
|
end
|
13
14
|
|
@@ -7,12 +7,12 @@ Shindo.tests('Rackspace::Servers#delete_image', 'rackspace') do
|
|
7
7
|
end
|
8
8
|
|
9
9
|
after do
|
10
|
-
wait_for { Rackspace[:servers].get_server_details(@server_id).body['server']['status'] == 'ACTIVE' }
|
10
|
+
Fog.wait_for { Rackspace[:servers].get_server_details(@server_id).body['server']['status'] == 'ACTIVE' }
|
11
11
|
Rackspace[:servers].delete_server(@server_id)
|
12
12
|
end
|
13
13
|
|
14
14
|
test('has proper output format') do
|
15
|
-
wait_for { Rackspace[:servers].get_image_details(@image_id).body['image']['status'] == 'ACTIVE' }
|
15
|
+
Fog.wait_for { Rackspace[:servers].get_image_details(@image_id).body['image']['status'] == 'ACTIVE' }
|
16
16
|
Rackspace[:servers].delete_image(@image_id)
|
17
17
|
end
|
18
18
|
|
@@ -6,7 +6,7 @@ Shindo.tests('Rackspace::Servers#delete_server', 'rackspace') do
|
|
6
6
|
end
|
7
7
|
|
8
8
|
test('has proper output format') do
|
9
|
-
wait_for { Rackspace[:servers].get_server_details(@server_id).body['server']['status'] == 'ACTIVE' }
|
9
|
+
Fog.wait_for { Rackspace[:servers].get_server_details(@server_id).body['server']['status'] == 'ACTIVE' }
|
10
10
|
Rackspace[:servers].delete_server(@server_id)
|
11
11
|
end
|
12
12
|
|
@@ -7,7 +7,7 @@ Shindo.tests('Rackspace::Servers#get_server_details', 'rackspace') do
|
|
7
7
|
end
|
8
8
|
|
9
9
|
after do
|
10
|
-
wait_for { Rackspace[:servers].get_server_details(@server_id).body['server']['status'] == 'ACTIVE' }
|
10
|
+
Fog.wait_for { Rackspace[:servers].get_server_details(@server_id).body['server']['status'] == 'ACTIVE' }
|
11
11
|
Rackspace[:servers].delete_server(@server_id)
|
12
12
|
end
|
13
13
|
|
@@ -7,7 +7,7 @@ Shindo.tests('Rackspace::Servers#list_addresses', 'rackspace') do
|
|
7
7
|
end
|
8
8
|
|
9
9
|
after do
|
10
|
-
wait_for { Rackspace[:servers].get_server_details(@server_id).body['server']['status'] == 'ACTIVE' }
|
10
|
+
Fog.wait_for { Rackspace[:servers].get_server_details(@server_id).body['server']['status'] == 'ACTIVE' }
|
11
11
|
Rackspace[:servers].delete_server(@server_id)
|
12
12
|
end
|
13
13
|
|
@@ -7,7 +7,7 @@ Shindo.tests('Rackspace::Servers#list_private_addresses', 'rackspace') do
|
|
7
7
|
end
|
8
8
|
|
9
9
|
after do
|
10
|
-
wait_for { Rackspace[:servers].get_server_details(@server_id).body['server']['status'] == 'ACTIVE' }
|
10
|
+
Fog.wait_for { Rackspace[:servers].get_server_details(@server_id).body['server']['status'] == 'ACTIVE' }
|
11
11
|
Rackspace[:servers].delete_server(@server_id)
|
12
12
|
end
|
13
13
|
|
@@ -7,7 +7,7 @@ Shindo.tests('Rackspace::Servers#list_public_addresses', 'rackspace') do
|
|
7
7
|
end
|
8
8
|
|
9
9
|
after do
|
10
|
-
wait_for { Rackspace[:servers].get_server_details(@server_id).body['server']['status'] == 'ACTIVE' }
|
10
|
+
Fog.wait_for { Rackspace[:servers].get_server_details(@server_id).body['server']['status'] == 'ACTIVE' }
|
11
11
|
Rackspace[:servers].delete_server(@server_id)
|
12
12
|
end
|
13
13
|
|
@@ -7,7 +7,7 @@ Shindo.tests('Rackspace::Servers#list_servers_detail', 'rackspace') do
|
|
7
7
|
end
|
8
8
|
|
9
9
|
after do
|
10
|
-
wait_for { Rackspace[:servers].get_server_details(@server_id).body['server']['status'] == 'ACTIVE' }
|
10
|
+
Fog.wait_for { Rackspace[:servers].get_server_details(@server_id).body['server']['status'] == 'ACTIVE' }
|
11
11
|
Rackspace[:servers].delete_server(@server_id)
|
12
12
|
end
|
13
13
|
|
@@ -7,7 +7,7 @@ Shindo.tests('Rackspace::Servers#list_servers', 'rackspace') do
|
|
7
7
|
end
|
8
8
|
|
9
9
|
after do
|
10
|
-
wait_for { Rackspace[:servers].get_server_details(@server_id).body['server']['status'] == 'ACTIVE' }
|
10
|
+
Fog.wait_for { Rackspace[:servers].get_server_details(@server_id).body['server']['status'] == 'ACTIVE' }
|
11
11
|
Rackspace[:servers].delete_server(@server_id)
|
12
12
|
end
|
13
13
|
|
@@ -6,20 +6,20 @@ Shindo.tests('Rackspace::Servers#reboot_server', 'rackspace') do
|
|
6
6
|
end
|
7
7
|
|
8
8
|
after do
|
9
|
-
wait_for { Rackspace[:servers].get_server_details(@server_id).body['server']['status'] == 'ACTIVE' }
|
9
|
+
Fog.wait_for { Rackspace[:servers].get_server_details(@server_id).body['server']['status'] == 'ACTIVE' }
|
10
10
|
Rackspace[:servers].delete_server(@server_id)
|
11
11
|
end
|
12
12
|
|
13
13
|
tests('HARD') do
|
14
14
|
test('has proper output format') do
|
15
|
-
wait_for { Rackspace[:servers].get_server_details(@server_id).body['server']['status'] == 'ACTIVE' }
|
15
|
+
Fog.wait_for { Rackspace[:servers].get_server_details(@server_id).body['server']['status'] == 'ACTIVE' }
|
16
16
|
Rackspace[:servers].reboot_server(@server_id, 'HARD')
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
20
|
tests('SOFT') do
|
21
21
|
test('has proper output format') do
|
22
|
-
wait_for { Rackspace[:servers].get_server_details(@server_id).body['server']['status'] == 'ACTIVE' }
|
22
|
+
Fog.wait_for { Rackspace[:servers].get_server_details(@server_id).body['server']['status'] == 'ACTIVE' }
|
23
23
|
Rackspace[:servers].reboot_server(@server_id, 'SOFT')
|
24
24
|
end
|
25
25
|
end
|
@@ -3,7 +3,7 @@ Shindo.tests('Rackspace::Servers#update_server', 'rackspace') do
|
|
3
3
|
|
4
4
|
before do
|
5
5
|
@server_id = Rackspace[:servers].create_server(1, 3, 'fogupdateserver').body['server']['id']
|
6
|
-
wait_for { Rackspace[:servers].get_server_details(@server_id).body['server']['status'] == 'ACTIVE' }
|
6
|
+
Fog.wait_for { Rackspace[:servers].get_server_details(@server_id).body['server']['status'] == 'ACTIVE' }
|
7
7
|
@data = Rackspace[:servers].update_server(@server_id, :name => 'fogupdatedserver', :adminPass => 'fogupdatedserver')
|
8
8
|
end
|
9
9
|
|
@@ -7,7 +7,7 @@ Shindo.tests('Slicehost#create_slice', 'slicehost') do
|
|
7
7
|
end
|
8
8
|
|
9
9
|
after do
|
10
|
-
wait_for { Slicehost[:slices].get_slice(@id).body['status'] == 'active' }
|
10
|
+
Fog.wait_for { Slicehost[:slices].get_slice(@id).body['status'] == 'active' }
|
11
11
|
Slicehost[:slices].delete_slice(@id)
|
12
12
|
end
|
13
13
|
|
@@ -7,7 +7,7 @@ Shindo.tests('Slicehost#delete_slice', 'slicehost') do
|
|
7
7
|
end
|
8
8
|
|
9
9
|
test('has proper output format') do
|
10
|
-
wait_for { Slicehost[:slices].get_slice(@id).body['status'] == 'active' }
|
10
|
+
Fog.wait_for { Slicehost[:slices].get_slice(@id).body['status'] == 'active' }
|
11
11
|
Slicehost[:slices].delete_slice(@id)
|
12
12
|
end
|
13
13
|
|
@@ -8,7 +8,7 @@ Shindo.tests('Slicehost#get_slice', 'slicehost') do
|
|
8
8
|
end
|
9
9
|
|
10
10
|
after do
|
11
|
-
wait_for { Slicehost[:slices].get_slice(@id).body['status'] == 'active' }
|
11
|
+
Fog.wait_for { Slicehost[:slices].get_slice(@id).body['status'] == 'active' }
|
12
12
|
Slicehost[:slices].delete_slice(@id)
|
13
13
|
end
|
14
14
|
|
@@ -4,12 +4,12 @@ Shindo.tests('Slicehost#reboot_slice', 'slicehost') do
|
|
4
4
|
before do
|
5
5
|
@data = Slicehost[:slices].create_slice(1, 3, 'fogrebootslice').body
|
6
6
|
@id = @data['id']
|
7
|
-
wait_for { Slicehost[:slices].get_slice(@id).body['status'] == 'active' }
|
7
|
+
Fog.wait_for { Slicehost[:slices].get_slice(@id).body['status'] == 'active' }
|
8
8
|
@data = Slicehost[:slices].reboot_slice(@id).body
|
9
9
|
end
|
10
10
|
|
11
11
|
after do
|
12
|
-
wait_for { Slicehost[:slices].get_slice(@id).body['status'] == 'active' }
|
12
|
+
Fog.wait_for { Slicehost[:slices].get_slice(@id).body['status'] == 'active' }
|
13
13
|
Slicehost[:slices].delete_slice(@id)
|
14
14
|
end
|
15
15
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 85
|
9
|
+
version: 0.0.85
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- geemus (Wesley Beary)
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-05-02 00:00:00 -07:00
|
18
18
|
default_executable: fog
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -151,6 +151,7 @@ files:
|
|
151
151
|
- lib/fog/aws.rb
|
152
152
|
- lib/fog/aws/bin.rb
|
153
153
|
- lib/fog/aws/ec2.rb
|
154
|
+
- lib/fog/aws/elb.rb
|
154
155
|
- lib/fog/aws/models/ec2/address.rb
|
155
156
|
- lib/fog/aws/models/ec2/addresses.rb
|
156
157
|
- lib/fog/aws/models/ec2/flavor.rb
|
@@ -191,6 +192,12 @@ files:
|
|
191
192
|
- lib/fog/aws/parsers/ec2/get_console_output.rb
|
192
193
|
- lib/fog/aws/parsers/ec2/run_instances.rb
|
193
194
|
- lib/fog/aws/parsers/ec2/terminate_instances.rb
|
195
|
+
- lib/fog/aws/parsers/elb/deregister_instances_from_load_balancer.rb
|
196
|
+
- lib/fog/aws/parsers/elb/describe_instance_health.rb
|
197
|
+
- lib/fog/aws/parsers/elb/describe_load_balancers.rb
|
198
|
+
- lib/fog/aws/parsers/elb/disable_availability_zones_for_load_balancer.rb
|
199
|
+
- lib/fog/aws/parsers/elb/enable_availability_zones_for_load_balancer.rb
|
200
|
+
- lib/fog/aws/parsers/elb/register_instances_with_load_balancer.rb
|
194
201
|
- lib/fog/aws/parsers/s3/copy_object.rb
|
195
202
|
- lib/fog/aws/parsers/s3/get_bucket.rb
|
196
203
|
- lib/fog/aws/parsers/s3/get_bucket_location.rb
|
@@ -231,6 +238,12 @@ files:
|
|
231
238
|
- lib/fog/aws/requests/ec2/revoke_security_group_ingress.rb
|
232
239
|
- lib/fog/aws/requests/ec2/run_instances.rb
|
233
240
|
- lib/fog/aws/requests/ec2/terminate_instances.rb
|
241
|
+
- lib/fog/aws/requests/elb/deregister_instances_from_load_balancer.rb
|
242
|
+
- lib/fog/aws/requests/elb/describe_instance_health.rb
|
243
|
+
- lib/fog/aws/requests/elb/describe_load_balancers.rb
|
244
|
+
- lib/fog/aws/requests/elb/disable_availability_zones_for_load_balancer.rb
|
245
|
+
- lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
|
246
|
+
- lib/fog/aws/requests/elb/register_instances_with_load_balancer.rb
|
234
247
|
- lib/fog/aws/requests/s3/copy_object.rb
|
235
248
|
- lib/fog/aws/requests/s3/delete_bucket.rb
|
236
249
|
- lib/fog/aws/requests/s3/delete_object.rb
|
@@ -259,6 +272,12 @@ files:
|
|
259
272
|
- lib/fog/connection.rb
|
260
273
|
- lib/fog/credentials.rb
|
261
274
|
- lib/fog/deprecation.rb
|
275
|
+
- lib/fog/local.rb
|
276
|
+
- lib/fog/local/bin.rb
|
277
|
+
- lib/fog/local/models/directories.rb
|
278
|
+
- lib/fog/local/models/directory.rb
|
279
|
+
- lib/fog/local/models/file.rb
|
280
|
+
- lib/fog/local/models/files.rb
|
262
281
|
- lib/fog/model.rb
|
263
282
|
- lib/fog/parser.rb
|
264
283
|
- lib/fog/rackspace.rb
|
@@ -388,8 +407,8 @@ files:
|
|
388
407
|
- lib/fog/terremark/requests/shared/instantiate_vapp_template.rb
|
389
408
|
- lib/fog/terremark/requests/shared/power_off.rb
|
390
409
|
- lib/fog/terremark/requests/shared/power_on.rb
|
391
|
-
- lib/fog/terremark/requests/shared/
|
392
|
-
- lib/fog/terremark/requests/shared/
|
410
|
+
- lib/fog/terremark/requests/shared/power_reset.rb
|
411
|
+
- lib/fog/terremark/requests/shared/power_shutdown.rb
|
393
412
|
- lib/fog/terremark/shared.rb
|
394
413
|
- lib/fog/terremark/vcloud.rb
|
395
414
|
- spec/aws/models/ec2/address_spec.rb
|