foreman_virt_who_configure 0.5.3 → 0.5.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/foreman_virt_who_configure/api/v2/configs_controller.rb +2 -2
  3. data/app/helpers/foreman_virt_who_configure/configs_helper.rb +1 -7
  4. data/app/models/foreman_virt_who_configure/config.rb +0 -5
  5. data/app/models/foreman_virt_who_configure/output_generator.rb +15 -13
  6. data/app/views/foreman_virt_who_configure/api/v2/configs/main.json.rabl +10 -1
  7. data/app/views/foreman_virt_who_configure/configs/edit.html.erb +7 -6
  8. data/app/views/foreman_virt_who_configure/configs/show.html.erb +9 -8
  9. data/app/views/foreman_virt_who_configure/configs/steps/_connection_form.erb +2 -2
  10. data/db/migrate/20201211160234_add_foreign_key_proxy_id.rb +5 -0
  11. data/db/migrate/20210413165147_delete_xen_profiles.rb +5 -0
  12. data/db/migrate/20210608100743_delete_rhevm_profiles.rb +5 -0
  13. data/lib/foreman_virt_who_configure/version.rb +1 -1
  14. data/locale/action_names.rb +36 -26
  15. data/locale/ca/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  16. data/locale/ca/foreman_virt_who_configure.po +647 -0
  17. data/locale/cs_CZ/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  18. data/locale/cs_CZ/foreman_virt_who_configure.po +653 -0
  19. data/locale/de/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  20. data/locale/de/foreman_virt_who_configure.po +657 -0
  21. data/locale/en/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  22. data/locale/en/foreman_virt_who_configure.po +56 -47
  23. data/locale/en_GB/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  24. data/locale/en_GB/foreman_virt_who_configure.po +650 -0
  25. data/locale/es/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  26. data/locale/es/foreman_virt_who_configure.po +653 -0
  27. data/locale/foreman_virt_who_configure.pot +170 -165
  28. data/locale/fr/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  29. data/locale/fr/foreman_virt_who_configure.po +651 -0
  30. data/locale/gl/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  31. data/locale/gl/foreman_virt_who_configure.po +649 -0
  32. data/locale/it/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  33. data/locale/it/foreman_virt_who_configure.po +652 -0
  34. data/locale/ja/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  35. data/locale/ja/foreman_virt_who_configure.po +651 -0
  36. data/locale/ko/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  37. data/locale/ko/foreman_virt_who_configure.po +650 -0
  38. data/locale/nl_NL/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  39. data/locale/nl_NL/foreman_virt_who_configure.po +653 -0
  40. data/locale/pl/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  41. data/locale/pl/foreman_virt_who_configure.po +652 -0
  42. data/locale/pt_BR/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  43. data/locale/pt_BR/foreman_virt_who_configure.po +652 -0
  44. data/locale/ru/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  45. data/locale/ru/foreman_virt_who_configure.po +654 -0
  46. data/locale/sv_SE/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  47. data/locale/sv_SE/foreman_virt_who_configure.po +651 -0
  48. data/locale/zh_CN/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  49. data/locale/zh_CN/foreman_virt_who_configure.po +654 -0
  50. data/locale/zh_TW/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  51. data/locale/zh_TW/foreman_virt_who_configure.po +651 -0
  52. data/test/functional/api/v2/configs_controller_test.rb +4 -1
  53. data/test/unit/output_generator_test.rb +5 -5
  54. metadata +43 -6
@@ -78,7 +78,8 @@ class ForemanVirtWhoConfigure::Api::V2::ConfigsControllerTest < ActionController
78
78
  assert_equal 'unknown', response['status']
79
79
  assert_nil response['last_report_at']
80
80
  assert_nil response['out_of_date_at']
81
- assert_equal @http_proxy.id, ForemanVirtWhoConfigure::Config.find(response['id']).http_proxy_id
81
+ assert_equal @http_proxy.id, response['http_proxy']['id']
82
+ assert_equal @http_proxy.url, response['proxy']
82
83
 
83
84
  assert_response :success
84
85
  end
@@ -140,6 +141,7 @@ class ForemanVirtWhoConfigure::Api::V2::ConfigsControllerTest < ActionController
140
141
  :hypervisor_password => "password",
141
142
  :debug => true,
142
143
  :satellite_url => "foreman.example.com",
144
+ :http_proxy_id => @http_proxy.id,
143
145
  :organization_id => org.id }
144
146
  }, :session => set_session_user
145
147
 
@@ -158,6 +160,7 @@ class ForemanVirtWhoConfigure::Api::V2::ConfigsControllerTest < ActionController
158
160
  assert_equal 'password', new_config.hypervisor_password
159
161
  assert_equal true, new_config.debug
160
162
  assert_equal 'foreman.example.com', new_config.satellite_url
163
+ assert_equal @http_proxy.id, response['http_proxy']['id']
161
164
  end
162
165
 
163
166
  test "should update the config" do
