fog 1.33.0 → 1.34.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +47 -0
- data/Rakefile +3 -0
- data/fog.gemspec +4 -4
- data/lib/fog/openstack/baremetal.rb +20 -82
- data/lib/fog/openstack/compute.rb +11 -34
- data/lib/fog/openstack/core.rb +37 -10
- data/lib/fog/openstack/identity.rb +33 -44
- data/lib/fog/openstack/identity_v2.rb +14 -84
- data/lib/fog/openstack/identity_v3.rb +4 -51
- data/lib/fog/openstack/image.rb +22 -83
- data/lib/fog/openstack/metering.rb +15 -76
- data/lib/fog/openstack/models/compute/server.rb +1 -1
- data/lib/fog/openstack/models/orchestration/events.rb +1 -0
- data/lib/fog/openstack/models/orchestration/resources.rb +1 -0
- data/lib/fog/openstack/models/orchestration/stack.rb +1 -1
- data/lib/fog/openstack/models/orchestration/stacks.rb +1 -0
- data/lib/fog/openstack/models/orchestration/templates.rb +1 -0
- data/lib/fog/openstack/network.rb +21 -21
- data/lib/fog/openstack/orchestration.rb +11 -91
- data/lib/fog/openstack/planning.rb +19 -81
- data/lib/fog/openstack/requests/compute/list_security_groups.rb +9 -1
- data/lib/fog/openstack/requests/network/add_router_interface.rb +12 -4
- data/lib/fog/openstack/requests/network/create_port.rb +14 -12
- data/lib/fog/openstack/requests/network/get_port.rb +4 -0
- data/lib/fog/openstack/requests/network/set_tenant.rb +1 -0
- data/lib/fog/openstack/storage.rb +18 -57
- data/lib/fog/openstack/volume.rb +17 -79
- data/lib/fog/rackspace/requests/storage/get_object_https_url.rb +13 -2
- data/lib/fog/vcloud_director/generators/compute/edge_gateway_service_configuration.rb +7 -6
- data/lib/fog/vcloud_director/models/compute/vm_customizations.rb +15 -0
- data/lib/fog/version.rb +1 -1
- data/lib/tasks/changelog_task.rb +1 -0
- data/spec/fog/openstack/volume_spec.rb +5 -0
- data/tests/compute/helper.rb +0 -6
- data/tests/openstack/requests/network/port_tests.rb +14 -12
- data/tests/rackspace/requests/storage/object_tests.rb +46 -4
- data/tests/vcloud_director/requests/compute/edge_gateway_tests.rb +2 -2
- metadata +11 -74
- data/lib/fog/bin/dynect.rb +0 -28
- data/tests/brightbox/compute/helper.rb +0 -1
- data/tests/brightbox/compute/schema.rb +0 -799
- data/tests/brightbox/compute_tests.rb +0 -101
- data/tests/brightbox/helper.rb +0 -1
- data/tests/brightbox/models/compute/account_tests.rb +0 -17
- data/tests/brightbox/models/compute/cloud_ip_tests.rb +0 -32
- data/tests/brightbox/models/compute/database_server_tests.rb +0 -78
- data/tests/brightbox/models/compute/database_snapshot_tests.rb +0 -26
- data/tests/brightbox/models/compute/database_type_tests.rb +0 -27
- data/tests/brightbox/models/compute/server_tests.rb +0 -19
- data/tests/brightbox/oauth2_tests.rb +0 -110
- data/tests/brightbox/requests/compute/account_tests.rb +0 -65
- data/tests/brightbox/requests/compute/api_client_tests.rb +0 -64
- data/tests/brightbox/requests/compute/application_test.rb +0 -63
- data/tests/brightbox/requests/compute/cloud_ip_tests.rb +0 -85
- data/tests/brightbox/requests/compute/collaboration_tests.rb +0 -39
- data/tests/brightbox/requests/compute/database_server_tests.rb +0 -54
- data/tests/brightbox/requests/compute/database_snapsnot_tests.rb +0 -47
- data/tests/brightbox/requests/compute/database_type_tests.rb +0 -17
- data/tests/brightbox/requests/compute/firewall_policy_tests.rb +0 -40
- data/tests/brightbox/requests/compute/firewall_rule_tests.rb +0 -43
- data/tests/brightbox/requests/compute/helper.rb +0 -41
- data/tests/brightbox/requests/compute/image_tests.rb +0 -60
- data/tests/brightbox/requests/compute/interface_tests.rb +0 -33
- data/tests/brightbox/requests/compute/load_balancer_tests.rb +0 -121
- data/tests/brightbox/requests/compute/server_group_tests.rb +0 -96
- data/tests/brightbox/requests/compute/server_tests.rb +0 -99
- data/tests/brightbox/requests/compute/server_type_tests.rb +0 -34
- data/tests/brightbox/requests/compute/user_collaboration_tests.rb +0 -67
- data/tests/brightbox/requests/compute/user_tests.rb +0 -38
- data/tests/brightbox/requests/compute/zone_tests.rb +0 -34
@@ -1,34 +0,0 @@
|
|
1
|
-
Shindo.tests('Fog::Compute[:brightbox] | server type requests', ['brightbox']) do
|
2
|
-
|
3
|
-
tests('success') do
|
4
|
-
|
5
|
-
tests("#list_server_types") do
|
6
|
-
pending if Fog.mocking?
|
7
|
-
result = Fog::Compute[:brightbox].list_server_types
|
8
|
-
@server_type_id = result.first["id"]
|
9
|
-
data_matches_schema(Brightbox::Compute::Formats::Collection::SERVER_TYPES, {:allow_extra_keys => true}) { result }
|
10
|
-
end
|
11
|
-
|
12
|
-
tests("#get_server_type('#{@server_type_id}')") do
|
13
|
-
pending if Fog.mocking?
|
14
|
-
result = Fog::Compute[:brightbox].get_server_type(@server_type_id)
|
15
|
-
data_matches_schema(Brightbox::Compute::Formats::Full::SERVER_TYPE, {:allow_extra_keys => true}) { result }
|
16
|
-
end
|
17
|
-
|
18
|
-
end
|
19
|
-
|
20
|
-
tests('failure') do
|
21
|
-
|
22
|
-
tests("#get_server_type('typ-00000')").raises(Excon::Errors::NotFound) do
|
23
|
-
pending if Fog.mocking?
|
24
|
-
Fog::Compute[:brightbox].get_server_type('typ-00000')
|
25
|
-
end
|
26
|
-
|
27
|
-
tests("#get_server").raises(ArgumentError) do
|
28
|
-
pending if Fog.mocking?
|
29
|
-
Fog::Compute[:brightbox].get_server_type
|
30
|
-
end
|
31
|
-
|
32
|
-
end
|
33
|
-
|
34
|
-
end
|
@@ -1,67 +0,0 @@
|
|
1
|
-
Shindo.tests('Fog::Compute[:brightbox] | user collaboration requests', ['brightbox']) do
|
2
|
-
|
3
|
-
@service = Fog::Compute[:brightbox]
|
4
|
-
|
5
|
-
tests("when accessing with user application") do
|
6
|
-
pending unless @service.authenticating_as_user?
|
7
|
-
tests("success") do
|
8
|
-
tests("#list_user_collaborations") do
|
9
|
-
pending if Fog.mocking?
|
10
|
-
result = @service.list_user_collaborations
|
11
|
-
|
12
|
-
formats(Brightbox::Compute::Formats::Collection::COLLABORATIONS, false) { result }
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
tests("failure") do
|
17
|
-
tests("get_user_collaboration('col-abcde')").raises(Excon::Errors::NotFound) do
|
18
|
-
pending if Fog.mocking?
|
19
|
-
|
20
|
-
@service.get_user_collaboration('col-abcde')
|
21
|
-
end
|
22
|
-
|
23
|
-
tests("accept_user_collaboration('col-abcde')").raises(Excon::Errors::NotFound) do
|
24
|
-
pending if Fog.mocking?
|
25
|
-
|
26
|
-
@service.accept_user_collaboration('col-abcde')
|
27
|
-
end
|
28
|
-
|
29
|
-
tests("reject_user_collaboration('col-abcde')").raises(Excon::Errors::NotFound) do
|
30
|
-
pending if Fog.mocking?
|
31
|
-
|
32
|
-
@service.reject_user_collaboration('col-abcde')
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
tests("when accessing with API client") do
|
38
|
-
pending if @service.authenticating_as_user?
|
39
|
-
tests("forbidden") do
|
40
|
-
|
41
|
-
tests("#list_user_collaborations").raises(Excon::Errors::Forbidden) do
|
42
|
-
pending if Fog.mocking?
|
43
|
-
result = @service.list_user_collaborations
|
44
|
-
|
45
|
-
formats(Brightbox::Compute::Formats::Collection::COLLABORATIONS, false) { result }
|
46
|
-
end
|
47
|
-
|
48
|
-
tests("get_user_collaboration('col-abcde')").raises(Excon::Errors::Forbidden) do
|
49
|
-
pending if Fog.mocking?
|
50
|
-
|
51
|
-
@service.get_user_collaboration('col-abcde')
|
52
|
-
end
|
53
|
-
|
54
|
-
tests("accept_user_collaboration('col-abcde')").raises(Excon::Errors::Forbidden) do
|
55
|
-
pending if Fog.mocking?
|
56
|
-
|
57
|
-
@service.accept_user_collaboration('col-abcde')
|
58
|
-
end
|
59
|
-
|
60
|
-
tests("reject_user_collaboration('col-abcde')").raises(Excon::Errors::Forbidden) do
|
61
|
-
pending if Fog.mocking?
|
62
|
-
|
63
|
-
@service.reject_user_collaboration('col-abcde')
|
64
|
-
end
|
65
|
-
end
|
66
|
-
end
|
67
|
-
end
|
@@ -1,38 +0,0 @@
|
|
1
|
-
Shindo.tests('Fog::Compute[:brightbox] | user requests', ['brightbox']) do
|
2
|
-
|
3
|
-
tests('success') do
|
4
|
-
|
5
|
-
tests("#list_users") do
|
6
|
-
pending if Fog.mocking?
|
7
|
-
result = Fog::Compute[:brightbox].list_users
|
8
|
-
@user_id = result.first["id"]
|
9
|
-
data_matches_schema(Brightbox::Compute::Formats::Collection::USERS, {:allow_extra_keys => true}) { result }
|
10
|
-
end
|
11
|
-
|
12
|
-
tests("#get_user('#{@user_id}')") do
|
13
|
-
pending if Fog.mocking?
|
14
|
-
result = Fog::Compute[:brightbox].get_user(@user_id)
|
15
|
-
@current_name = result["name"]
|
16
|
-
data_matches_schema(Brightbox::Compute::Formats::Full::USER, {:allow_extra_keys => true}) { result }
|
17
|
-
end
|
18
|
-
|
19
|
-
# Rather than setting the name to something useless we set it to the original value
|
20
|
-
update_options = { :name => @current_name }
|
21
|
-
tests("#update_user('#{@user_id}', #{update_options.inspect})") do
|
22
|
-
pending if Fog.mocking?
|
23
|
-
result = Fog::Compute[:brightbox].update_user(@user_id, update_options)
|
24
|
-
data_matches_schema(Brightbox::Compute::Formats::Full::USER, {:allow_extra_keys => true}) { result }
|
25
|
-
end
|
26
|
-
|
27
|
-
end
|
28
|
-
|
29
|
-
tests('failure') do
|
30
|
-
|
31
|
-
tests("#update_user").raises(ArgumentError) do
|
32
|
-
pending if Fog.mocking?
|
33
|
-
Fog::Compute[:brightbox].update_user
|
34
|
-
end
|
35
|
-
|
36
|
-
end
|
37
|
-
|
38
|
-
end
|
@@ -1,34 +0,0 @@
|
|
1
|
-
Shindo.tests('Fog::Compute[:brightbox] | zone requests', ['brightbox']) do
|
2
|
-
|
3
|
-
tests('success') do
|
4
|
-
|
5
|
-
tests("#list_zones") do
|
6
|
-
pending if Fog.mocking?
|
7
|
-
result = Fog::Compute[:brightbox].list_zones
|
8
|
-
@zone_id = result.first["id"]
|
9
|
-
data_matches_schema(Brightbox::Compute::Formats::Collection::ZONES, {:allow_extra_keys => true}) { result }
|
10
|
-
end
|
11
|
-
|
12
|
-
tests("#get_zone('#{@zone_id}')") do
|
13
|
-
pending if Fog.mocking?
|
14
|
-
result = Fog::Compute[:brightbox].get_zone(@zone_id)
|
15
|
-
data_matches_schema(Brightbox::Compute::Formats::Full::ZONE, {:allow_extra_keys => true}) { result }
|
16
|
-
end
|
17
|
-
|
18
|
-
end
|
19
|
-
|
20
|
-
tests('failure') do
|
21
|
-
|
22
|
-
tests("#get_zone('zon-00000')").raises(Excon::Errors::NotFound) do
|
23
|
-
pending if Fog.mocking?
|
24
|
-
Fog::Compute[:brightbox].get_zone('zon-00000')
|
25
|
-
end
|
26
|
-
|
27
|
-
tests("#get_zone").raises(ArgumentError) do
|
28
|
-
pending if Fog.mocking?
|
29
|
-
Fog::Compute[:brightbox].get_zone
|
30
|
-
end
|
31
|
-
|
32
|
-
end
|
33
|
-
|
34
|
-
end
|