fog-openstack 0.1.25 → 0.1.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (186) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +3 -1
  3. data/.travis.yml +4 -4
  4. data/.zuul.yaml +35 -0
  5. data/README.md +3 -3
  6. data/Rakefile +6 -9
  7. data/docs/planning.md +3 -3
  8. data/docs/storage.md +1 -1
  9. data/examples/planning/basics.rb +1 -1
  10. data/fog-openstack.gemspec +3 -3
  11. data/lib/fog/baremetal/openstack/requests/create_chassis.rb +4 -4
  12. data/lib/fog/baremetal/openstack/requests/create_node.rb +4 -4
  13. data/lib/fog/baremetal/openstack/requests/create_port.rb +4 -4
  14. data/lib/fog/baremetal/openstack/requests/get_chassis.rb +6 -6
  15. data/lib/fog/baremetal/openstack/requests/get_driver.rb +6 -6
  16. data/lib/fog/baremetal/openstack/requests/get_driver_properties.rb +6 -6
  17. data/lib/fog/baremetal/openstack/requests/get_node.rb +6 -6
  18. data/lib/fog/baremetal/openstack/requests/get_port.rb +6 -6
  19. data/lib/fog/baremetal/openstack/requests/list_chassis.rb +6 -6
  20. data/lib/fog/baremetal/openstack/requests/list_chassis_detailed.rb +6 -6
  21. data/lib/fog/baremetal/openstack/requests/list_drivers.rb +6 -6
  22. data/lib/fog/baremetal/openstack/requests/list_nodes.rb +6 -6
  23. data/lib/fog/baremetal/openstack/requests/list_nodes_detailed.rb +6 -6
  24. data/lib/fog/baremetal/openstack/requests/list_ports.rb +6 -6
  25. data/lib/fog/baremetal/openstack/requests/list_ports_detailed.rb +6 -6
  26. data/lib/fog/baremetal/openstack/requests/patch_chassis.rb +4 -4
  27. data/lib/fog/baremetal/openstack/requests/patch_node.rb +4 -4
  28. data/lib/fog/baremetal/openstack/requests/patch_port.rb +4 -4
  29. data/lib/fog/baremetal/openstack/requests/set_node_maintenance.rb +4 -4
  30. data/lib/fog/baremetal/openstack/requests/set_node_power_state.rb +4 -4
  31. data/lib/fog/baremetal/openstack/requests/set_node_provision_state.rb +4 -4
  32. data/lib/fog/baremetal/openstack/requests/unset_node_maintenance.rb +4 -4
  33. data/lib/fog/compute/openstack/models/network.rb +4 -4
  34. data/lib/fog/compute/openstack/models/networks.rb +4 -4
  35. data/lib/fog/compute/openstack/models/server.rb +1 -1
  36. data/lib/fog/compute/openstack/models/server_group.rb +4 -4
  37. data/lib/fog/compute/openstack/models/server_groups.rb +4 -4
  38. data/lib/fog/compute/openstack/models/tenant.rb +4 -4
  39. data/lib/fog/compute/openstack/models/tenants.rb +4 -4
  40. data/lib/fog/compute/openstack/requests/add_aggregate_host.rb +4 -4
  41. data/lib/fog/compute/openstack/requests/add_fixed_ip.rb +7 -7
  42. data/lib/fog/compute/openstack/requests/allocate_address.rb +3 -3
  43. data/lib/fog/compute/openstack/requests/boot_from_snapshot.rb +3 -3
  44. data/lib/fog/compute/openstack/requests/create_aggregate.rb +4 -4
  45. data/lib/fog/compute/openstack/requests/create_flavor.rb +4 -4
  46. data/lib/fog/compute/openstack/requests/create_flavor_metadata.rb +4 -4
  47. data/lib/fog/compute/openstack/requests/create_key_pair.rb +4 -4
  48. data/lib/fog/compute/openstack/requests/create_security_group.rb +4 -4
  49. data/lib/fog/compute/openstack/requests/create_security_group_rule.rb +4 -4
  50. data/lib/fog/compute/openstack/requests/delete_aggregate.rb +4 -4
  51. data/lib/fog/compute/openstack/requests/delete_flavor.rb +4 -4
  52. data/lib/fog/compute/openstack/requests/delete_key_pair.rb +4 -4
  53. data/lib/fog/compute/openstack/requests/delete_security_group.rb +4 -4
  54. data/lib/fog/compute/openstack/requests/delete_security_group_rule.rb +4 -4
  55. data/lib/fog/compute/openstack/requests/delete_service.rb +4 -4
  56. data/lib/fog/compute/openstack/requests/disable_service.rb +4 -4
  57. data/lib/fog/compute/openstack/requests/disable_service_log_reason.rb +4 -4
  58. data/lib/fog/compute/openstack/requests/enable_service.rb +4 -4
  59. data/lib/fog/compute/openstack/requests/get_address.rb +4 -4
  60. data/lib/fog/compute/openstack/requests/get_aggregate.rb +4 -4
  61. data/lib/fog/compute/openstack/requests/get_flavor_metadata.rb +4 -4
  62. data/lib/fog/compute/openstack/requests/get_host_details.rb +4 -4
  63. data/lib/fog/compute/openstack/requests/get_security_group.rb +4 -4
  64. data/lib/fog/compute/openstack/requests/get_security_group_rule.rb +4 -4
  65. data/lib/fog/compute/openstack/requests/get_server_volumes.rb +1 -1
  66. data/lib/fog/compute/openstack/requests/get_vnc_console.rb +7 -7
  67. data/lib/fog/compute/openstack/requests/list_aggregates.rb +4 -4
  68. data/lib/fog/compute/openstack/requests/list_all_addresses.rb +4 -4
  69. data/lib/fog/compute/openstack/requests/list_hosts.rb +4 -4
  70. data/lib/fog/compute/openstack/requests/list_key_pairs.rb +4 -4
  71. data/lib/fog/compute/openstack/requests/list_security_groups.rb +4 -4
  72. data/lib/fog/compute/openstack/requests/list_services.rb +4 -4
  73. data/lib/fog/compute/openstack/requests/list_tenants.rb +4 -4
  74. data/lib/fog/compute/openstack/requests/pause_server.rb +7 -7
  75. data/lib/fog/compute/openstack/requests/release_address.rb +1 -1
  76. data/lib/fog/compute/openstack/requests/remove_aggregate_host.rb +4 -4
  77. data/lib/fog/compute/openstack/requests/remove_fixed_ip.rb +7 -7
  78. data/lib/fog/compute/openstack/requests/rescue_server.rb +7 -7
  79. data/lib/fog/compute/openstack/requests/resume_server.rb +7 -7
  80. data/lib/fog/compute/openstack/requests/server_actions.rb +7 -7
  81. data/lib/fog/compute/openstack/requests/server_diagnostics.rb +7 -7
  82. data/lib/fog/compute/openstack/requests/set_tenant.rb +3 -3
  83. data/lib/fog/compute/openstack/requests/shelve_offload_server.rb +7 -7
  84. data/lib/fog/compute/openstack/requests/shelve_server.rb +7 -7
  85. data/lib/fog/compute/openstack/requests/start_server.rb +7 -7
  86. data/lib/fog/compute/openstack/requests/stop_server.rb +7 -7
  87. data/lib/fog/compute/openstack/requests/suspend_server.rb +7 -7
  88. data/lib/fog/compute/openstack/requests/unpause_server.rb +7 -7
  89. data/lib/fog/compute/openstack/requests/unshelve_server.rb +7 -7
  90. data/lib/fog/compute/openstack/requests/update_aggregate.rb +4 -4
  91. data/lib/fog/compute/openstack/requests/update_aggregate_metadata.rb +4 -4
  92. data/lib/fog/dns/openstack.rb +3 -0
  93. data/lib/fog/identity/openstack.rb +3 -0
  94. data/lib/fog/identity/openstack/v2/models/role.rb +5 -5
  95. data/lib/fog/identity/openstack/v2/models/roles.rb +4 -4
  96. data/lib/fog/identity/openstack/v2/models/tenant.rb +5 -5
  97. data/lib/fog/identity/openstack/v2/models/tenants.rb +5 -5
  98. data/lib/fog/identity/openstack/v2/models/user.rb +5 -5
  99. data/lib/fog/identity/openstack/v2/models/users.rb +5 -5
  100. data/lib/fog/identity/openstack/v2/requests/add_user_to_tenant.rb +6 -6
  101. data/lib/fog/identity/openstack/v2/requests/create_ec2_credential.rb +1 -1
  102. data/lib/fog/identity/openstack/v2/requests/create_role.rb +1 -1
  103. data/lib/fog/identity/openstack/v2/requests/create_tenant.rb +8 -8
  104. data/lib/fog/identity/openstack/v2/requests/create_user.rb +1 -1
  105. data/lib/fog/identity/openstack/v2/requests/create_user_role.rb +1 -1
  106. data/lib/fog/identity/openstack/v2/requests/delete_ec2_credential.rb +1 -1
  107. data/lib/fog/identity/openstack/v2/requests/delete_role.rb +1 -1
  108. data/lib/fog/identity/openstack/v2/requests/delete_tenant.rb +8 -8
  109. data/lib/fog/identity/openstack/v2/requests/delete_user.rb +1 -1
  110. data/lib/fog/identity/openstack/v2/requests/delete_user_role.rb +1 -1
  111. data/lib/fog/identity/openstack/v2/requests/get_ec2_credential.rb +1 -1
  112. data/lib/fog/identity/openstack/v2/requests/get_role.rb +5 -5
  113. data/lib/fog/identity/openstack/v2/requests/get_tenant.rb +7 -7
  114. data/lib/fog/identity/openstack/v2/requests/get_tenants_by_id.rb +1 -1
  115. data/lib/fog/identity/openstack/v2/requests/get_tenants_by_name.rb +1 -1
  116. data/lib/fog/identity/openstack/v2/requests/get_user_by_id.rb +1 -1
  117. data/lib/fog/identity/openstack/v2/requests/get_user_by_name.rb +1 -1
  118. data/lib/fog/identity/openstack/v2/requests/list_ec2_credentials.rb +1 -1
  119. data/lib/fog/identity/openstack/v2/requests/list_endpoints_for_token.rb +1 -1
  120. data/lib/fog/identity/openstack/v2/requests/list_roles.rb +1 -1
  121. data/lib/fog/identity/openstack/v2/requests/list_roles_for_user_on_tenant.rb +8 -8
  122. data/lib/fog/identity/openstack/v2/requests/list_tenants.rb +7 -7
  123. data/lib/fog/identity/openstack/v2/requests/list_user_global_roles.rb +1 -1
  124. data/lib/fog/identity/openstack/v2/requests/list_users.rb +6 -6
  125. data/lib/fog/identity/openstack/v2/requests/remove_user_from_tenant.rb +6 -6
  126. data/lib/fog/identity/openstack/v2/requests/set_tenant.rb +4 -4
  127. data/lib/fog/identity/openstack/v2/requests/update_tenant.rb +8 -8
  128. data/lib/fog/identity/openstack/v2/requests/update_user.rb +1 -1
  129. data/lib/fog/image/openstack.rb +3 -0
  130. data/lib/fog/image/openstack/v1/requests/add_member_to_image.rb +7 -7
  131. data/lib/fog/image/openstack/v1/requests/get_image.rb +6 -6
  132. data/lib/fog/image/openstack/v1/requests/get_image_by_id.rb +6 -6
  133. data/lib/fog/image/openstack/v1/requests/get_image_members.rb +6 -6
  134. data/lib/fog/image/openstack/v1/requests/get_shared_images.rb +6 -6
  135. data/lib/fog/image/openstack/v1/requests/list_public_images.rb +6 -6
  136. data/lib/fog/image/openstack/v1/requests/list_public_images_detailed.rb +6 -6
  137. data/lib/fog/image/openstack/v1/requests/remove_member_from_image.rb +6 -6
  138. data/lib/fog/image/openstack/v1/requests/set_tenant.rb +3 -3
  139. data/lib/fog/image/openstack/v1/requests/update_image_members.rb +5 -5
  140. data/lib/fog/image/openstack/v2/requests/add_member_to_image.rb +6 -6
  141. data/lib/fog/image/openstack/v2/requests/add_tag_to_image.rb +6 -6
  142. data/lib/fog/image/openstack/v2/requests/download_image.rb +6 -6
  143. data/lib/fog/image/openstack/v2/requests/get_image.rb +6 -6
  144. data/lib/fog/image/openstack/v2/requests/get_image_by_id.rb +6 -6
  145. data/lib/fog/image/openstack/v2/requests/get_image_members.rb +6 -6
  146. data/lib/fog/image/openstack/v2/requests/get_member_details.rb +6 -6
  147. data/lib/fog/image/openstack/v2/requests/get_shared_images.rb +6 -6
  148. data/lib/fog/image/openstack/v2/requests/list_images.rb +6 -6
  149. data/lib/fog/image/openstack/v2/requests/remove_member_from_image.rb +6 -6
  150. data/lib/fog/image/openstack/v2/requests/remove_tag_from_image.rb +6 -6
  151. data/lib/fog/image/openstack/v2/requests/set_tenant.rb +3 -3
  152. data/lib/fog/image/openstack/v2/requests/update_image_member.rb +5 -5
  153. data/lib/fog/openstack.rb +27 -47
  154. data/lib/fog/openstack/version.rb +2 -2
  155. data/lib/fog/planning/openstack.rb +2 -2
  156. data/lib/fog/planning/openstack/models/plan.rb +1 -1
  157. data/lib/fog/planning/openstack/models/plans.rb +2 -2
  158. data/lib/fog/planning/openstack/models/role.rb +1 -1
  159. data/lib/fog/planning/openstack/models/roles.rb +2 -2
  160. data/lib/fog/planning/openstack/requests/add_role_to_plan.rb +7 -7
  161. data/lib/fog/planning/openstack/requests/create_plan.rb +7 -7
  162. data/lib/fog/planning/openstack/requests/delete_plan.rb +7 -7
  163. data/lib/fog/planning/openstack/requests/get_plan.rb +7 -7
  164. data/lib/fog/planning/openstack/requests/get_plan_templates.rb +7 -7
  165. data/lib/fog/planning/openstack/requests/list_plans.rb +7 -7
  166. data/lib/fog/planning/openstack/requests/list_roles.rb +7 -7
  167. data/lib/fog/planning/openstack/requests/patch_plan.rb +7 -7
  168. data/lib/fog/planning/openstack/requests/remove_role_from_plan.rb +7 -7
  169. data/lib/fog/shared_file_system/openstack.rb +44 -9
  170. data/lib/fog/shared_file_system/openstack/requests/add_security_service_to_share_network.rb +28 -0
  171. data/lib/fog/shared_file_system/openstack/requests/create_security_service.rb +47 -0
  172. data/lib/fog/shared_file_system/openstack/requests/delete_security_service.rb +24 -0
  173. data/lib/fog/shared_file_system/openstack/requests/get_security_service.rb +26 -0
  174. data/lib/fog/shared_file_system/openstack/requests/list_security_services.rb +25 -0
  175. data/lib/fog/shared_file_system/openstack/requests/list_security_services_detail.rb +25 -0
  176. data/lib/fog/shared_file_system/openstack/requests/remove_security_service_from_share_network.rb +28 -0
  177. data/lib/fog/shared_file_system/openstack/requests/share_network_action.rb +16 -0
  178. data/lib/fog/shared_file_system/openstack/requests/update_security_service.rb +31 -0
  179. data/lib/fog/storage/openstack/models/file.rb +2 -0
  180. data/lib/fog/volume/openstack.rb +3 -0
  181. data/lib/fog/volume/openstack/requests/set_tenant.rb +3 -3
  182. data/playbooks/.gitkeep +0 -0
  183. data/playbooks/fog-openstack-unittest-spec/run.yaml +57 -0
  184. data/playbooks/fog-openstack-unittest-test/run.yaml +57 -0
  185. metadata +18 -6
  186. data/.ruby-version +0 -1
