foreman_virt_who_configure 0.5.6 → 0.5.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/foreman_virt_who_configure/config_edit.js +20 -0
  3. data/app/controllers/foreman_virt_who_configure/api/v2/configs_controller.rb +8 -4
  4. data/app/helpers/foreman_virt_who_configure/configs_helper.rb +5 -5
  5. data/app/models/foreman_virt_who_configure/config.rb +39 -5
  6. data/app/models/foreman_virt_who_configure/output_generator.rb +31 -16
  7. data/app/views/foreman_virt_who_configure/api/v2/configs/main.json.rabl +2 -1
  8. data/app/views/foreman_virt_who_configure/configs/show.html.erb +5 -2
  9. data/app/views/foreman_virt_who_configure/configs/steps/_connection_form.erb +10 -4
  10. data/db/migrate/20210608100743_delete_rhevm_profiles.rb +5 -0
  11. data/db/migrate/20210910184516_add_ahv_to_config.rb +7 -0
  12. data/lib/foreman_virt_who_configure/version.rb +1 -1
  13. data/locale/action_names.rb +36 -26
  14. data/locale/ca/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  15. data/locale/ca/foreman_virt_who_configure.po +647 -0
  16. data/locale/cs_CZ/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  17. data/locale/cs_CZ/foreman_virt_who_configure.po +653 -0
  18. data/locale/de/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  19. data/locale/de/foreman_virt_who_configure.po +657 -0
  20. data/locale/en/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  21. data/locale/en/foreman_virt_who_configure.po +56 -47
  22. data/locale/en_GB/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  23. data/locale/en_GB/foreman_virt_who_configure.po +650 -0
  24. data/locale/es/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  25. data/locale/es/foreman_virt_who_configure.po +653 -0
  26. data/locale/foreman_virt_who_configure.pot +170 -165
  27. data/locale/fr/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  28. data/locale/fr/foreman_virt_who_configure.po +651 -0
  29. data/locale/gl/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  30. data/locale/gl/foreman_virt_who_configure.po +649 -0
  31. data/locale/it/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  32. data/locale/it/foreman_virt_who_configure.po +652 -0
  33. data/locale/ja/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  34. data/locale/ja/foreman_virt_who_configure.po +651 -0
  35. data/locale/ko/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  36. data/locale/ko/foreman_virt_who_configure.po +650 -0
  37. data/locale/nl_NL/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  38. data/locale/nl_NL/foreman_virt_who_configure.po +653 -0
  39. data/locale/pl/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  40. data/locale/pl/foreman_virt_who_configure.po +652 -0
  41. data/locale/pt_BR/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  42. data/locale/pt_BR/foreman_virt_who_configure.po +652 -0
  43. data/locale/ru/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  44. data/locale/ru/foreman_virt_who_configure.po +654 -0
  45. data/locale/sv_SE/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  46. data/locale/sv_SE/foreman_virt_who_configure.po +651 -0
  47. data/locale/zh_CN/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  48. data/locale/zh_CN/foreman_virt_who_configure.po +654 -0
  49. data/locale/zh_TW/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  50. data/locale/zh_TW/foreman_virt_who_configure.po +651 -0
  51. data/test/functional/api/v2/configs_controller_test.rb +39 -1
  52. data/test/unit/output_generator_test.rb +29 -5
  53. metadata +41 -5
@@ -60,7 +60,7 @@ module ForemanVirtWhoConfigure
60
60
  assert_nil config.http_proxy
61
61
  assert_nil config.no_proxy
62
62
  assert_not_includes output, 'http_proxy'
63
- assert_includes output, 'NO_PROXY=*'
63
+ assert_includes output, 'no_proxy=*'
64
64
  end
65
65
 
66
66
  test 'it configures proxy when set' do
@@ -71,7 +71,7 @@ module ForemanVirtWhoConfigure
71
71
 
72
72
  test 'it configures no_proxy when set' do
73
73
  config.no_proxy = '*'
74
- assert_includes output, 'NO_PROXY=*'
74
+ assert_includes output, 'no_proxy=*'
75
75
  end
76
76
 
77
77
  test 'proxy_strings prints both proxy and no proxy if present' do
@@ -79,19 +79,19 @@ module ForemanVirtWhoConfigure
79
79
  config.http_proxy = http_proxy
80
80
  config.no_proxy = 'b'
81
81
  assert_includes generator.proxy_strings, "\nhttp_proxy=http://test.com"
82
- assert_includes generator.proxy_strings, "\NO_PROXY=b"
82
+ assert_includes generator.proxy_strings, "\nno_proxy=b"
83
83
  end
84
84
 
85
85
  test 'proxy_strings ignores empty string values' do
86
86
  config.http_proxy = nil
87
87
  config.no_proxy = ''
88
88
  assert_not_includes generator.proxy_strings, 'http_proxy'
89
- assert_includes generator.proxy_strings, 'NO_PROXY=*'
89
+ assert_includes generator.proxy_strings, 'no_proxy=*'
90
90
  end
91
91
 
92
92
  test 'proxy_strings removes any new line chars' do
93
93
  config.no_proxy = "\nx\ny\nz"
94
- assert_includes generator.proxy_strings, "\NO_PROXY=xyz"
94
+ assert_includes generator.proxy_strings, "\nno_proxy=xyz"
95
95
  end
96
96
 
97
97
  test 'it configures https proxy when https proxy is set' do
@@ -128,5 +128,29 @@ module ForemanVirtWhoConfigure
128
128
  assert_includes bash_script_output, 'step 1 "Installing virt-who"'
129
129
  end
130
130
  end
