foreman_ansible 12.0.2 → 12.0.3

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: 90a2a521a1c97b7a7ea81ecfe5043452fc9e351b6ac702f44a26ffaf6131ed3e
4
- data.tar.gz: 6d62a68f85d6c2d996d5af6ad8fb0c00452b8b5ea620a3064af5e15200b433f5
3
+ metadata.gz: 03df3aef02ce7c770649a2cf4c6bcfb87b5eed92b69d99c53b3ca8b2317c06fe
4
+ data.tar.gz: 1438b33c1b9ba4e1c2ac11fd3ff9ef7ad17e1c768aec7b33bb826a4dead48309
5
5
  SHA512:
6
- metadata.gz: 6f15ec5e7c8767434ade6c3e645c43dfeb4da62a7d27efd4221ce705b63048680d67aece0adc7aa2bb8ce27b3a62ed29b2a6b3516bd6194a24184198b3fd2668
7
- data.tar.gz: 84e433d12bab08625cb95f0abcc19665b5bee7ababec7a3e08aadbbab727207b996f0e961d8072c3bbd5111be939ca249114672d179faa269fec3092fe64a5d6
6
+ metadata.gz: c7eab330278a2c9ea01144c6cbcadc160761144f85ac037bddac22bf94b1e2a97ec9559bfac6b8bf47b1bec253c869fce29068b462d58d1f44d2f40a1e91c128
7
+ data.tar.gz: 15262fea70b40690a9a84edc50cf5b9f1f47d57f8345da65ac34accf68b55eeb772b3a65b42acfae5045071cb1780a98e9912e397581b75af2a3f07d60df9429
@@ -66,7 +66,7 @@ module ForemanAnsible
66
66
  process_response @hostgroup.update(:ansible_roles => @ansible_roles)
67
67
  end
68
68
 
69
- api :PUT, '/hostgroups/:id/ansible_roles',
69
+ api :PUT, '/hostgroups/:id/ansible_roles/:ansible_role_id',
70
70
  N_('Directly add an Ansible role to a hostgroup')
71
71
  param :id, :identifier, :required => true
72
72
  param :ansible_role_id, :identifier,
@@ -67,7 +67,7 @@ module ForemanAnsible
67
67
  process_response @host.update(:ansible_roles => @ansible_roles)
68
68
  end
69
69
 
70
- api :PUT, '/hosts/:id/ansible_roles',
70
+ api :PUT, '/hosts/:id/ansible_roles/:ansible_role_id',
71
71
  N_('Directly add an Ansible role to a host')
72
72
  param :id, :identifier, :required => true
73
73
  param :ansible_role_id, :identifier,
data/config/routes.rb CHANGED
@@ -13,7 +13,7 @@ Rails.application.routes.draw do
13
13
  post :play_roles
14
14
  get :ansible_roles
15
15
  post :assign_ansible_roles
16
- put :ansible_roles, :to => 'hosts#add_ansible_role'
16
+ put 'ansible_roles/:ansible_role_id', :to => 'hosts#add_ansible_role', :constraints => { id: %r{[^\/]+} }
17
17
  delete 'ansible_roles/:ansible_role_id', :to => 'hosts#remove_ansible_role', :constraints => { id: %r{[^\/]+} }
18
18
  end
19
19
  collection do
@@ -25,7 +25,7 @@ Rails.application.routes.draw do
25
25
  post :play_roles
26
26
  get :ansible_roles
27
27
  post :assign_ansible_roles
28
- put :ansible_roles, :to => 'hostgroups#add_ansible_role'
28
+ put 'ansible_roles/:ansible_role_id', :to => 'hostgroups#add_ansible_role', :constraints => { id: %r{[^\/]+} }
29
29
  delete 'ansible_roles/:ansible_role_id', :to => 'hostgroups#remove_ansible_role', :constraints => { id: %r{[^\/]+} }
30
30
  end
31
31
  collection do
@@ -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 = '12.0.2'
7
+ VERSION = '12.0.3'
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_ansible
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.0.2
4
+ version: 12.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Lobato Garcia
@@ -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.4.13
503
+ rubygems_version: 3.1.4
504
504
  signing_key:
505
505
  specification_version: 4
506
506
  summary: Ansible integration with Foreman (theforeman.org)
@@ -511,16 +511,16 @@ 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
515
514
  - test/fixtures/sample_facts.json
516
515
  - 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
521
520
  - test/functional/api/v2/ansible_playbooks_controller_test.rb
522
521
  - test/functional/api/v2/ansible_roles_controller_test.rb
523
522
  - test/functional/api/v2/ansible_variables_controller_test.rb
523
+ - test/functional/api/v2/ansible_inventories_controller_test.rb
524
524
  - test/functional/api/v2/hostgroups_controller_test.rb
525
525
  - test/functional/api/v2/hosts_controller_test.rb
526
526
  - test/functional/hosts_controller_test.rb
@@ -528,14 +528,12 @@ test_files:
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
532
531
  - test/test_plugin_helper.rb
533
- - test/unit/ansible_provider_test.rb
534
532
  - test/unit/ansible_role_test.rb
535
533
  - test/unit/ansible_variable_test.rb
536
- - test/unit/concerns/config_reports_extensions_test.rb
537
534
  - test/unit/concerns/host_managed_extensions_test.rb
538
535
  - test/unit/concerns/hostgroup_extensions_test.rb
536
+ - test/unit/concerns/config_reports_extensions_test.rb
539
537
  - test/unit/helpers/ansible_reports_helper_test.rb
540
538
  - test/unit/host_ansible_role_test.rb
541
539
  - test/unit/hostgroup_ansible_role_test.rb
@@ -551,3 +549,5 @@ test_files:
551
549
  - test/unit/services/override_resolver_test.rb
552
550
  - test/unit/services/roles_importer_test.rb
553
551
  - test/unit/services/ui_roles_importer_test.rb
552
+ - test/unit/ansible_provider_test.rb
553
+ - test/integration/hostgroup_js_test.rb