foreman_openscap 4.0.4 → 4.0.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 956d9e3fe1db2b42e88e44e4a6ba71831011f89786ca0f985a565b78b455e985
|
4
|
+
data.tar.gz: 115326eadadbb7eeeb179299327e58a51036228a561b8b8aad91d69fe5a2dd53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b995ec07848fcb27313a4a75ba2971d9b7da32b4c53a5366cadbb858e3a8abc32bb80123494e666b2266ac0c31ad452631e961bbeb7f69b5d0bad42edaa2b9ad
|
7
|
+
data.tar.gz: 4a521e80f3b3b273b12c1c8d80e5a3f655ce9a01ce79cb641f1b3342a9b959abca8e8a941c702344fc290e4fa194d346a399400de041cacff465f4160d32b328
|
@@ -0,0 +1,28 @@
|
|
1
|
+
class UpdatePuppetPortParamType < ActiveRecord::Migration[6.0]
|
2
|
+
def up
|
3
|
+
update_port_type :to_i
|
4
|
+
end
|
5
|
+
|
6
|
+
def down
|
7
|
+
update_port_type :to_s
|
8
|
+
end
|
9
|
+
|
10
|
+
private
|
11
|
+
|
12
|
+
def update_port_type(method)
|
13
|
+
puppet_class = Puppetclass.find_by :name => 'foreman_scap_client'
|
14
|
+
return unless puppet_class
|
15
|
+
port_key = puppet_class.class_params.find_by :key => 'port'
|
16
|
+
return unless port_key
|
17
|
+
def_value = port_key.default_value
|
18
|
+
|
19
|
+
if method == :to_i
|
20
|
+
port_key.key_type = "integer"
|
21
|
+
port_key.default_value = def_value.to_i
|
22
|
+
else
|
23
|
+
port_key.key_type == "string"
|
24
|
+
port_key.default_value = port_key.default_value.to_s
|
25
|
+
end
|
26
|
+
port_key.save!
|
27
|
+
end
|
28
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_openscap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- slukasik@redhat.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -245,6 +245,7 @@ files:
|
|
245
245
|
- db/migrate/20190103093409_add_deployment_option_to_policy.foreman_openscap.rb
|
246
246
|
- db/migrate/20200117135424_migrate_port_overrides_to_int.rb
|
247
247
|
- db/migrate/20200803065041_migrate_port_overrides_for_ansible.rb
|
248
|
+
- db/migrate/20201202110213_update_puppet_port_param_type.rb
|
248
249
|
- db/seeds.d/75-job_templates.rb
|
249
250
|
- db/seeds.d/openscap_feature.rb
|
250
251
|
- db/seeds.d/openscap_policy_notification.rb
|
@@ -357,10 +358,10 @@ test_files:
|
|
357
358
|
- test/factories/arf_report_factory.rb
|
358
359
|
- test/factories/asset_factory.rb
|
359
360
|
- test/factories/compliance_host_factory.rb
|
360
|
-
- test/factories/compliance_log_factory.rb
|
361
361
|
- test/factories/policy_arf_report_factory.rb
|
362
362
|
- test/factories/policy_factory.rb
|
363
363
|
- test/factories/scap_content_related.rb
|
364
|
+
- test/factories/compliance_log_factory.rb
|
364
365
|
- test/files/arf_report/arf_report.bz2
|
365
366
|
- test/files/arf_report/arf_report.html
|
366
367
|
- test/files/arf_report/arf_report.json
|
@@ -369,11 +370,11 @@ test_files:
|
|
369
370
|
- test/files/scap_contents/ssg-fedora-ds.xml
|
370
371
|
- test/files/tailoring_files/ssg-firefox-ds-tailoring-2.xml
|
371
372
|
- test/files/tailoring_files/ssg-firefox-ds-tailoring.xml
|
372
|
-
- test/functional/api/v2/compliance/arf_reports_controller_test.rb
|
373
373
|
- test/functional/api/v2/compliance/policies_controller_test.rb
|
374
374
|
- test/functional/api/v2/compliance/scap_content_profiles_controller_test.rb
|
375
375
|
- test/functional/api/v2/compliance/scap_contents_controller_test.rb
|
376
376
|
- test/functional/api/v2/compliance/tailoring_files_controller_test.rb
|
377
|
+
- test/functional/api/v2/compliance/arf_reports_controller_test.rb
|
377
378
|
- test/functional/api/v2/hosts_controller_test.rb
|
378
379
|
- test/functional/arf_reports_controller_test.rb
|
379
380
|
- test/functional/openscap_proxies_controller_test.rb
|