foreman_ansible 6.3.3 → 6.3.4

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: 4a67f34724383faf6ead25e0d28e47d86b30d817839e3d9e3e6ef0531f9a4c5a
4
- data.tar.gz: e758ebdaa34fe47e84aac20c5cd12af9013cad2d17810b73f894a7b6177e570b
3
+ metadata.gz: 70ef5c59ee6bba3f3b62db1288f39776cf0661b2e12c7145212345e7e291b8cf
4
+ data.tar.gz: bb25459005a758c693a97cfcd6ef202ddffb8831374417be1588073f7ef97ff5
5
5
  SHA512:
6
- metadata.gz: 0a3f9e4fe92c5325908b61e9542e4a99c4256f1c9b0b66f58873e73c8fa3b90194d39a054c2857060edc37ebd214b2186d8dced6078950f936ec8e9ae4b5fde4
7
- data.tar.gz: 82aab4e76eedc22109debf0c1a60bc316c512677749dff6b1a53a4357c66d16dee37260fdc53ce643b362fcbc253a5ad6b3c8ff9636c736faee22ad229f821b7
6
+ metadata.gz: c2a37f0db636e45970d8c3c34584d44912e5d0569af15915112a7ab9438717651e3fbe3291e7fcc82a052ea985833beb393e30347dcf8b2e83341ed5d1cd2377
7
+ data.tar.gz: 2fae33324c5c41462ad4375f68344e34872b45085a64c91f08f5a2465cd77e08c22b1087fb17a5f06299bb887ada63c40f0953de8e012e960ae2bf74b0e1c66f
@@ -52,10 +52,6 @@ if defined? ForemanRemoteExecution
52
52
  host_setting(host, 'remote_execution_effective_user_password')
53
53
  end
54
54
 
55
- def host_setting(host, setting)
56
- host.params[setting.to_s] || Setting[setting]
57
- end
58
-
59
55
  def supports_effective_user?
60
56
  true
61
57
  end
@@ -4,5 +4,5 @@
4
4
  # This way other parts of Foreman can just call ForemanAnsible::VERSION
5
5
  # and detect what version the plugin is running.
6
6
  module ForemanAnsible
7
- VERSION = '6.3.3'
7
+ VERSION = '6.3.4'
8
8
  end
@@ -30,14 +30,11 @@ class AnsibleProviderTest < ActiveSupport::TestCase
30
30
  end
31
31
 
32
32
  context 'when using secrets' do
33
- let(:host) { FactoryBot.build(:host) }
33
+ let(:host) { FactoryBot.create(:host) }
34
34
 
35
35
  it 'generates secrets properly' do
36
- params = {
37
- 'remote_execution_ssh_password' => 'password',
38
- 'remote_execution_effective_user_password' => 'letmein'
39
- }
40
- host.expects(:params).twice.returns(params)
36
+ host.parameters << HostParameter.new(name: 'remote_execution_ssh_password', value: 'password')
37
+ host.parameters << HostParameter.new(name: 'remote_execution_effective_user_password', value: 'letmein')
41
38
  secrets = ForemanAnsible::AnsibleProvider.secrets(host)
42
39
  host_secrets = secrets['per-host'][host.name]
43
40
  assert_equal host_secrets['ansible_password'], 'password'
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: 6.3.3
4
+ version: 6.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Lobato Garcia
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-17 00:00:00.000000000 Z
11
+ date: 2021-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: foreman_ansible_core
@@ -374,7 +374,7 @@ homepage: https://github.com/theforeman/foreman_ansible
374
374
  licenses:
375
375
  - GPL-3.0
376
376
  metadata: {}
377
- post_install_message:
377
+ post_install_message:
378
378
  rdoc_options: []
379
379
  require_paths:
380
380
  - lib
@@ -390,7 +390,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
390
390
  version: '0'
391
391
  requirements: []
392
392
  rubygems_version: 3.1.2
393
- signing_key:
393
+ signing_key:
394
394
  specification_version: 4
395
395
  summary: Ansible integration with Foreman (theforeman.org)
396
396
  test_files:
@@ -399,14 +399,14 @@ test_files:
399
399
  - test/factories/ansible_roles.rb
400
400
  - test/factories/host_ansible_enhancements.rb
401
401
  - test/fixtures/insights_playbook.yaml
402
- - test/fixtures/sample_facts.json
403
402
  - test/fixtures/report.json
403
+ - test/fixtures/sample_facts.json
404
404
  - test/functional/ansible_roles_controller_test.rb
405
+ - test/functional/api/v2/ansible_inventories_controller_test.rb
405
406
  - test/functional/api/v2/ansible_variables_controller_test.rb
406
- - test/functional/api/v2/ansible_roles_controller_test.rb
407
407
  - test/functional/api/v2/hostgroups_controller_test.rb
408
408
  - test/functional/api/v2/hosts_controller_test.rb
409
- - test/functional/api/v2/ansible_inventories_controller_test.rb
409
+ - test/functional/api/v2/ansible_roles_controller_test.rb
410
410
  - test/functional/ui_ansible_roles_controller_test.rb
411
411
  - test/functional/ansible_variables_controller_test.rb
412
412
  - test/functional/hosts_controller_test.rb
@@ -419,24 +419,24 @@ test_files:
419
419
  - test/unit/concerns/host_managed_extensions_test.rb
420
420
  - test/unit/concerns/hostgroup_extensions_test.rb
421
421
  - test/unit/helpers/ansible_reports_helper_test.rb
422
- - test/unit/lib/proxy_api/ansible_test.rb
423
- - test/unit/lib/foreman_ansible_core/ansible_runner_test.rb
424
422
  - test/unit/lib/foreman_ansible_core/command_creator_test.rb
423
+ - test/unit/lib/foreman_ansible_core/ansible_runner_test.rb
425
424
  - test/unit/lib/foreman_ansible_core/playbook_runner_test.rb
425
+ - test/unit/lib/proxy_api/ansible_test.rb
426
426
  - test/unit/services/ansible_report_importer_test.rb
427
- - test/unit/services/insights_plan_runner_test.rb
428
- - test/unit/services/roles_importer_test.rb
429
427
  - test/unit/services/fact_importer_test.rb
430
- - test/unit/services/fact_parser_test.rb
431
428
  - test/unit/services/fact_sparser_test.rb
429
+ - test/unit/services/insights_plan_runner_test.rb
430
+ - test/unit/services/roles_importer_test.rb
432
431
  - test/unit/services/structured_fact_importer_test.rb
433
432
  - test/unit/services/ansible_variables_importer_test.rb
433
+ - test/unit/services/ui_roles_importer_test.rb
434
434
  - test/unit/services/api_roles_importer_test.rb
435
+ - test/unit/services/fact_parser_test.rb
435
436
  - test/unit/services/inventory_creator_test.rb
436
- - test/unit/services/ui_roles_importer_test.rb
437
- - test/unit/ansible_provider_test.rb
438
437
  - test/unit/host_ansible_role_test.rb
439
- - test/unit/ignore_roles_test.rb
440
438
  - test/unit/import_roles_and_variables.rb
439
+ - test/unit/ignore_roles_test.rb
441
440
  - test/unit/hostgroup_ansible_role_test.rb
441
+ - test/unit/ansible_provider_test.rb
442
442
  - test/foreman_ansible/helpers/ansible_roles_helper_test.rb