foreman_ansible 4.0.2 → 4.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/services/foreman_ansible/variables_importer.rb +1 -1
- data/lib/foreman_ansible/engine.rb +10 -24
- data/lib/foreman_ansible/register.rb +4 -4
- data/lib/foreman_ansible/version.rb +1 -1
- data/locale/de/foreman_ansible.edit.po +825 -0
- data/locale/de/foreman_ansible.po.time_stamp +0 -0
- data/locale/en/foreman_ansible.edit.po +714 -0
- data/locale/en/foreman_ansible.po.time_stamp +0 -0
- data/locale/es/foreman_ansible.edit.po +845 -0
- data/locale/es/foreman_ansible.po.time_stamp +0 -0
- data/locale/fr/foreman_ansible.edit.po +847 -0
- data/locale/fr/foreman_ansible.po.time_stamp +0 -0
- data/locale/it/foreman_ansible.edit.po +818 -0
- data/locale/it/foreman_ansible.po.time_stamp +0 -0
- data/locale/ja/foreman_ansible.edit.po +818 -0
- data/locale/ja/foreman_ansible.po.time_stamp +0 -0
- data/locale/ko/foreman_ansible.edit.po +804 -0
- data/locale/ko/foreman_ansible.po.time_stamp +0 -0
- data/locale/pt_BR/foreman_ansible.edit.po +845 -0
- data/locale/pt_BR/foreman_ansible.po.time_stamp +0 -0
- data/locale/ru/foreman_ansible.edit.po +819 -0
- data/locale/ru/foreman_ansible.po.time_stamp +0 -0
- data/locale/zh_CN/foreman_ansible.edit.po +813 -0
- data/locale/zh_CN/foreman_ansible.po.time_stamp +0 -0
- data/locale/zh_TW/foreman_ansible.edit.po +804 -0
- data/locale/zh_TW/foreman_ansible.po.time_stamp +0 -0
- data/test/functional/api/v2/ansible_inventories_controller_test.rb +10 -0
- data/test/functional/hosts_controller_test.rb +1 -1
- metadata +55 -33
File without changes
|
@@ -32,6 +32,16 @@ module Api
|
|
32
32
|
hosts_inventory_assertions(@hostgroup.hosts)
|
33
33
|
end
|
34
34
|
|
35
|
+
test 'schedule inventory by user' do
|
36
|
+
report = FactoryBot.create(:report_template)
|
37
|
+
setting = Setting::Ansible.create! :name => 'ansible_inventory_template', :value => report.name,
|
38
|
+
:default => report.name, :description => 'inventory'
|
39
|
+
user = FactoryBot.create(:user)
|
40
|
+
user.roles << Role.find_by_name('Ansible Tower Inventory Reader')
|
41
|
+
post :schedule, { :session => set_session_user(user) }
|
42
|
+
assert_response :success
|
43
|
+
end
|
44
|
+
|
35
45
|
private
|
36
46
|
|
37
47
|
def hosts_inventory_assertions(hosts)
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
require 'test_plugin_helper'
|
4
4
|
require 'dynflow/testing'
|
5
|
-
Mocha::Mock.
|
5
|
+
Mocha::Mock.include Dynflow::Testing::Mimic
|
6
6
|
|
7
7
|
# Ensure Hosts controller can CRUD ansible roles
|
8
8
|
class HostsControllerExtensionsTest < ActionController::TestCase
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_ansible
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Lobato Garcia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -241,29 +241,51 @@ files:
|
|
241
241
|
- locale/Makefile
|
242
242
|
- locale/action_names.rb
|
243
243
|
- locale/de/LC_MESSAGES/foreman_ansible.mo
|
244
|
+
- locale/de/foreman_ansible.edit.po
|
244
245
|
- locale/de/foreman_ansible.po
|
246
|
+
- locale/de/foreman_ansible.po.time_stamp
|
245
247
|
- locale/en/LC_MESSAGES/foreman_ansible.mo
|
248
|
+
- locale/en/foreman_ansible.edit.po
|
246
249
|
- locale/en/foreman_ansible.po
|
250
|
+
- locale/en/foreman_ansible.po.time_stamp
|
247
251
|
- locale/es/LC_MESSAGES/foreman_ansible.mo
|
252
|
+
- locale/es/foreman_ansible.edit.po
|
248
253
|
- locale/es/foreman_ansible.po
|
254
|
+
- locale/es/foreman_ansible.po.time_stamp
|
249
255
|
- locale/foreman_ansible.pot
|
250
256
|
- locale/fr/LC_MESSAGES/foreman_ansible.mo
|
257
|
+
- locale/fr/foreman_ansible.edit.po
|
251
258
|
- locale/fr/foreman_ansible.po
|
259
|
+
- locale/fr/foreman_ansible.po.time_stamp
|
252
260
|
- locale/gemspec.rb
|
253
261
|
- locale/it/LC_MESSAGES/foreman_ansible.mo
|
262
|
+
- locale/it/foreman_ansible.edit.po
|
254
263
|
- locale/it/foreman_ansible.po
|
264
|
+
- locale/it/foreman_ansible.po.time_stamp
|
255
265
|
- locale/ja/LC_MESSAGES/foreman_ansible.mo
|
266
|
+
- locale/ja/foreman_ansible.edit.po
|
256
267
|
- locale/ja/foreman_ansible.po
|
268
|
+
- locale/ja/foreman_ansible.po.time_stamp
|
257
269
|
- locale/ko/LC_MESSAGES/foreman_ansible.mo
|
270
|
+
- locale/ko/foreman_ansible.edit.po
|
258
271
|
- locale/ko/foreman_ansible.po
|
272
|
+
- locale/ko/foreman_ansible.po.time_stamp
|
259
273
|
- locale/pt_BR/LC_MESSAGES/foreman_ansible.mo
|
274
|
+
- locale/pt_BR/foreman_ansible.edit.po
|
260
275
|
- locale/pt_BR/foreman_ansible.po
|
276
|
+
- locale/pt_BR/foreman_ansible.po.time_stamp
|
261
277
|
- locale/ru/LC_MESSAGES/foreman_ansible.mo
|
278
|
+
- locale/ru/foreman_ansible.edit.po
|
262
279
|
- locale/ru/foreman_ansible.po
|
280
|
+
- locale/ru/foreman_ansible.po.time_stamp
|
263
281
|
- locale/zh_CN/LC_MESSAGES/foreman_ansible.mo
|
282
|
+
- locale/zh_CN/foreman_ansible.edit.po
|
264
283
|
- locale/zh_CN/foreman_ansible.po
|
284
|
+
- locale/zh_CN/foreman_ansible.po.time_stamp
|
265
285
|
- locale/zh_TW/LC_MESSAGES/foreman_ansible.mo
|
286
|
+
- locale/zh_TW/foreman_ansible.edit.po
|
266
287
|
- locale/zh_TW/foreman_ansible.po
|
288
|
+
- locale/zh_TW/foreman_ansible.po.time_stamp
|
267
289
|
- package.json
|
268
290
|
- test/factories/ansible_proxy.rb
|
269
291
|
- test/factories/ansible_roles.rb
|
@@ -370,44 +392,44 @@ specification_version: 4
|
|
370
392
|
summary: Ansible integration with Foreman (theforeman.org)
|
371
393
|
test_files:
|
372
394
|
- test/factories/ansible_proxy.rb
|
373
|
-
- test/factories/ansible_roles.rb
|
374
395
|
- test/factories/ansible_variables.rb
|
375
|
-
- test/
|
396
|
+
- test/factories/ansible_roles.rb
|
397
|
+
- test/test_plugin_helper.rb
|
398
|
+
- test/unit/host_ansible_role_test.rb
|
399
|
+
- test/unit/ansible_role_test.rb
|
400
|
+
- test/unit/services/ui_roles_importer_test.rb
|
401
|
+
- test/unit/services/roles_importer_test.rb
|
402
|
+
- test/unit/services/insights_plan_runner_test.rb
|
403
|
+
- test/unit/services/ansible_report_importer_test.rb
|
404
|
+
- test/unit/services/inventory_creator_test.rb
|
405
|
+
- test/unit/services/fact_importer_test.rb
|
406
|
+
- test/unit/services/fact_sparser_test.rb
|
407
|
+
- test/unit/services/structured_fact_importer_test.rb
|
408
|
+
- test/unit/services/fact_parser_test.rb
|
409
|
+
- test/unit/services/ansible_variables_importer_test.rb
|
410
|
+
- test/unit/services/api_roles_importer_test.rb
|
411
|
+
- test/unit/ansible_variable_test.rb
|
412
|
+
- test/unit/lib/foreman_ansible_core/playbook_runner_test.rb
|
413
|
+
- test/unit/lib/foreman_ansible_core/command_creator_test.rb
|
414
|
+
- test/unit/lib/foreman_ansible_core/ansible_runner_test.rb
|
415
|
+
- test/unit/lib/proxy_api/ansible_test.rb
|
416
|
+
- test/unit/hostgroup_ansible_role_test.rb
|
417
|
+
- test/unit/concerns/hostgroup_extensions_test.rb
|
418
|
+
- test/unit/concerns/host_managed_extensions_test.rb
|
419
|
+
- test/unit/concerns/config_reports_extensions_test.rb
|
420
|
+
- test/unit/helpers/ansible_reports_helper_test.rb
|
421
|
+
- test/unit/actions/run_proxy_ansible_command_test.rb
|
422
|
+
- test/unit/actions/run_ansible_job_test.rb
|
423
|
+
- test/unit/ansible_provider_test.rb
|
376
424
|
- test/fixtures/insights_playbook.yaml
|
425
|
+
- test/fixtures/sample_facts.json
|
377
426
|
- test/fixtures/report.json
|
427
|
+
- test/functional/hosts_controller_test.rb
|
428
|
+
- test/functional/api/v2/hosts_controller_test.rb
|
378
429
|
- test/functional/api/v2/ansible_roles_controller_test.rb
|
379
430
|
- test/functional/api/v2/ansible_variables_controller_test.rb
|
380
431
|
- test/functional/api/v2/hostgroups_controller_test.rb
|
381
|
-
- test/functional/api/v2/hosts_controller_test.rb
|
382
432
|
- test/functional/api/v2/ansible_inventories_controller_test.rb
|
383
433
|
- test/functional/ansible_roles_controller_test.rb
|
384
|
-
- test/functional/hosts_controller_test.rb
|
385
434
|
- test/functional/ansible_variables_controller_test.rb
|
386
435
|
- test/functional/ui_ansible_roles_controller_test.rb
|
387
|
-
- test/unit/concerns/config_reports_extensions_test.rb
|
388
|
-
- test/unit/concerns/host_managed_extensions_test.rb
|
389
|
-
- test/unit/concerns/hostgroup_extensions_test.rb
|
390
|
-
- test/unit/helpers/ansible_reports_helper_test.rb
|
391
|
-
- test/unit/lib/proxy_api/ansible_test.rb
|
392
|
-
- test/unit/lib/foreman_ansible_core/command_creator_test.rb
|
393
|
-
- test/unit/lib/foreman_ansible_core/ansible_runner_test.rb
|
394
|
-
- test/unit/lib/foreman_ansible_core/playbook_runner_test.rb
|
395
|
-
- test/unit/services/api_roles_importer_test.rb
|
396
|
-
- test/unit/services/fact_sparser_test.rb
|
397
|
-
- test/unit/services/insights_plan_runner_test.rb
|
398
|
-
- test/unit/services/roles_importer_test.rb
|
399
|
-
- test/unit/services/structured_fact_importer_test.rb
|
400
|
-
- test/unit/services/ui_roles_importer_test.rb
|
401
|
-
- test/unit/services/ansible_report_importer_test.rb
|
402
|
-
- test/unit/services/ansible_variables_importer_test.rb
|
403
|
-
- test/unit/services/fact_importer_test.rb
|
404
|
-
- test/unit/services/fact_parser_test.rb
|
405
|
-
- test/unit/services/inventory_creator_test.rb
|
406
|
-
- test/unit/actions/run_ansible_job_test.rb
|
407
|
-
- test/unit/actions/run_proxy_ansible_command_test.rb
|
408
|
-
- test/unit/ansible_role_test.rb
|
409
|
-
- test/unit/host_ansible_role_test.rb
|
410
|
-
- test/unit/hostgroup_ansible_role_test.rb
|
411
|
-
- test/unit/ansible_provider_test.rb
|
412
|
-
- test/unit/ansible_variable_test.rb
|
413
|
-
- test/test_plugin_helper.rb
|