foreman_ansible 13.0.2 → 13.0.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: ba6704e93fd8e4fc0937a6e580f6fda535866a5b1e632bb4bd237ba33805037f
4
- data.tar.gz: 3bf1fedbbfe60a40c5b33772c925bd163bfab80601bec0dea459eacab2cf7ec3
3
+ metadata.gz: 7132e432366b88fff7c9b385eb6708aeb04f35d8c52098af9c673d64ab049219
4
+ data.tar.gz: 3761ecc72d5366c6db9260a521f72894b31c335be21800324fd45df09068a503
5
5
  SHA512:
6
- metadata.gz: 12a1fc722c71c5cf4a118f42b39bfe289cca512153d0c78a0215b0d2d55147b5d934a4ec6d4f147666ac998839f3d0db7fc73cb9d583debd4c806d89214b802b
7
- data.tar.gz: 1947ac43c34621e1f1498d893d2f7afde5077aca87f96881074587989466bc5da3b596dae2d2cf4aecf2994ca93e595b827c432edc30aa55d91d2856aa3214a8
6
+ metadata.gz: 975d0def83217d4dfdb7f53f4da0cede7244f666dba088f63abde4e2f143e88dafe08297f3f2c42c22a15204bd94eac8c6238720fab11c5c1e903324f07e0876
7
+ data.tar.gz: 57b5f9d120e4655a28fb5b5ba3a3ef35de5d4a3a9e1462567a04c38da9d19aeb2e65f3570ba5c8643e78dcfb64a6dbf1646375e949a0102b611eb5d3cc2a8ae6
data/Rakefile CHANGED
@@ -7,15 +7,6 @@ rescue LoadError
7
7
  puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
8
8
  end
9
9
 
10
- require 'rake/testtask'
11
- Rake::TestTask.new('test:core') do |test|
12
- test_dir = File.join(File.dirname(__FILE__), 'test/lib')
13
- test.pattern = "#{test_dir}/**/*_test.rb"
14
- test.libs << test_dir
15
- test.verbose = false
16
- test.warning = false
17
- end
18
-
19
10
  begin
20
11
  require 'rubocop/rake_task'
21
12
  RuboCop::RakeTask.new
@@ -97,7 +97,7 @@ module ForemanAnsible
97
97
 
98
98
  def remote_execution_options(host)
99
99
  params = {
100
- 'ansible_user' => host_setting(host, 'remote_execution_ssh_user'),
100
+ 'ansible_user' => @template_invocation&.job_invocation&.ssh_user || host_setting(host, 'remote_execution_ssh_user'),
101
101
  'ansible_become_method' => host_setting(host, 'remote_execution_effective_user_method'),
102
102
  'ansible_ssh_private_key_file' => ansible_ssh_private_key(host),
103
103
  'ansible_port' => host_setting(host, 'remote_execution_ssh_port'),
@@ -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 = '13.0.2'
7
+ VERSION = '13.0.4'
8
8
  end
@@ -28,7 +28,7 @@ def assert_job_invocation_is_ok(response, targets)
28
28
  assert_equal 'Ansible Playbook', response['job_category']
29
29
  assert_response :created
30
30
  end
31
- plugin_factories_path = File.join(File.dirname(__FILE__), 'factories')
31
+ plugin_factories_path = File.join(__dir__, 'factories')
32
32
  rex_factories_path = "#{ForemanRemoteExecution::Engine.root}/test/factories"
33
33
  FactoryBot.definition_file_paths << rex_factories_path
34
34
  FactoryBot.definition_file_paths << plugin_factories_path
@@ -22,7 +22,11 @@ const EditableValue = props => {
22
22
  <TextAreaField
23
23
  aria-label="Edit override field"
24
24
  onChange={props.onChange}
25
- value={JSON.stringify(props.value)}
25
+ value={
26
+ typeof props.value === 'object'
27
+ ? JSON.stringify(props.value)
28
+ : props.value
29
+ }
26
30
  validation={props.validation}
27
31
  isDisabled={props.working}
28
32
  />
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: 13.0.2
4
+ version: 13.0.4
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: 2023-12-03 00:00:00.000000000 Z
11
+ date: 2024-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: acts_as_list
@@ -47,7 +47,7 @@ dependencies:
47
47
  version: '9.0'
48
48
  - - "<"
49
49
  - !ruby/object:Gem::Version
50
- version: '13'
50
+ version: '14'
51
51
  type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
@@ -57,7 +57,7 @@ dependencies:
57
57
  version: '9.0'
58
58
  - - "<"
59
59
  - !ruby/object:Gem::Version
60
- version: '13'
60
+ version: '14'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: foreman-tasks
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -500,7 +500,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
500
500
  - !ruby/object:Gem::Version
501
501
  version: '0'
502
502
  requirements: []
503
- rubygems_version: 3.1.4
503
+ rubygems_version: 3.2.3
504
504
  signing_key:
505
505
  specification_version: 4
506
506
  summary: Ansible integration with Foreman (theforeman.org)
@@ -511,24 +511,26 @@ test_files:
511
511
  - test/factories/host_ansible_enhancements.rb
512
512
  - test/fixtures/insights_playbook.yaml
513
513
  - test/fixtures/playbooks_example_output.json
514
+ - test/fixtures/report.json
514
515
  - test/fixtures/sample_facts.json
515
516
  - test/fixtures/sample_playbooks.json
516
- - test/fixtures/report.json
517
517
  - test/foreman_ansible/helpers/ansible_roles_helper_test.rb
518
518
  - test/functional/ansible_roles_controller_test.rb
519
519
  - test/functional/ansible_variables_controller_test.rb
520
+ - test/functional/api/v2/ansible_inventories_controller_test.rb
520
521
  - test/functional/api/v2/ansible_playbooks_controller_test.rb
521
522
  - test/functional/api/v2/ansible_roles_controller_test.rb
522
523
  - test/functional/api/v2/ansible_variables_controller_test.rb
523
524
  - test/functional/api/v2/hostgroups_controller_test.rb
524
525
  - test/functional/api/v2/hosts_controller_test.rb
525
- - test/functional/api/v2/ansible_inventories_controller_test.rb
526
526
  - test/functional/hosts_controller_test.rb
527
527
  - test/functional/ui_ansible_roles_controller_test.rb
528
528
  - test/graphql/mutations/hosts/assign_ansible_roles_mutation_test.rb
529
529
  - test/graphql/queries/ansible_roles_query_test.rb
530
530
  - test/graphql/queries/host_ansible_roles_query_test.rb
531
+ - test/integration/hostgroup_js_test.rb
531
532
  - test/test_plugin_helper.rb
533
+ - test/unit/ansible_provider_test.rb
532
534
  - test/unit/ansible_role_test.rb
533
535
  - test/unit/ansible_variable_test.rb
534
536
  - test/unit/concerns/config_reports_extensions_test.rb
@@ -549,5 +551,3 @@ test_files:
549
551
  - test/unit/services/override_resolver_test.rb
550
552
  - test/unit/services/roles_importer_test.rb
551
553
  - test/unit/services/ui_roles_importer_test.rb
552
- - test/unit/ansible_provider_test.rb
553
- - test/integration/hostgroup_js_test.rb