foreman_puppet 2.0.7 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/app/controllers/concerns/foreman_puppet/extensions/api_smart_proxies_controller.rb +7 -2
- data/app/helpers/foreman_puppet/environments_helper.rb +1 -1
- data/app/helpers/foreman_puppet/puppetclass_lookup_keys_helper.rb +1 -1
- data/app/models/concerns/foreman_puppet/extensions/provisioning_template.rb +1 -1
- data/app/views/foreman_puppet/config_groups/_config_group.html.erb +5 -1
- data/app/views/foreman_puppet/config_groups/index.html.erb +1 -3
- data/app/views/smart_proxies/plugins/_puppet_ca.html.erb +44 -0
- data/db/migrate_foreman/20090905150132_create_hostgroups_puppetclasses.foreman_puppet.rb +1 -3
- data/lib/foreman_puppet/register.rb +3 -8
- data/lib/foreman_puppet/version.rb +1 -1
- data/locale/ca/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/ca/foreman_puppet.po +1 -70
- data/locale/cs_CZ/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/cs_CZ/foreman_puppet.edit.po +235 -358
- data/locale/cs_CZ/foreman_puppet.po +2 -13
- data/locale/de/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/de/foreman_puppet.po +13 -25
- data/locale/en/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/en/foreman_puppet.edit.po +161 -77
- data/locale/en/foreman_puppet.po +1 -13
- data/locale/en_GB/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/en_GB/foreman_puppet.po +2 -13
- data/locale/es/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/es/foreman_puppet.po +2 -13
- data/locale/foreman_puppet.pot +25 -48
- data/locale/fr/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/fr/foreman_puppet.po +2 -13
- data/locale/gl/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/gl/foreman_puppet.po +2 -13
- data/locale/it/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/it/foreman_puppet.po +2 -13
- data/locale/ja/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/ja/foreman_puppet.po +4 -15
- data/locale/ko/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/ko/foreman_puppet.po +2 -13
- data/locale/messages.mo +0 -0
- data/locale/nl_NL/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/nl_NL/foreman_puppet.po +2 -13
- data/locale/pl/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/pl/foreman_puppet.po +2 -13
- data/locale/pt_BR/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/pt_BR/foreman_puppet.po +2 -13
- data/locale/ru/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/ru/foreman_puppet.po +4 -15
- data/locale/sv_SE/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/sv_SE/foreman_puppet.po +2 -13
- data/locale/zh_CN/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/zh_CN/foreman_puppet.po +5 -16
- data/locale/zh_TW/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/zh_TW/foreman_puppet.po +2 -13
- data/test/controllers/foreman_puppet/api/v2/environments_controller_test.rb +24 -18
- data/test/controllers/foreman_puppet/api/v2/smart_class_parameters_controller_test.rb +2 -2
- data/test/controllers/foreman_puppet/environments_controller_test.rb +1 -1
- data/test/graphql/queries/environment_query_test.rb +4 -4
- data/test/graphql/queries/puppetclass_query_test.rb +4 -4
- data/test/integration/foreman_puppet/dashboard_js_test.rb +1 -2
- data/test/integration/foreman_puppet/environment_js_test.rb +1 -2
- data/test/integration/foreman_puppet/host_js_test.rb +17 -18
- data/test/integration/foreman_puppet/hostgroup_js_test.rb +1 -2
- data/test/integration/foreman_puppet/puppetclass_js_test.rb +1 -2
- data/test/integration/foreman_puppet/smartclass_parameter_js_test.rb +1 -2
- data/test/integration_puppet_helper.rb +3 -0
- data/test/models/foreman_puppet/host_puppet_facet_test.rb +2 -2
- data/test/models/foreman_puppet/host_test.rb +22 -22
- data/test/models/foreman_puppet/provisioning_template_test.rb +3 -3
- data/test/models/foreman_puppet/puppetclass_test.rb +1 -1
- data/test/services/foreman_puppet/host_info_providers/config_groups_info_test.rb +1 -1
- data/test/services/foreman_puppet/host_info_providers/puppet_info_test.rb +3 -3
- data/test/unit/foreman_puppet/template_rendering_test.rb +1 -1
- metadata +55 -91
- data/app/views/hosts/foreman_puppet/_form_list_env_field_content.html.erb +0 -1
- data/app/views/hosts/foreman_puppet/_form_list_env_field_header.html.erb +0 -1
- data/db/migrate/20220201205305_migrate_host_class_permission.foreman_puppet.rb +0 -9
- data/db/migrate/20220208135305_migrate_environment_ignore_type.foreman_puppet.rb +0 -15
- data/db/migrate/20220421204325_drop_environment_from_host_and_hg.foreman_puppet.rb +0 -8
- data/locale/ca/foreman_puppet.edit.po +0 -1221
- data/locale/ca/foreman_puppet.po.time_stamp +0 -0
- data/locale/de/foreman_puppet.edit.po +0 -1300
- data/locale/de/foreman_puppet.po.time_stamp +0 -0
- data/locale/en_GB/foreman_puppet.edit.po +0 -1197
- data/locale/en_GB/foreman_puppet.po.time_stamp +0 -0
- data/locale/es/foreman_puppet.edit.po +0 -1275
- data/locale/es/foreman_puppet.po.time_stamp +0 -0
- data/locale/fr/foreman_puppet.edit.po +0 -1290
- data/locale/fr/foreman_puppet.po.time_stamp +0 -0
- data/locale/gl/foreman_puppet.edit.po +0 -1203
- data/locale/gl/foreman_puppet.po.time_stamp +0 -0
- data/locale/it/foreman_puppet.edit.po +0 -1233
- data/locale/it/foreman_puppet.po.time_stamp +0 -0
- data/locale/ja/foreman_puppet.edit.po +0 -1223
- data/locale/ja/foreman_puppet.po.time_stamp +0 -0
- data/locale/ko/foreman_puppet.edit.po +0 -1197
- data/locale/ko/foreman_puppet.po.time_stamp +0 -0
- data/locale/nl_NL/foreman_puppet.edit.po +0 -1228
- data/locale/nl_NL/foreman_puppet.po.time_stamp +0 -0
- data/locale/pl/foreman_puppet.edit.po +0 -1238
- data/locale/pl/foreman_puppet.po.time_stamp +0 -0
- data/locale/pt_BR/foreman_puppet.edit.po +0 -1281
- data/locale/pt_BR/foreman_puppet.po.time_stamp +0 -0
- data/locale/ru/foreman_puppet.edit.po +0 -1240
- data/locale/ru/foreman_puppet.po.time_stamp +0 -0
- data/locale/sv_SE/foreman_puppet.edit.po +0 -1205
- data/locale/sv_SE/foreman_puppet.po.time_stamp +0 -0
- data/locale/zh_CN/foreman_puppet.edit.po +0 -1212
- data/locale/zh_CN/foreman_puppet.po.time_stamp +0 -0
- data/locale/zh_TW/foreman_puppet.edit.po +0 -1197
- data/locale/zh_TW/foreman_puppet.po.time_stamp +0 -0
- data/test/helpers/foreman_puppet/puppetclass_lookup_keys_helper_test.rb +0 -34
File without changes
|
@@ -1,34 +0,0 @@
|
|
1
|
-
require 'test_puppet_helper'
|
2
|
-
|
3
|
-
module ForemanPuppet
|
4
|
-
class PuppetclassLookupKeysHelperTest < ActionView::TestCase
|
5
|
-
include PuppetclassLookupKeysHelper
|
6
|
-
|
7
|
-
describe '#overridable_puppet_lookup_keys' do
|
8
|
-
let(:parent_puppet_var) { FactoryBot.create(:puppetclass_lookup_key) }
|
9
|
-
let(:parent_hg) { FactoryBot.create(:hostgroup, :with_puppet_enc, environment: parent_puppet_var.environments.first) }
|
10
|
-
|
11
|
-
context 'with new hostgroup' do
|
12
|
-
subject do
|
13
|
-
hg = Hostgroup.new(parent: parent_hg)
|
14
|
-
hg.build_puppet
|
15
|
-
hg
|
16
|
-
end
|
17
|
-
|
18
|
-
it 'returns inherited parameter' do
|
19
|
-
keys = overridable_puppet_lookup_keys(parent_puppet_var.param_classes.first, subject)
|
20
|
-
_(keys).must_include(parent_puppet_var)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
context 'with new host' do
|
25
|
-
subject { Host.new(hostgroup: parent_hg) }
|
26
|
-
|
27
|
-
it 'returns inherited parameter' do
|
28
|
-
keys = overridable_puppet_lookup_keys(parent_puppet_var.param_classes.first, subject)
|
29
|
-
_(keys).must_include(parent_puppet_var)
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|