fog 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/Gemfile.lock +4 -4
- data/benchs/fog_vs.rb +8 -37
- data/fog.gemspec +6 -12
- data/lib/fog.rb +1 -1
- data/lib/fog/aws/requests/ec2/delete_key_pair.rb +4 -3
- data/lib/fog/aws/requests/ec2/describe_volumes.rb +2 -2
- data/lib/fog/aws/s3.rb +8 -4
- data/lib/fog/rackspace/models/servers/image.rb +5 -0
- data/tests/aws/helper.rb +33 -0
- data/tests/aws/requests/ec2/address_tests.rb +40 -47
- data/tests/aws/requests/ec2/availability_zone_tests.rb +23 -0
- data/tests/aws/requests/ec2/key_pair_tests.rb +44 -0
- data/tests/aws/requests/ec2/region_tests.rb +22 -0
- data/tests/aws/requests/ec2/security_group_tests.rb +112 -0
- data/tests/aws/requests/ec2/snapshot_tests.rb +14 -21
- data/tests/aws/requests/ec2/volume_tests.rb +26 -40
- data/tests/helper.rb +50 -35
- data/tests/rackspace/helper.rb +2 -0
- data/tests/rackspace/requests/servers/create_image_tests.rb +11 -13
- data/tests/rackspace/requests/servers/create_server_tests.rb +9 -11
- data/tests/rackspace/requests/servers/delete_image_tests.rb +9 -15
- data/tests/rackspace/requests/servers/delete_server_tests.rb +6 -10
- data/tests/rackspace/requests/servers/get_flavor_details_tests.rb +4 -10
- data/tests/rackspace/requests/servers/get_image_details_tests.rb +4 -10
- data/tests/rackspace/requests/servers/get_server_details_tests.rb +7 -14
- data/tests/rackspace/requests/servers/list_addresses_tests.rb +7 -14
- data/tests/rackspace/requests/servers/list_flavors_detail_tests.rb +2 -6
- data/tests/rackspace/requests/servers/list_flavors_tests.rb +2 -6
- data/tests/rackspace/requests/servers/list_images_detail_tests.rb +2 -6
- data/tests/rackspace/requests/servers/list_images_tests.rb +2 -6
- data/tests/rackspace/requests/servers/list_private_addresses_tests.rb +7 -14
- data/tests/rackspace/requests/servers/list_public_addresses_tests.rb +7 -14
- data/tests/rackspace/requests/servers/list_servers_detail_tests.rb +5 -10
- data/tests/rackspace/requests/servers/list_servers_tests.rb +5 -10
- data/tests/rackspace/requests/servers/reboot_server_tests.rb +11 -19
- data/tests/rackspace/requests/servers/update_server_tests.rb +7 -14
- data/tests/slicehost/requests/create_slice_tests.rb +6 -11
- data/tests/slicehost/requests/delete_slice_tests.rb +4 -9
- data/tests/slicehost/requests/get_backups_tests.rb +2 -6
- data/tests/slicehost/requests/get_flavor_tests.rb +4 -10
- data/tests/slicehost/requests/get_flavors_tests.rb +2 -6
- data/tests/slicehost/requests/get_image_tests.rb +4 -10
- data/tests/slicehost/requests/get_images_tests.rb +2 -6
- data/tests/slicehost/requests/get_slice_tests.rb +7 -15
- data/tests/slicehost/requests/get_slices_tests.rb +2 -6
- data/tests/slicehost/requests/reboot_slice_tests.rb +8 -16
- metadata +7 -13
- data/spec/aws/requests/ec2/authorize_security_group_ingress_spec.rb +0 -36
- data/spec/aws/requests/ec2/create_key_pair_spec.rb +0 -36
- data/spec/aws/requests/ec2/create_security_group_spec.rb +0 -34
- data/spec/aws/requests/ec2/delete_key_pair_spec.rb +0 -21
- data/spec/aws/requests/ec2/delete_security_group_spec.rb +0 -26
- data/spec/aws/requests/ec2/describe_availability_zones_spec.rb +0 -23
- data/spec/aws/requests/ec2/describe_key_pairs_spec.rb +0 -42
- data/spec/aws/requests/ec2/describe_regions_spec.rb +0 -21
- data/spec/aws/requests/ec2/describe_security_groups_spec.rb +0 -51
- data/spec/aws/requests/ec2/revoke_security_group_ingress_spec.rb +0 -32
@@ -1,28 +1,22 @@
|
|
1
1
|
Shindo.tests('Rackspace::Servers#delete_image', 'rackspace') do
|
2
2
|
tests('success') do
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
4
|
+
@server = Rackspace[:servers].servers.create(:flavor_id => 1, :image_id => 19, :name => 'foggetserverdetails')
|
5
|
+
@server.wait_for { ready? }
|
6
|
+
@image = Rackspace[:servers].images.create(:server_id => @server.id)
|
7
|
+
@image.wait_for { ready? }
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
Rackspace[:servers].delete_server(@server_id)
|
9
|
+
tests("#delete_image(#{@image.identity})").succeeds do
|
10
|
+
Rackspace[:servers].delete_image(@image.identity)
|
12
11
|
end
|
13
12
|
|
14
|
-
|
15
|
-
Fog.wait_for { Rackspace[:servers].get_image_details(@image_id).body['image']['status'] == 'ACTIVE' }
|
16
|
-
Rackspace[:servers].delete_image(@image_id)
|
17
|
-
end
|
13
|
+
@server.destroy
|
18
14
|
|
19
15
|
end
|
20
16
|
tests('failure') do
|
21
17
|
|
22
|
-
|
23
|
-
|
24
|
-
Rackspace[:servers].delete_image(0)
|
25
|
-
end
|
18
|
+
tests('#delete_image(0)').raises(Excon::Errors::BadRequest) do
|
19
|
+
Rackspace[:servers].delete_image(0)
|
26
20
|
end
|
27
21
|
|
28
22
|
end
|
@@ -1,22 +1,18 @@
|
|
1
1
|
Shindo.tests('Rackspace::Servers#delete_server', 'rackspace') do
|
2
2
|
tests('success') do
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
end
|
4
|
+
@server = Rackspace[:servers].servers.create(:flavor_id => 1, :image_id => 19, :name => 'foggetserverdetails')
|
5
|
+
@server.wait_for { ready? }
|
7
6
|
|
8
|
-
|
9
|
-
|
10
|
-
Rackspace[:servers].delete_server(@server_id)
|
7
|
+
tests("#delete_server(#{@server.id})").succeeds do
|
8
|
+
Rackspace[:servers].delete_server(@server.id)
|
11
9
|
end
|
12
10
|
|
13
11
|
end
|
14
12
|
tests('failure') do
|
15
13
|
|
16
|
-
|
17
|
-
|
18
|
-
Rackspace[:servers].delete_server(0)
|
19
|
-
end
|
14
|
+
tests('#delete_server(0)').raises(Excon::Errors::NotFound) do
|
15
|
+
Rackspace[:servers].delete_server(0)
|
20
16
|
end
|
21
17
|
|
22
18
|
end
|
@@ -1,21 +1,15 @@
|
|
1
1
|
Shindo.tests('Rackspace::Servers#get_flavor_details', 'rackspace') do
|
2
2
|
tests('success') do
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
end
|
7
|
-
|
8
|
-
test('has proper output format') do
|
9
|
-
has_format(@data, Rackspace::Servers::Formats::FLAVOR)
|
4
|
+
tests('#get_flavor_details(1)').formats(Rackspace::Servers::Formats::FLAVOR) do
|
5
|
+
Rackspace[:servers].get_flavor_details(1).body['flavor']
|
10
6
|
end
|
11
7
|
|
12
8
|
end
|
13
9
|
tests('failure') do
|
14
10
|
|
15
|
-
|
16
|
-
|
17
|
-
Rackspace[:servers].get_flavor_details(0)
|
18
|
-
end
|
11
|
+
tests('#get_flavor_details(0)').raises(Excon::Errors::NotFound) do
|
12
|
+
Rackspace[:servers].get_flavor_details(0)
|
19
13
|
end
|
20
14
|
|
21
15
|
end
|
@@ -1,21 +1,15 @@
|
|
1
1
|
Shindo.tests('Rackspace::Servers#get_image_details', 'rackspace') do
|
2
2
|
tests('success') do
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
end
|
7
|
-
|
8
|
-
test('has proper output format') do
|
9
|
-
has_format(@data, Rackspace::Servers::Formats::IMAGE)
|
4
|
+
tests('#get_image_details(19)').formats(Rackspace::Servers::Formats::IMAGE.reject {|key, value| ['progress', 'serverId'].include?(key)}) do
|
5
|
+
Rackspace[:servers].get_image_details(19).body['image']
|
10
6
|
end
|
11
7
|
|
12
8
|
end
|
13
9
|
tests('failure') do
|
14
10
|
|
15
|
-
|
16
|
-
|
17
|
-
Rackspace[:servers].get_image_details(0)
|
18
|
-
end
|
11
|
+
tests('#get_image_details(0)').raises(Excon::Errors::NotFound) do
|
12
|
+
Rackspace[:servers].get_image_details(0)
|
19
13
|
end
|
20
14
|
|
21
15
|
end
|
@@ -1,27 +1,20 @@
|
|
1
1
|
Shindo.tests('Rackspace::Servers#get_server_details', 'rackspace') do
|
2
2
|
tests('success') do
|
3
3
|
|
4
|
-
|
5
|
-
@server_id = Rackspace[:servers].create_server(1, 3, 'foggetserverdetails').body['server']['id']
|
6
|
-
@data = Rackspace[:servers].get_server_details(@server_id).body['server']
|
7
|
-
end
|
4
|
+
@server = Rackspace[:servers].servers.create(:flavor_id => 1, :image_id => 19, :name => 'foggetserverdetails')
|
8
5
|
|
9
|
-
|
10
|
-
|
11
|
-
Rackspace[:servers].delete_server(@server_id)
|
6
|
+
tests("#get_server_details(#{@server.id})").formats(Rackspace::Servers::Formats::SERVER) do
|
7
|
+
Rackspace[:servers].get_server_details(@server.id).body['server']
|
12
8
|
end
|
13
9
|
|
14
|
-
|
15
|
-
|
16
|
-
end
|
10
|
+
@server.wait_for { ready? }
|
11
|
+
@server.destroy
|
17
12
|
|
18
13
|
end
|
19
14
|
tests('failure') do
|
20
15
|
|
21
|
-
|
22
|
-
|
23
|
-
Rackspace[:servers].get_server_details(0)
|
24
|
-
end
|
16
|
+
tests('#get_server_details(0)').raises(Excon::Errors::NotFound) do
|
17
|
+
Rackspace[:servers].get_server_details(0)
|
25
18
|
end
|
26
19
|
|
27
20
|
end
|
@@ -1,27 +1,20 @@
|
|
1
1
|
Shindo.tests('Rackspace::Servers#list_addresses', 'rackspace') do
|
2
2
|
tests('success') do
|
3
3
|
|
4
|
-
|
5
|
-
@server_id = Rackspace[:servers].create_server(1, 3, 'foglistaddresses').body['server']['id']
|
6
|
-
@data = Rackspace[:servers].list_addresses(@server_id).body
|
7
|
-
end
|
4
|
+
@server = Rackspace[:servers].servers.create(:flavor_id => 1, :image_id => 19, :name => 'foglistaddresses')
|
8
5
|
|
9
|
-
|
10
|
-
|
11
|
-
Rackspace[:servers].delete_server(@server_id)
|
6
|
+
tests("#list_addresses(#{@server.id})").formats({'addresses' => {'private' => [String], 'public' => [String]}}) do
|
7
|
+
Rackspace[:servers].list_addresses(@server.id).body
|
12
8
|
end
|
13
9
|
|
14
|
-
|
15
|
-
|
16
|
-
end
|
10
|
+
@server.wait_for { ready? }
|
11
|
+
@server.destroy
|
17
12
|
|
18
13
|
end
|
19
14
|
tests('failure') do
|
20
15
|
|
21
|
-
|
22
|
-
|
23
|
-
Rackspace[:servers].list_addresses(0)
|
24
|
-
end
|
16
|
+
tests('#list_addresses(0)').raises(Excon::Errors::NotFound) do
|
17
|
+
Rackspace[:servers].list_addresses(0)
|
25
18
|
end
|
26
19
|
|
27
20
|
end
|
@@ -1,12 +1,8 @@
|
|
1
1
|
Shindo.tests('Rackspace::Servers#list_flavors_detail', 'rackspace') do
|
2
2
|
tests('success') do
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
end
|
7
|
-
|
8
|
-
test('has proper output format') do
|
9
|
-
has_format(@data, [Rackspace::Servers::Formats::FLAVOR])
|
4
|
+
tests('#list_flavors_detail').formats({'flavors' => [Rackspace::Servers::Formats::FLAVOR]}) do
|
5
|
+
Rackspace[:servers].list_flavors_detail.body
|
10
6
|
end
|
11
7
|
|
12
8
|
end
|
@@ -1,12 +1,8 @@
|
|
1
1
|
Shindo.tests('Rackspace::Servers#list_flavors', 'rackspace') do
|
2
2
|
tests('success') do
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
end
|
7
|
-
|
8
|
-
test('has proper output format') do
|
9
|
-
has_format(@data, Rackspace::Servers::Formats::SUMMARY)
|
4
|
+
tests('#list_flavors').formats({'flavors' => [Rackspace::Servers::Formats::SUMMARY]}) do
|
5
|
+
Rackspace[:servers].list_flavors.body
|
10
6
|
end
|
11
7
|
|
12
8
|
end
|
@@ -1,12 +1,8 @@
|
|
1
1
|
Shindo.tests('Rackspace::Servers#list_images_detail', 'rackspace') do
|
2
2
|
tests('success') do
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
end
|
7
|
-
|
8
|
-
test('has proper output format') do
|
9
|
-
has_format(@data, Rackspace::Servers::Formats::IMAGE)
|
4
|
+
tests('#list_images_detail').formats({'images' => [Rackspace::Servers::Formats::IMAGE]})
|
5
|
+
Rackspace[:servers].list_images_detail.body
|
10
6
|
end
|
11
7
|
|
12
8
|
end
|
@@ -1,12 +1,8 @@
|
|
1
1
|
Shindo.tests('Rackspace::Servers#list_images', 'rackspace') do
|
2
2
|
tests('success') do
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
end
|
7
|
-
|
8
|
-
test('has proper output format') do
|
9
|
-
has_format(@data, Rackspace::Servers::Formats::SUMMARY)
|
4
|
+
tests('#list_images').formats({'images' => [Rackspace::Servers::Formats::SUMMARY]}) do
|
5
|
+
Rackspace[:servers].list_images.body
|
10
6
|
end
|
11
7
|
|
12
8
|
end
|
@@ -1,27 +1,20 @@
|
|
1
1
|
Shindo.tests('Rackspace::Servers#list_private_addresses', 'rackspace') do
|
2
2
|
tests('success') do
|
3
3
|
|
4
|
-
|
5
|
-
@server_id = Rackspace[:servers].create_server(1, 3, 'foglistprivateaddresses').body['server']['id']
|
6
|
-
@data = Rackspace[:servers].list_private_addresses(@server_id).body
|
7
|
-
end
|
4
|
+
@server = Rackspace[:servers].servers.create(:flavor_id => 1, :image_id => 19, :name => 'foglistprivateaddresses')
|
8
5
|
|
9
|
-
|
10
|
-
|
11
|
-
Rackspace[:servers].delete_server(@server_id)
|
6
|
+
tests("#list_private_addresses(#{@server.id})").formats({'private' => [String]}) do
|
7
|
+
Rackspace[:servers].list_private_addresses(@server.id).body
|
12
8
|
end
|
13
9
|
|
14
|
-
|
15
|
-
|
16
|
-
end
|
10
|
+
@server.wait_for { ready? }
|
11
|
+
@server.destroy
|
17
12
|
|
18
13
|
end
|
19
14
|
tests('failure') do
|
20
15
|
|
21
|
-
|
22
|
-
|
23
|
-
Rackspace[:servers].list_private_addresses(0)
|
24
|
-
end
|
16
|
+
tests('#list_private_addresses(0)').raises(Excon::Errors::NotFound) do
|
17
|
+
Rackspace[:servers].list_private_addresses(0)
|
25
18
|
end
|
26
19
|
|
27
20
|
end
|
@@ -1,27 +1,20 @@
|
|
1
1
|
Shindo.tests('Rackspace::Servers#list_public_addresses', 'rackspace') do
|
2
2
|
tests('success') do
|
3
3
|
|
4
|
-
|
5
|
-
@server_id = Rackspace[:servers].create_server(1, 3, 'foglistpublicaddresses').body['server']['id']
|
6
|
-
@data = Rackspace[:servers].list_public_addresses(@server_id).body
|
7
|
-
end
|
4
|
+
@server = Rackspace[:servers].servers.create(:flavor_id => 1, :image_id => 19, :name => 'foglistpublicaddresses')
|
8
5
|
|
9
|
-
|
10
|
-
|
11
|
-
Rackspace[:servers].delete_server(@server_id)
|
6
|
+
tests("#list_public_addresses(#{@server.id})").formats({'public' => [String]}) do
|
7
|
+
Rackspace[:servers].list_public_addresses(@server.id).body
|
12
8
|
end
|
13
9
|
|
14
|
-
|
15
|
-
|
16
|
-
end
|
10
|
+
@server.wait_for { ready? }
|
11
|
+
@server.destroy
|
17
12
|
|
18
13
|
end
|
19
14
|
tests('failure') do
|
20
15
|
|
21
|
-
|
22
|
-
|
23
|
-
Rackspace[:servers].list_public_addresses(0)
|
24
|
-
end
|
16
|
+
tests('#list_public_addresses(0)').raises(Excon::Errors::NotFound) do
|
17
|
+
Rackspace[:servers].list_public_addresses(0)
|
25
18
|
end
|
26
19
|
|
27
20
|
end
|
@@ -1,19 +1,14 @@
|
|
1
1
|
Shindo.tests('Rackspace::Servers#list_servers_detail', 'rackspace') do
|
2
2
|
tests('success') do
|
3
3
|
|
4
|
-
|
5
|
-
@server_id = Rackspace[:servers].create_server(1, 3, 'foglistserversdetail').body['server']['id']
|
6
|
-
@data = Rackspace[:servers].list_servers_detail.body['servers']
|
7
|
-
end
|
4
|
+
@server = Rackspace[:servers].servers.create(:flavor_id => 1, :image_id => 19, :name => 'foglistserversdetail')
|
8
5
|
|
9
|
-
|
10
|
-
|
11
|
-
Rackspace[:servers].delete_server(@server_id)
|
6
|
+
tests('#list_servers_detail').formats({'servers' => [Rackspace::Servers::Formats::SERVER]}) do
|
7
|
+
Rackspace[:servers].list_servers_detail.body
|
12
8
|
end
|
13
9
|
|
14
|
-
|
15
|
-
|
16
|
-
end
|
10
|
+
@server.wait_for { ready? }
|
11
|
+
@server.destroy
|
17
12
|
|
18
13
|
end
|
19
14
|
end
|
@@ -1,19 +1,14 @@
|
|
1
1
|
Shindo.tests('Rackspace::Servers#list_servers', 'rackspace') do
|
2
2
|
tests('success') do
|
3
3
|
|
4
|
-
|
5
|
-
@server_id = Rackspace[:servers].create_server(1, 3, 'foglistservers').body['server']['id']
|
6
|
-
@data = Rackspace[:servers].list_servers.body['servers']
|
7
|
-
end
|
4
|
+
@server = Rackspace[:servers].servers.create(:flavor_id => 1, :image_id => 19, :name => 'foglistservers')
|
8
5
|
|
9
|
-
|
10
|
-
|
11
|
-
Rackspace[:servers].delete_server(@server_id)
|
6
|
+
tests('#list_servers').formats({'servers' => [Rackspace::Servers::Formats::SUMMARY]}) do
|
7
|
+
Rackspace[:servers].list_servers.body
|
12
8
|
end
|
13
9
|
|
14
|
-
|
15
|
-
|
16
|
-
end
|
10
|
+
@server.wait_for { ready? }
|
11
|
+
@server.destroy
|
17
12
|
|
18
13
|
end
|
19
14
|
end
|
@@ -1,36 +1,28 @@
|
|
1
1
|
Shindo.tests('Rackspace::Servers#reboot_server', 'rackspace') do
|
2
2
|
tests('success') do
|
3
3
|
|
4
|
+
@server = Rackspace[:servers].servers.create(:flavor_id => 1, :image_id => 19, :name => 'fogrebootserver')
|
5
|
+
|
4
6
|
before do
|
5
|
-
@
|
7
|
+
@server.wait_for { ready? }
|
6
8
|
end
|
7
9
|
|
8
|
-
|
9
|
-
|
10
|
-
Rackspace[:servers].delete_server(@server_id)
|
10
|
+
tests("#reboot_server(#{@server.id}, 'HARD')").succeeds do
|
11
|
+
Rackspace[:servers].reboot_server(@server.id, 'HARD')
|
11
12
|
end
|
12
13
|
|
13
|
-
tests('
|
14
|
-
|
15
|
-
Fog.wait_for { Rackspace[:servers].get_server_details(@server_id).body['server']['status'] == 'ACTIVE' }
|
16
|
-
Rackspace[:servers].reboot_server(@server_id, 'HARD')
|
17
|
-
end
|
14
|
+
tests("#reboot_server(#{@server.id}, 'SOFT')").succeeds do
|
15
|
+
Rackspace[:servers].reboot_server(@server.id, 'SOFT')
|
18
16
|
end
|
19
17
|
|
20
|
-
|
21
|
-
|
22
|
-
Fog.wait_for { Rackspace[:servers].get_server_details(@server_id).body['server']['status'] == 'ACTIVE' }
|
23
|
-
Rackspace[:servers].reboot_server(@server_id, 'SOFT')
|
24
|
-
end
|
25
|
-
end
|
18
|
+
@server.wait_for { ready? }
|
19
|
+
@server.destroy
|
26
20
|
|
27
21
|
end
|
28
22
|
tests('failure') do
|
29
23
|
|
30
|
-
|
31
|
-
|
32
|
-
Rackspace[:servers].reboot_server(0)
|
33
|
-
end
|
24
|
+
tests('#reboot_server(0)').raises(Excon::Errors::NotFound) do
|
25
|
+
Rackspace[:servers].reboot_server(0)
|
34
26
|
end
|
35
27
|
|
36
28
|
end
|
@@ -1,27 +1,20 @@
|
|
1
1
|
Shindo.tests('Rackspace::Servers#update_server', 'rackspace') do
|
2
2
|
tests('success') do
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
Fog.wait_for { Rackspace[:servers].get_server_details(@server_id).body['server']['status'] == 'ACTIVE' }
|
7
|
-
@data = Rackspace[:servers].update_server(@server_id, :name => 'fogupdatedserver', :adminPass => 'fogupdatedserver')
|
8
|
-
end
|
4
|
+
@server = Rackspace[:servers].servers.create(:flavor_id => 1, :image_id => 19, :name => 'fogupdateserver')
|
5
|
+
@server.wait_for { ready? }
|
9
6
|
|
10
|
-
|
11
|
-
Rackspace[:servers].
|
7
|
+
tests("#update_server(#{@server.id}, :name => 'fogupdatedserver', :adminPass => 'fogupdatedserver')").succeeds do
|
8
|
+
Rackspace[:servers].update_server(@server.id, :name => 'fogupdatedserver', :adminPass => 'fogupdatedserver')
|
12
9
|
end
|
13
10
|
|
14
|
-
|
15
|
-
has_format(@data, {'name' => String, 'adminPass' => String})
|
16
|
-
end
|
11
|
+
@server.destroy
|
17
12
|
|
18
13
|
end
|
19
14
|
tests('failure') do
|
20
15
|
|
21
|
-
|
22
|
-
|
23
|
-
Rackspace[:servers].update_server(0, :name => 'fogupdatedserver', :adminPass => 'fogupdatedserver')
|
24
|
-
end
|
16
|
+
tests("#update_server(0, :name => 'fogupdatedserver', :adminPass => 'fogupdatedserver')").raises(Excon::Errors::NotFound) do
|
17
|
+
Rackspace[:servers].update_server(0, :name => 'fogupdatedserver', :adminPass => 'fogupdatedserver')
|
25
18
|
end
|
26
19
|
|
27
20
|
end
|