foreman_fog_proxmox 0.9.1 → 0.9.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2037b59b19ef9a750b13401e696fb2d460f24df0c5988edc0bd3136c4ab1e836
4
- data.tar.gz: 22ba3c4a47a6a2ebdb4ce05b72c2e3e6fbc44144a42cadcc1b54440c6cdf577c
3
+ metadata.gz: 3e003842a616eebc8bdfaa885461d4d2d683081b41c2e80f97e94eacfc90008c
4
+ data.tar.gz: 19eb38e1ad06cc9535aa44da62f31d6168fb174a44c44f8f6bda0f22b08b6820
5
5
  SHA512:
6
- metadata.gz: 1720a971f5238f516e61e669607133ae6f9662d236a41a667cba1ce3e068710e1620eac645f5e6c8f0d135320dc4fe930faa9ffb582081fb970e209e71b9516d
7
- data.tar.gz: d0ccf273ed786ba2253ff9d1b39f7dacd247f83853283b115f4aa727440a9dcfff8d4e09d484aac230c1c55e5421291bff5031b2c04912e435056a0e556762e3
6
+ metadata.gz: e9f096e4e4a648aedaba6e5fa86cffacd81b6b93bbcfbfdb46be8dea5c70d40a7fecabd6035b553e3f238afbe882f86668c52a9b8810d2d210e19d91334e040e
7
+ data.tar.gz: 183f609bbfaf53f45e4ff2cb3def2450d12403c698e84c89b8223dcfdeec2f1d239f166ddcc5935005faa47a939be7dbee68a5e8b691ad10b6a0d8a067d2923b
@@ -25,7 +25,7 @@ module ForemanFogProxmox
25
25
  logger.debug(format(_('Proxmox compute resource version is %<version>s'), version: version))
26
26
  raise ::Foreman::Exception, format(_('Proxmox version %<version>s is not semver suitable'), version: version) unless ForemanFogProxmox::Semver.semver?(version)
27
27
 
28
- ForemanFogProxmox::Semver.to_semver(version) >= ForemanFogProxmox::Semver.to_semver('5.3.0') && ForemanFogProxmox::Semver.to_semver(version) < ForemanFogProxmox::Semver.to_semver('6.1.0')
28
+ ForemanFogProxmox::Semver.to_semver(version) >= ForemanFogProxmox::Semver.to_semver('5.3.0')
29
29
  end
30
30
 
31
31
  def version
@@ -18,5 +18,5 @@
18
18
  # along with ForemanFogProxmox. If not, see <http://www.gnu.org/licenses/>.
19
19
 
20
20
  module ForemanFogProxmox
21
- VERSION = '0.9.1'
21
+ VERSION = '0.9.2'
22
22
  end
@@ -29,7 +29,8 @@ module ForemanFogProxmox
29
29
  wrong_version = { version: '5.a', release: '1' }.with_indifferent_access
30
30
  supported_version = { version: '5.4', release: '3' }.with_indifferent_access
31
31
  supported_6_version = { version: '6.0', release: '1' }.with_indifferent_access
32
- unsupported_version = { version: '6.2', release: '2' }.with_indifferent_access
32
+ supported_6_1_version = { version: '6.1', release: '3' }.with_indifferent_access
33
+ unsupported_version = { version: '5.2', release: '2' }.with_indifferent_access
33
34
 
34
35
  describe 'version' do
35
36
  before do
@@ -48,9 +49,9 @@ module ForemanFogProxmox
48
49
  assert_equal '5.4.3', @cr.version
49
50
  end
50
51
 
51
- it 'returns 6.2.2 with 6.2-2' do
52
+ it 'returns 5.2.2 with 5.2-2' do
52
53
  @identity_client.stubs(:read_version).returns(unsupported_version)
53
- assert_equal '6.2.2', @cr.version
54
+ assert_equal '5.2.2', @cr.version
54
55
  end
55
56
  end
56
57
 
@@ -79,7 +80,12 @@ module ForemanFogProxmox
79
80
  assert_equal true, @cr.version_suitable?
80
81
  end
81
82
 
82
- it 'is false with 6.2-2' do
83
+ it 'is true with 6.1-3' do
84
+ @identity_client.stubs(:read_version).returns(supported_6_1_version)
85
+ assert_equal true, @cr.version_suitable?
86
+ end
87
+
88
+ it 'is false with 5.2-2' do
83
89
  @identity_client.stubs(:read_version).returns(unsupported_version)
84
90
  assert_equal false, @cr.version_suitable?
85
91
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_fog_proxmox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tristan Robert
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-11-26 00:00:00.000000000 Z
12
+ date: 2019-12-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: deface