fog 1.33.0 → 1.34.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +47 -0
  3. data/Rakefile +3 -0
  4. data/fog.gemspec +4 -4
  5. data/lib/fog/openstack/baremetal.rb +20 -82
  6. data/lib/fog/openstack/compute.rb +11 -34
  7. data/lib/fog/openstack/core.rb +37 -10
  8. data/lib/fog/openstack/identity.rb +33 -44
  9. data/lib/fog/openstack/identity_v2.rb +14 -84
  10. data/lib/fog/openstack/identity_v3.rb +4 -51
  11. data/lib/fog/openstack/image.rb +22 -83
  12. data/lib/fog/openstack/metering.rb +15 -76
  13. data/lib/fog/openstack/models/compute/server.rb +1 -1
  14. data/lib/fog/openstack/models/orchestration/events.rb +1 -0
  15. data/lib/fog/openstack/models/orchestration/resources.rb +1 -0
  16. data/lib/fog/openstack/models/orchestration/stack.rb +1 -1
  17. data/lib/fog/openstack/models/orchestration/stacks.rb +1 -0
  18. data/lib/fog/openstack/models/orchestration/templates.rb +1 -0
  19. data/lib/fog/openstack/network.rb +21 -21
  20. data/lib/fog/openstack/orchestration.rb +11 -91
  21. data/lib/fog/openstack/planning.rb +19 -81
  22. data/lib/fog/openstack/requests/compute/list_security_groups.rb +9 -1
  23. data/lib/fog/openstack/requests/network/add_router_interface.rb +12 -4
  24. data/lib/fog/openstack/requests/network/create_port.rb +14 -12
  25. data/lib/fog/openstack/requests/network/get_port.rb +4 -0
  26. data/lib/fog/openstack/requests/network/set_tenant.rb +1 -0
  27. data/lib/fog/openstack/storage.rb +18 -57
  28. data/lib/fog/openstack/volume.rb +17 -79
  29. data/lib/fog/rackspace/requests/storage/get_object_https_url.rb +13 -2
  30. data/lib/fog/vcloud_director/generators/compute/edge_gateway_service_configuration.rb +7 -6
  31. data/lib/fog/vcloud_director/models/compute/vm_customizations.rb +15 -0
  32. data/lib/fog/version.rb +1 -1
  33. data/lib/tasks/changelog_task.rb +1 -0
  34. data/spec/fog/openstack/volume_spec.rb +5 -0
  35. data/tests/compute/helper.rb +0 -6
  36. data/tests/openstack/requests/network/port_tests.rb +14 -12
  37. data/tests/rackspace/requests/storage/object_tests.rb +46 -4
  38. data/tests/vcloud_director/requests/compute/edge_gateway_tests.rb +2 -2
  39. metadata +11 -74
  40. data/lib/fog/bin/dynect.rb +0 -28
  41. data/tests/brightbox/compute/helper.rb +0 -1
  42. data/tests/brightbox/compute/schema.rb +0 -799
  43. data/tests/brightbox/compute_tests.rb +0 -101
  44. data/tests/brightbox/helper.rb +0 -1
  45. data/tests/brightbox/models/compute/account_tests.rb +0 -17
  46. data/tests/brightbox/models/compute/cloud_ip_tests.rb +0 -32
  47. data/tests/brightbox/models/compute/database_server_tests.rb +0 -78
  48. data/tests/brightbox/models/compute/database_snapshot_tests.rb +0 -26
  49. data/tests/brightbox/models/compute/database_type_tests.rb +0 -27
  50. data/tests/brightbox/models/compute/server_tests.rb +0 -19
  51. data/tests/brightbox/oauth2_tests.rb +0 -110
  52. data/tests/brightbox/requests/compute/account_tests.rb +0 -65
  53. data/tests/brightbox/requests/compute/api_client_tests.rb +0 -64
  54. data/tests/brightbox/requests/compute/application_test.rb +0 -63
  55. data/tests/brightbox/requests/compute/cloud_ip_tests.rb +0 -85
  56. data/tests/brightbox/requests/compute/collaboration_tests.rb +0 -39
  57. data/tests/brightbox/requests/compute/database_server_tests.rb +0 -54
  58. data/tests/brightbox/requests/compute/database_snapsnot_tests.rb +0 -47
  59. data/tests/brightbox/requests/compute/database_type_tests.rb +0 -17
  60. data/tests/brightbox/requests/compute/firewall_policy_tests.rb +0 -40
  61. data/tests/brightbox/requests/compute/firewall_rule_tests.rb +0 -43
  62. data/tests/brightbox/requests/compute/helper.rb +0 -41
  63. data/tests/brightbox/requests/compute/image_tests.rb +0 -60
  64. data/tests/brightbox/requests/compute/interface_tests.rb +0 -33
  65. data/tests/brightbox/requests/compute/load_balancer_tests.rb +0 -121
  66. data/tests/brightbox/requests/compute/server_group_tests.rb +0 -96
  67. data/tests/brightbox/requests/compute/server_tests.rb +0 -99
  68. data/tests/brightbox/requests/compute/server_type_tests.rb +0 -34
  69. data/tests/brightbox/requests/compute/user_collaboration_tests.rb +0 -67
  70. data/tests/brightbox/requests/compute/user_tests.rb +0 -38
  71. 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