fog-vsphere 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f0ec189b2c86a9de01857b6141d2c016ec669d9
4
- data.tar.gz: ee5fe4c242034a910496e05cb26d55f20f654954
3
+ metadata.gz: 5695c11ae716df2037c0d47f2baa7cb98c5ef620
4
+ data.tar.gz: c530a589499f51aad79df45d8ec722ac990bff7e
5
5
  SHA512:
6
- metadata.gz: c478c37467c7ed6729aeefddf57d4dae6735b8e549a762dd121343a956f2b9b8e06e7ec7eb534e492e72fcc148402ed858d6aaac5bf73d248d56474087454129
7
- data.tar.gz: d912a0f3cb4b4df88d0fed2c69b1b56a84c9889cea5b665224b7c58ccebc4ac8df2c827b72b0b1a1d911f764c3bc71260c4f99254ff9bd6af7561079466b1003
6
+ metadata.gz: a4824a270319a970c19bb3888f503a14be30c83c8eaa822e0f9406f6722207555bc26f9619a10b03e06dd5c10ab48ab1d82d8961b90c4969cb26681dfed93404
7
+ data.tar.gz: ac5385e81e89ad1734ad73aa5c6d7e2bc9daf828e32efcfd55298d9dc2bb4f0c2535804f41ddb06bfae42a030472ae68f1409f69ca121676161dad8e15940422
@@ -159,8 +159,7 @@ module Fog
159
159
  end
160
160
 
161
161
  def tools_installed?
162
- tools_state != 'toolsNotInstalled' ||
163
- tools_version != 'guestToolsNotInstalled'
162
+ !(tools_state == 'toolsNotInstalled' || tools_version == 'guestToolsNotInstalled')
164
163
  end
165
164
 
166
165
  def tools_running?
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Vsphere
3
- VERSION = '0.6.2'
3
+ VERSION = '0.6.3'
4
4
  end
5
5
  end
@@ -0,0 +1,13 @@
1
+ require_relative '../../helper'
2
+
3
+ require 'fog/vsphere/models/compute/server'
4
+
5
+ class TestServer < Minitest::Test
6
+ def test_tools_installed
7
+ server = Fog::Compute::Vsphere::Server.new
8
+ server.tools_state = 'toolsNotRunning'
9
+ server.tools_version = 'guestToolsNotInstalled'
10
+
11
+ assert_equal(false, server.tools_installed?)
12
+ end
13
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-vsphere
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - J.R. Garcia
@@ -251,6 +251,7 @@ files:
251
251
  - tests/helpers/succeeds_helper.rb
252
252
  - tests/models/compute/rules_tests.rb
253
253
  - tests/models/compute/server_tests.rb
254
+ - tests/models/compute/server_unit_tests.rb
254
255
  - tests/models/compute/servers_tests.rb
255
256
  - tests/requests/compute/current_time_tests.rb
256
257
  - tests/requests/compute/folder_destroy_tests.rb
@@ -308,6 +309,7 @@ test_files:
308
309
  - tests/helpers/succeeds_helper.rb
309
310
  - tests/models/compute/rules_tests.rb
310
311
  - tests/models/compute/server_tests.rb
312
+ - tests/models/compute/server_unit_tests.rb
311
313
  - tests/models/compute/servers_tests.rb
312
314
  - tests/requests/compute/current_time_tests.rb
313
315
  - tests/requests/compute/folder_destroy_tests.rb