foreman_virt_who_configure 0.1.3 → 0.1.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f2761e2dfcffdd132dda2d6d6b3a02ea455289c
|
4
|
+
data.tar.gz: f03b3dcf1e134f72fb03804815905e122356186e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 182cf328367ecacfe010927873bd3515ea793be39f7d72aa56f446016a9d847cad66a37a382459ad865afb81526647a1a46f1e7dcac493ca61f7efa5b118c85c
|
7
|
+
data.tar.gz: ff9ee136a6fd6b6d5ce7ad4b19a9b5d07fbed87fa7509076aec82e9248790d00bd7c7847994197bb8575ac629f4a386e2985ac1c70b99d5005d6a473e3d40f53
|
@@ -9,6 +9,8 @@ module ForemanVirtWhoConfigure
|
|
9
9
|
|
10
10
|
MINIMUM_VIRT_WHO_VERSION = '0.19'
|
11
11
|
|
12
|
+
LIBVIRT_FAKE_PASSWORD = 'libvirt_fake_password'
|
13
|
+
|
12
14
|
CONFIGURATION_RESULTS = [
|
13
15
|
ConfigurationResult.new(0, 'success', N_('Success')),
|
14
16
|
ConfigurationResult.new(1, 'virt_who_too_old', N_('Newer version of virt-who is required, minimum version is %s') % MINIMUM_VIRT_WHO_VERSION),
|
@@ -189,7 +191,7 @@ EOS
|
|
189
191
|
end
|
190
192
|
|
191
193
|
def cr_password
|
192
|
-
config.hypervisor_password
|
194
|
+
config.hypervisor_type == 'libvirt' && config.hypervisor_password.blank? ? LIBVIRT_FAKE_PASSWORD : config.hypervisor_password
|
193
195
|
end
|
194
196
|
|
195
197
|
def satellite_url
|
@@ -6,6 +6,14 @@ module ForemanVirtWhoConfigure
|
|
6
6
|
let(:output) { generator.virt_who_output }
|
7
7
|
let(:bash_script_output) { generator.virt_who_output(:bash_script) }
|
8
8
|
|
9
|
+
describe 'cr_password for libvirt' do
|
10
|
+
test 'empty password is replaced by fake value so that virt-who runs in an non-interactive mode' do
|
11
|
+
config.hypervisor_password = nil
|
12
|
+
config.hypervisor_type = 'libvirt'
|
13
|
+
assert_includes output, 'virt-who-password --password "' + OutputGenerator::LIBVIRT_FAKE_PASSWORD + '"'
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
9
17
|
describe 'filtering' do
|
10
18
|
test 'it should not filter anything for unlimited configs' do
|
11
19
|
assert_equal ForemanVirtWhoConfigure::Config::UNLIMITED, config.listing_mode.to_i
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_virt_who_configure
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Foreman virt-who-configure team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: katello
|