gapinc-fog 1.12.1.2 → 1.12.1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/fog.gemspec +1 -1
- data/lib/fog/openstack/models/metering/meter.rb +0 -0
- data/lib/fog/openstack/models/metering/meters.rb +0 -0
- data/lib/fog/openstack/requests/compute/create_server.rb +15 -14
- data/lib/fog/openstack/requests/compute/get_host_details.rb +1 -2
- data/lib/fog/vsphere/requests/compute/get_virtual_machine.rb +2 -0
- metadata +3 -1
data/fog.gemspec
CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
|
|
6
6
|
## If your rubyforge_project name is different, then edit it and comment out
|
7
7
|
## the sub! line in the Rakefile
|
8
8
|
s.name = 'gapinc-fog'
|
9
|
-
s.version = '1.12.1.2'
|
9
|
+
s.version = '1.12.1.2.1'
|
10
10
|
s.date = '2013-06-10'
|
11
11
|
s.rubyforge_project = 'fog'
|
12
12
|
|
File without changes
|
File without changes
|
@@ -73,20 +73,21 @@ module Fog
|
|
73
73
|
response.status = 202
|
74
74
|
|
75
75
|
server_id = Fog::Mock.random_numbers(6).to_s
|
76
|
-
identity = Fog::Identity[:openstack]
|
77
|
-
user = identity.users.find { |u|
|
78
|
-
|
79
|
-
}
|
80
|
-
|
81
|
-
user_id = if user then
|
82
|
-
user.id
|
83
|
-
else
|
84
|
-
response = identity.create_user(@openstack_username,
|
85
|
-
'password',
|
86
|
-
"#{@openstack_username}@example.com")
|
87
|
-
response.body["user"]["id"]
|
88
|
-
end
|
89
|
-
|
76
|
+
# identity = Fog::Identity[:openstack]
|
77
|
+
# user = identity.users.find { |u|
|
78
|
+
# u.name == @openstack_username
|
79
|
+
# }
|
80
|
+
|
81
|
+
# user_id = if user then
|
82
|
+
# user.id
|
83
|
+
# else
|
84
|
+
# response = identity.create_user(@openstack_username,
|
85
|
+
# 'password',
|
86
|
+
# "#{@openstack_username}@example.com")
|
87
|
+
# response.body["user"]["id"]
|
88
|
+
# end
|
89
|
+
|
90
|
+
user_id = '123456789ABCDEF01234567890ABCDEF'
|
90
91
|
|
91
92
|
mock_data = {
|
92
93
|
'addresses' => {},
|
@@ -16,13 +16,12 @@ module Fog
|
|
16
16
|
class Mock
|
17
17
|
|
18
18
|
def get_host_details(host)
|
19
|
-
|
20
19
|
response = Excon::Response.new
|
21
20
|
response.status = 200
|
22
21
|
response.body = { "host" => [
|
23
22
|
{ "resource" => {
|
24
23
|
"project" => "(total)",
|
25
|
-
"memory_mb" =>
|
24
|
+
"memory_mb" => 64428,
|
26
25
|
"host" => "cn28.la-1-3.morphcloud.net",
|
27
26
|
"cpu" => 12,
|
28
27
|
"disk_gb" => 1608
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gapinc-fog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.12.1.2
|
4
|
+
version: 1.12.1.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -2655,6 +2655,8 @@ files:
|
|
2655
2655
|
- lib/fog/openstack/models/image/image.rb
|
2656
2656
|
- lib/fog/openstack/models/image/images.rb
|
2657
2657
|
- lib/fog/openstack/models/meta_parent.rb
|
2658
|
+
- lib/fog/openstack/models/metering/meter.rb
|
2659
|
+
- lib/fog/openstack/models/metering/meters.rb
|
2658
2660
|
- lib/fog/openstack/models/network/floating_ip.rb
|
2659
2661
|
- lib/fog/openstack/models/network/floating_ips.rb
|
2660
2662
|
- lib/fog/openstack/models/network/lb_health_monitor.rb
|