@@ -0,0 +1,28 @@
1
+ module Fog
2
+ module SharedFileSystem
3
+ class OpenStack
4
+ class Real
5
+ def add_security_service_to_share_network(security_service_id, share_network_id)
6
+ action = {
7
+ 'add_security_service' => {
8
+ 'security_service_id' => security_service_id
9
+ }
10
+ }
11
+ share_network_action(share_network_id, action)
12
+ end
13
+ end
14
+
15
+ class Mock
16
+ def add_security_service_to_share_network(_security_service_id, share_network_id)
17
+ response = Excon::Response.new
18
+ response.status = 200
19
+
20
+ share_net = data[:share_network_updated] || data[:share_networks].first
21
+ share_net['id'] = share_network_id
22
+ response.body = {'share_network' => share_net}
23
+ response
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,47 @@
1
+ module Fog
2
+ module SharedFileSystem
3
+ class OpenStack
4
+ class Real
5
+ def create_security_service(type, name, options = {})
6
+ data = {
7
+ 'type' => type,
8
+ 'name' => name
9
+ }
10
+
11
+ vanilla_options = [
12
+ :description, :dns_ip, :user, :password, :domain, :server
13
+ ]
14
+
15
+ vanilla_options.select { |o| options[o] }.each do |key|
16
+ data[key] = options[key]
17
+ end
18
+
19
+ request(
20
+ :body => Fog::JSON.encode('security_service' => data),
21
+ :expects => 200,
22
+ :method => 'POST',
23
+ :path => 'security-services'
24
+ )
25
+ end
26
+ end
27
+
28
+ class Mock
29
+ def create_security_service(type, name, options = {})
30
+ # stringify keys
31
+ options = Hash[options.map { |k, v| [k.to_s, v] }]
32
+
33
+ response = Excon::Response.new
34
+ response.status = 200
35
+
36
+ security_service = data[:security_services_detail].first.dup
37
+
38
+ security_service['type'] = type
39
+ security_service['name'] = name
40
+
41
+ response.body = {'security_service' => security_service.merge(options)}
42
+ response
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,24 @@
1
+ module Fog
2
+ module SharedFileSystem
3
+ class OpenStack
4
+ class Real
5
+ def delete_security_service(id)
6
+ request(
7
+ :expects => 202,
8
+ :method => 'DELETE',
9
+ :path => "security-services/#{id}"
10
+ )
11
+ end
12
+ end
13
+
14
+ class Mock
15
+ def delete_security_service(_id)
16
+ response = Excon::Response.new
17
+ response.status = 202
18
+
19
+ response
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,26 @@
1
+ module Fog
2
+ module SharedFileSystem
3
+ class OpenStack
4
+ class Real
5
+ def get_security_service(id)
6
+ request(
7
+ :expects => 200,
8
+ :method => 'GET',
9
+ :path => "security-services/#{id}"
10
+ )
11
+ end
12
+ end
13
+
14
+ class Mock
15
+ def get_security_service(id)
16
+ response = Excon::Response.new
17
+ response.status = 200
18
+ security_service = data[:security_service_updated] || data[:security_services_detail].first
19
+ security_service['id'] = id
20
+ response.body = {'security_service' => security_service}
21
+ response
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,25 @@
1
+ module Fog
2
+ module SharedFileSystem
3
+ class OpenStack
4
+ class Real
5
+ def list_security_services(options = {})
6
+ request(
7
+ :expects => 200,
8
+ :method => 'GET',
9
+ :path => 'security-services',
10
+ :query => options
11
+ )
12
+ end
13
+ end
14
+
15
+ class Mock
16
+ def list_security_services(_options = {})
17
+ response = Excon::Response.new
18
+ response.status = 200
19
+ response.body = {'security_services' => data[:security_services]}
20
+ response
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,25 @@
1
+ module Fog
2
+ module SharedFileSystem
3
+ class OpenStack
4
+ class Real
5
+ def list_security_services_detail(options = {})
6
+ request(
7
+ :expects => 200,
8
+ :method => 'GET',
9
+ :path => 'security-services/detail',
10
+ :query => options
11
+ )
12
+ end
13
+ end
14
+
15
+ class Mock
16
+ def list_security_services_detail(_options = {})
17
+ response = Excon::Response.new
18
+ response.status = 200
19
+ response.body = {'security_services' => data[:security_services_detail]}
20
+ response
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,28 @@
1
+ module Fog
2
+ module SharedFileSystem
3
+ class OpenStack
4
+ class Real
5
+ def remove_security_service_from_share_network(security_service_id, share_network_id)
6
+ action = {
7
+ 'remove_security_service' => {
8
+ 'security_service_id' => security_service_id
9
+ }
10
+ }
11
+ share_network_action(share_network_id, action)
12
+ end
13
+ end
14
+
15
+ class Mock
16
+ def remove_security_service_from_share_network(_security_service_id, share_network_id)
17
+ response = Excon::Response.new
18
+ response.status = 200
19
+
20
+ share_net = data[:share_network_updated] || data[:share_networks].first
21
+ share_net['id'] = share_network_id
22
+ response.body = {'share_network' => share_net}
23
+ response
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,16 @@
1
+ module Fog
2
+ module SharedFileSystem
3
+ class OpenStack
4
+ class Real
5
+ def share_network_action(id, options = {}, expects_status = 200)
6
+ request(
7
+ :body => Fog::JSON.encode(options),
8
+ :expects => expects_status,
9
+ :method => 'POST',
10
+ :path => "share-networks/#{id}/action"
11
+ )
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,31 @@
1
+ module Fog
2
+ module SharedFileSystem
3
+ class OpenStack
4
+ class Real
5
+ def update_security_service(id, options = {})
6
+ request(
7
+ :body => Fog::JSON.encode('security_service' => options),
8
+ :expects => 200,
9
+ :method => 'PUT',
10
+ :path => "security-services/#{id}"
11
+ )
12
+ end
13
+ end
14
+
15
+ class Mock
16
+ def update_security_service(id, options = {})
17
+ # stringify keys
18
+ options = Hash[options.map { |k, v| [k.to_s, v] }]
19
+
20
+ data[:security_service_updated] = data[:security_services_detail].first.merge(options)
21
+ data[:security_service_updated]['id'] = id
22
+
23
+ response = Excon::Response.new
24
+ response.status = 200
25
+ response.body = {'security_service' => data[:security_service_updated]}
26
+ response
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
@@ -7,6 +7,7 @@ module Fog
7
7
  identity :key, :aliases => 'name'
8
8
 
9
9
  attribute :access_control_allow_origin, :aliases => ['Access-Control-Allow-Origin']
10
+ attribute :cache_control, :aliases => ['Cache-Control']
10
11
  attribute :content_length, :aliases => ['bytes', 'Content-Length'], :type => :integer
11
12
  attribute :content_type, :aliases => ['content_type', 'Content-Type']
12
13
  attribute :content_disposition, :aliases => ['content_disposition', 'Content-Disposition']
@@ -108,6 +109,7 @@ module Fog
108
109
 
109
110
  def save(options = {})
110
111
  requires :directory, :key
112
+ options['Cache-Control'] = cache_control if cache_control
111
113
  options['Content-Type'] = content_type if content_type
112
114
  options['Content-Disposition'] = content_disposition if content_disposition
113
115
  options['Access-Control-Allow-Origin'] = access_control_allow_origin if access_control_allow_origin
@@ -3,6 +3,9 @@
3
3
  module Fog
4
4
  module Volume
5
5
  class OpenStack < Fog::Service
6
+ autoload :V1, 'fog/volume/openstack/v1'
7
+ autoload :V2, 'fog/volume/openstack/v2'
8
+
6
9
  @@recognizes = [:openstack_auth_token, :openstack_management_url,
7
10
  :persistent, :openstack_service_type, :openstack_service_name,
8
11
  :openstack_tenant, :openstack_tenant_id,
@@ -14,6 +14,6 @@ module Fog
14
14
  true
15
15
  end
16
16
  end
17
- end # class OpenStack
18
- end # module Volume
19
- end # module Fog
17
+ end
18
+ end
19
+ end
File without changes
@@ -0,0 +1,57 @@
1
+ - hosts: all
2
+ become: yes
3
+ tasks:
4
+ - name: Run unittest spec tests
5
+ shell:
6
+ cmd: |
7
+ set -e
8
+ set -o pipefail
9
+ set -x
10
+ apt-get install ruby ruby-dev -y
11
+ for key in 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB; do
12
+ gpg --keyserver keys.gnupg.net --keyserver-options timeout=5 --recv-keys "$key" || \
13
+ gpg --keyserver pgp.mit.edu --keyserver-options timeout=5 --recv-keys "$key" || \
14
+ gpg --keyserver keyserver.pgp.com --keyserver-options timeout=5 --recv-keys "$key" || \
15
+ gpg --keyserver ha.pool.sks-keyservers.net --keyserver-options timeout=5 --recv-keys "$key"
16
+ done
17
+ curl -L https://get.rvm.io | bash -s stable
18
+ source /usr/local/rvm/scripts/rvm > /dev/null 2>&1
19
+ for version in {{ rvm }}; do
20
+ if [ "$version" == "jruby-head" ]; then
21
+ continue
22
+ fi
23
+ rvm install ${version} --disable-binary > /dev/null 2>&1
24
+ rvm use ${version} > /dev/null 2>&1
25
+ echo "Running tests based on Ruby ${version}..."
26
+ ruby --version
27
+ gem install bundler
28
+ gem update bundler
29
+ bundle install --jobs=3 --retry=3
30
+ bundle exec rake spec TESTOPTS="--verbose"
31
+ done
32
+ executable: /bin/bash
33
+ chdir: '{{ zuul.project.src_dir }}'
34
+ environment:
35
+ JRUBY_OPTS: '--debug'
36
+ ANSIBLE_PYTHON_INTERPRETER: /usr/bin/python3
37
+
38
+ - name: Run unittest spec tests for jruby-head
39
+ shell:
40
+ cmd: |
41
+ set -e
42
+ set -o pipefail
43
+ set -x
44
+ rvm install jruby-head --disable-binary
45
+ rvm use jruby-head
46
+ echo "Running tests based on Ruby jruby-head...
47
+ ruby --version
48
+ gem install bundler
49
+ gem update bundler
50
+ bundle install --jobs=3 --retry=3
51
+ bundle exec rake spec TESTOPTS="--verbose"
52
+ executable: /bin/bash
53
+ chdir: '{{ zuul.project.src_dir }}'
54
+ environment:
55
+ JRUBY_OPTS: '--debug'
56
+ ANSIBLE_PYTHON_INTERPRETER: /usr/bin/python3
57
+ ignore_errors: true
@@ -0,0 +1,57 @@
1
+ - hosts: all
2
+ become: yes
3
+ tasks:
4
+ - name: Run unittest tests
5
+ shell:
6
+ cmd: |
7
+ set -e
8
+ set -o pipefail
9
+ set -x
10
+ apt-get install ruby ruby-dev -y
11
+ for key in 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB; do
12
+ gpg --keyserver keys.gnupg.net --keyserver-options timeout=5 --recv-keys "$key" || \
13
+ gpg --keyserver pgp.mit.edu --keyserver-options timeout=5 --recv-keys "$key" || \
14
+ gpg --keyserver keyserver.pgp.com --keyserver-options timeout=5 --recv-keys "$key" || \
15
+ gpg --keyserver ha.pool.sks-keyservers.net --keyserver-options timeout=5 --recv-keys "$key"
16
+ done
17
+ curl -L https://get.rvm.io | bash -s stable
18
+ source /usr/local/rvm/scripts/rvm > /dev/null 2>&1
19
+ for version in {{ rvm }}; do
20
+ if [ "$version" == "jruby-head" ]; then
21
+ continue
22
+ fi
23
+ rvm install ${version} --disable-binary > /dev/null 2>&1
24
+ rvm use ${version} > /dev/null 2>&1
25
+ echo "Running tests based on Ruby ${version}..."
26
+ ruby --version
27
+ gem install bundler
28
+ gem update bundler
29
+ bundle install --jobs=3 --retry=3
30
+ bundle exec rake test TESTOPTS="--verbose"
31
+ done
32
+ executable: /bin/bash
33
+ chdir: '{{ zuul.project.src_dir }}'
34
+ environment:
35
+ JRUBY_OPTS: '--debug'
36
+ ANSIBLE_PYTHON_INTERPRETER: /usr/bin/python3
37
+
38
+ - name: Run unittest tests for jruby-head
39
+ shell:
40
+ cmd: |
41
+ set -e
42
+ set -o pipefail
43
+ set -x
44
+ rvm install jruby-head --disable-binary
45
+ rvm use jruby-head
46
+ echo "Running tests based on Ruby jruby-head...
47
+ ruby --version
48
+ gem install bundler
49
+ gem update bundler
50
+ bundle install --jobs=3 --retry=3
51
+ bundle exec rake test TESTOPTS="--verbose"
52
+ executable: /bin/bash
53
+ chdir: '{{ zuul.project.src_dir }}'
54
+ environment:
55
+ JRUBY_OPTS: '--debug'
56
+ ANSIBLE_PYTHON_INTERPRETER: /usr/bin/python3
57
+ ignore_errors: true
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-openstack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.25
4
+ version: 0.1.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Darby
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-20 00:00:00.000000000 Z
11
+ date: 2018-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.40'
19
+ version: 1.45.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.40'
26
+ version: 1.45.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: fog-json
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -203,8 +203,8 @@ files:
203
203
  - ".hound.yml"
204
204
  - ".rubocop.yml"
205
205
  - ".ruby-gemset"
206
- - ".ruby-version"
207
206
  - ".travis.yml"
207
+ - ".zuul.yaml"
208
208
  - CHANGELOG.md
209
209
  - CODE_OF_CONDUCT.md
210
210
  - CONTRIBUTING.md
@@ -1071,21 +1071,27 @@ files:
1071
1071
  - lib/fog/shared_file_system/openstack/models/shares.rb
1072
1072
  - lib/fog/shared_file_system/openstack/models/snapshot.rb
1073
1073
  - lib/fog/shared_file_system/openstack/models/snapshots.rb
1074
+ - lib/fog/shared_file_system/openstack/requests/add_security_service_to_share_network.rb
1075
+ - lib/fog/shared_file_system/openstack/requests/create_security_service.rb
1074
1076
  - lib/fog/shared_file_system/openstack/requests/create_share.rb
1075
1077
  - lib/fog/shared_file_system/openstack/requests/create_share_network.rb
1076
1078
  - lib/fog/shared_file_system/openstack/requests/create_snapshot.rb
1079
+ - lib/fog/shared_file_system/openstack/requests/delete_security_service.rb
1077
1080
  - lib/fog/shared_file_system/openstack/requests/delete_share.rb
1078
1081
  - lib/fog/shared_file_system/openstack/requests/delete_share_network.rb
1079
1082
  - lib/fog/shared_file_system/openstack/requests/delete_snapshot.rb
1080
1083
  - lib/fog/shared_file_system/openstack/requests/extend_share.rb
1081
1084
  - lib/fog/shared_file_system/openstack/requests/get_limits.rb
1082
1085
  - lib/fog/shared_file_system/openstack/requests/get_quota.rb
1086
+ - lib/fog/shared_file_system/openstack/requests/get_security_service.rb
1083
1087
  - lib/fog/shared_file_system/openstack/requests/get_share.rb
1084
1088
  - lib/fog/shared_file_system/openstack/requests/get_share_export_location.rb
1085
1089
  - lib/fog/shared_file_system/openstack/requests/get_share_network.rb
1086
1090
  - lib/fog/shared_file_system/openstack/requests/get_snapshot.rb
1087
1091
  - lib/fog/shared_file_system/openstack/requests/grant_share_access.rb
1088
1092
  - lib/fog/shared_file_system/openstack/requests/list_availability_zones.rb
1093
+ - lib/fog/shared_file_system/openstack/requests/list_security_services.rb
1094
+ - lib/fog/shared_file_system/openstack/requests/list_security_services_detail.rb
1089
1095
  - lib/fog/shared_file_system/openstack/requests/list_share_access_rules.rb
1090
1096
  - lib/fog/shared_file_system/openstack/requests/list_share_export_locations.rb
1091
1097
  - lib/fog/shared_file_system/openstack/requests/list_share_networks.rb
@@ -1094,10 +1100,13 @@ files:
1094
1100
  - lib/fog/shared_file_system/openstack/requests/list_shares_detail.rb
1095
1101
  - lib/fog/shared_file_system/openstack/requests/list_snapshots.rb
1096
1102
  - lib/fog/shared_file_system/openstack/requests/list_snapshots_detail.rb
1103
+ - lib/fog/shared_file_system/openstack/requests/remove_security_service_from_share_network.rb
1097
1104
  - lib/fog/shared_file_system/openstack/requests/revoke_share_access.rb
1098
1105
  - lib/fog/shared_file_system/openstack/requests/share_action.rb
1106
+ - lib/fog/shared_file_system/openstack/requests/share_network_action.rb
1099
1107
  - lib/fog/shared_file_system/openstack/requests/shrink_share.rb
1100
1108
  - lib/fog/shared_file_system/openstack/requests/update_quota.rb
1109
+ - lib/fog/shared_file_system/openstack/requests/update_security_service.rb
1101
1110
  - lib/fog/shared_file_system/openstack/requests/update_share.rb
1102
1111
  - lib/fog/shared_file_system/openstack/requests/update_share_network.rb
1103
1112
  - lib/fog/shared_file_system/openstack/requests/update_snapshot.rb
@@ -1340,6 +1349,9 @@ files:
1340
1349
  - lib/fog/workflow/openstack/v2/requests/validate_action.rb
1341
1350
  - lib/fog/workflow/openstack/v2/requests/validate_workbook.rb
1342
1351
  - lib/fog/workflow/openstack/v2/requests/validate_workflow.rb
1352
+ - playbooks/.gitkeep
1353
+ - playbooks/fog-openstack-unittest-spec/run.yaml
1354
+ - playbooks/fog-openstack-unittest-test/run.yaml
1343
1355
  - supported.md
1344
1356
  homepage: https://github.com/fog/fog-openstack
1345
1357
  licenses:
@@ -1353,7 +1365,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
1353
1365
  requirements:
1354
1366
  - - ">="
1355
1367
  - !ruby/object:Gem::Version
1356
- version: 2.1.0
1368
+ version: 2.2.0
1357
1369
  required_rubygems_version: !ruby/object:Gem::Requirement
1358
1370
  requirements:
1359
1371
  - - ">="