gapinc-fog 1.12.1.2 → 1.12.1.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
 
@@ -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
- 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
-
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" => 64427,
24
+ "memory_mb" => 64428,
26
25
  "host" => "cn28.la-1-3.morphcloud.net",
27
26
  "cpu" => 12,
28
27
  "disk_gb" => 1608
@@ -52,6 +52,8 @@ module Fog
52
52
  :id => "5032c8a5-9c5e-ba7a-3804-832a03e16381",
53
53
  :uuid => "42329da7-e8ab-29ec-1892-d6a4a964912a"
54
54
  }
55
+ else
56
+ raise Fog::Compute::Vsphere::NotFound
55
57
  end
56
58
  end
57
59
 
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