131
+
132
+ describe 'nutanix ahv' do
133
+ test 'options specific to ahv are all set' do
134
+ config.hypervisor_type = 'ahv'
135
+ config.prism_flavor = 'central'
136
+ config.ahv_update_interval = 100
137
+ config.ahv_internal_debug = true
138
+
139
+ assert_includes output, 'type=ahv'
140
+ assert_includes output, 'prism_central=true'
141
+ assert_includes output, 'update_interval=100'
142
+ assert_includes output, 'internal_debug=true'
143
+ end
144
+
145
+ test 'options specific to ahv are not all set' do
146
+ config.hypervisor_type = 'ahv'
147
+ config.prism_flavor = 'central'
148
+
149
+ assert_includes output, 'type=ahv'
150
+ assert_includes output, 'prism_central=true'
151
+ assert_not_includes output, 'update_interval='
152
+ assert_not_includes output, 'update_interval='
153
+ end
154
+ end
131
155
  end
132
156
  end
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.5.6
4
+ version: 0.5.9
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: 2021-05-10 00:00:00.000000000 Z
11
+ date: 2022-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: katello
@@ -110,16 +110,52 @@ files:
110
110
  - db/migrate/20200728054557_refer_config_proxy_to_http_proxy.rb
111
111
  - db/migrate/20201211160234_add_foreign_key_proxy_id.rb
112
112
  - db/migrate/20210413165147_delete_xen_profiles.rb
113
+ - db/migrate/20210608100743_delete_rhevm_profiles.rb
114
+ - db/migrate/20210910184516_add_ahv_to_config.rb
113
115
  - lib/foreman_virt_who_configure.rb
114
116
  - lib/foreman_virt_who_configure/engine.rb
115
117
  - lib/foreman_virt_who_configure/version.rb
116
118
  - lib/tasks/foreman_virt_who_configure_tasks.rake
117
119
  - locale/Makefile
118
120
  - locale/action_names.rb
121
+ - locale/ca/LC_MESSAGES/foreman_virt_who_configure.mo
122
+ - locale/ca/foreman_virt_who_configure.po
123
+ - locale/cs_CZ/LC_MESSAGES/foreman_virt_who_configure.mo
124
+ - locale/cs_CZ/foreman_virt_who_configure.po
125
+ - locale/de/LC_MESSAGES/foreman_virt_who_configure.mo
126
+ - locale/de/foreman_virt_who_configure.po
119
127
  - locale/en/LC_MESSAGES/foreman_virt_who_configure.mo
120
128
  - locale/en/foreman_virt_who_configure.po
129
+ - locale/en_GB/LC_MESSAGES/foreman_virt_who_configure.mo
130
+ - locale/en_GB/foreman_virt_who_configure.po
131
+ - locale/es/LC_MESSAGES/foreman_virt_who_configure.mo
132
+ - locale/es/foreman_virt_who_configure.po
121
133
  - locale/foreman_virt_who_configure.pot
134
+ - locale/fr/LC_MESSAGES/foreman_virt_who_configure.mo
135
+ - locale/fr/foreman_virt_who_configure.po
122
136
  - locale/gemspec.rb
137
+ - locale/gl/LC_MESSAGES/foreman_virt_who_configure.mo
138
+ - locale/gl/foreman_virt_who_configure.po
139
+ - locale/it/LC_MESSAGES/foreman_virt_who_configure.mo
140
+ - locale/it/foreman_virt_who_configure.po
141
+ - locale/ja/LC_MESSAGES/foreman_virt_who_configure.mo
142
+ - locale/ja/foreman_virt_who_configure.po
143
+ - locale/ko/LC_MESSAGES/foreman_virt_who_configure.mo
144
+ - locale/ko/foreman_virt_who_configure.po
145
+ - locale/nl_NL/LC_MESSAGES/foreman_virt_who_configure.mo
146
+ - locale/nl_NL/foreman_virt_who_configure.po
147
+ - locale/pl/LC_MESSAGES/foreman_virt_who_configure.mo
148
+ - locale/pl/foreman_virt_who_configure.po
149
+ - locale/pt_BR/LC_MESSAGES/foreman_virt_who_configure.mo
150
+ - locale/pt_BR/foreman_virt_who_configure.po
151
+ - locale/ru/LC_MESSAGES/foreman_virt_who_configure.mo
152
+ - locale/ru/foreman_virt_who_configure.po
153
+ - locale/sv_SE/LC_MESSAGES/foreman_virt_who_configure.mo
154
+ - locale/sv_SE/foreman_virt_who_configure.po
155
+ - locale/zh_CN/LC_MESSAGES/foreman_virt_who_configure.mo
156
+ - locale/zh_CN/foreman_virt_who_configure.po
157
+ - locale/zh_TW/LC_MESSAGES/foreman_virt_who_configure.mo
158
+ - locale/zh_TW/foreman_virt_who_configure.po
123
159
  - test/factories/foreman_virt_who_configure_factories.rb
124
160
  - test/functional/api/v2/configs_controller_test.rb
125
161
  - test/test_plugin_helper.rb
@@ -145,14 +181,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
181
  - !ruby/object:Gem::Version
146
182
  version: '0'
147
183
  requirements: []
148
- rubygems_version: 3.1.4
184
+ rubygems_version: 3.1.6
149
185
  signing_key:
150
186
  specification_version: 4
151
187
  summary: A plugin to make virt-who configuration easy
152
188
  test_files:
153
189
  - test/factories/foreman_virt_who_configure_factories.rb
154
190
  - test/functional/api/v2/configs_controller_test.rb
155
- - test/unit/migrate_config_proxy_to_http_proxy.rb
191
+ - test/test_plugin_helper.rb
156
192
  - test/unit/config_test.rb
193
+ - test/unit/migrate_config_proxy_to_http_proxy.rb
157
194
  - test/unit/output_generator_test.rb
158
- - test/test_plugin_helper.rb