@@ -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
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.3
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Foreman virt-who-configure team
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-10 00:00:00.000000000 Z
11
+ date: 2021-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: katello
@@ -108,16 +108,53 @@ files:
108
108
  - db/migrate/20181005065724_filter_and_exclude_host_parents.foreman_virt_who_configure.rb
109
109
  - db/migrate/20190104125749_add_kubeconfig_to_config.rb
110
110
  - db/migrate/20200728054557_refer_config_proxy_to_http_proxy.rb
111
+ - db/migrate/20201211160234_add_foreign_key_proxy_id.rb
112
+ - db/migrate/20210413165147_delete_xen_profiles.rb
113
+ - db/migrate/20210608100743_delete_rhevm_profiles.rb
111
114
  - lib/foreman_virt_who_configure.rb
112
115
  - lib/foreman_virt_who_configure/engine.rb
113
116
  - lib/foreman_virt_who_configure/version.rb
114
117
  - lib/tasks/foreman_virt_who_configure_tasks.rake
115
118
  - locale/Makefile
116
119
  - locale/action_names.rb
120
+ - locale/ca/LC_MESSAGES/foreman_virt_who_configure.mo
121
+ - locale/ca/foreman_virt_who_configure.po
122
+ - locale/cs_CZ/LC_MESSAGES/foreman_virt_who_configure.mo
123
+ - locale/cs_CZ/foreman_virt_who_configure.po
124
+ - locale/de/LC_MESSAGES/foreman_virt_who_configure.mo
125
+ - locale/de/foreman_virt_who_configure.po
117
126
  - locale/en/LC_MESSAGES/foreman_virt_who_configure.mo
118
127
  - locale/en/foreman_virt_who_configure.po
128
+ - locale/en_GB/LC_MESSAGES/foreman_virt_who_configure.mo
129
+ - locale/en_GB/foreman_virt_who_configure.po
130
+ - locale/es/LC_MESSAGES/foreman_virt_who_configure.mo
131
+ - locale/es/foreman_virt_who_configure.po
119
132
  - locale/foreman_virt_who_configure.pot
133
+ - locale/fr/LC_MESSAGES/foreman_virt_who_configure.mo
134
+ - locale/fr/foreman_virt_who_configure.po
120
135
  - locale/gemspec.rb
136
+ - locale/gl/LC_MESSAGES/foreman_virt_who_configure.mo
137
+ - locale/gl/foreman_virt_who_configure.po
138
+ - locale/it/LC_MESSAGES/foreman_virt_who_configure.mo
139
+ - locale/it/foreman_virt_who_configure.po
140
+ - locale/ja/LC_MESSAGES/foreman_virt_who_configure.mo
141
+ - locale/ja/foreman_virt_who_configure.po
142
+ - locale/ko/LC_MESSAGES/foreman_virt_who_configure.mo
143
+ - locale/ko/foreman_virt_who_configure.po
144
+ - locale/nl_NL/LC_MESSAGES/foreman_virt_who_configure.mo
145
+ - locale/nl_NL/foreman_virt_who_configure.po
146
+ - locale/pl/LC_MESSAGES/foreman_virt_who_configure.mo
147
+ - locale/pl/foreman_virt_who_configure.po
148
+ - locale/pt_BR/LC_MESSAGES/foreman_virt_who_configure.mo
149
+ - locale/pt_BR/foreman_virt_who_configure.po
150
+ - locale/ru/LC_MESSAGES/foreman_virt_who_configure.mo
151
+ - locale/ru/foreman_virt_who_configure.po
152
+ - locale/sv_SE/LC_MESSAGES/foreman_virt_who_configure.mo
153
+ - locale/sv_SE/foreman_virt_who_configure.po
154
+ - locale/zh_CN/LC_MESSAGES/foreman_virt_who_configure.mo
155
+ - locale/zh_CN/foreman_virt_who_configure.po
156
+ - locale/zh_TW/LC_MESSAGES/foreman_virt_who_configure.mo
157
+ - locale/zh_TW/foreman_virt_who_configure.po
121
158
  - test/factories/foreman_virt_who_configure_factories.rb
122
159
  - test/functional/api/v2/configs_controller_test.rb
123
160
  - test/test_plugin_helper.rb
@@ -128,7 +165,7 @@ homepage: https://github.com/theforeman/foreman_virt_who_configure
128
165
  licenses:
129
166
  - GPLv3
130
167
  metadata: {}
131
- post_install_message:
168
+ post_install_message:
132
169
  rdoc_options: []
133
170
  require_paths:
134
171
  - lib
@@ -143,8 +180,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
180
  - !ruby/object:Gem::Version
144
181
  version: '0'
145
182
  requirements: []
146
- rubygems_version: 3.1.2
147
- signing_key:
183
+ rubygems_version: 3.1.6
184
+ signing_key:
148
185
  specification_version: 4
149
186
  summary: A plugin to make virt-who configuration easy
150
187
  test_files: