foreman_openscap 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/foreman_openscap/policy_dashboard.js +1 -1
- data/app/models/concerns/foreman_openscap/compliance_status_scoped_search.rb +1 -7
- data/app/views/arf_reports/_list.html.erb +4 -3
- data/lib/foreman_openscap/version.rb +1 -1
- metadata +37 -63
- data/locale/de/foreman_openscap.edit.po +0 -1227
- data/locale/de/foreman_openscap.po.time_stamp +0 -0
- data/locale/en_GB/foreman_openscap.edit.po +0 -1227
- data/locale/en_GB/foreman_openscap.po.time_stamp +0 -0
- data/locale/es/foreman_openscap.edit.po +0 -1227
- data/locale/es/foreman_openscap.po.time_stamp +0 -0
- data/locale/fr/foreman_openscap.edit.po +0 -1227
- data/locale/fr/foreman_openscap.po.time_stamp +0 -0
- data/locale/gl/foreman_openscap.edit.po +0 -1227
- data/locale/gl/foreman_openscap.po.time_stamp +0 -0
- data/locale/it/foreman_openscap.edit.po +0 -1227
- data/locale/it/foreman_openscap.po.time_stamp +0 -0
- data/locale/ja/foreman_openscap.edit.po +0 -1227
- data/locale/ja/foreman_openscap.po.time_stamp +0 -0
- data/locale/ko/foreman_openscap.edit.po +0 -1227
- data/locale/ko/foreman_openscap.po.time_stamp +0 -0
- data/locale/pt_BR/foreman_openscap.edit.po +0 -1227
- data/locale/pt_BR/foreman_openscap.po.time_stamp +0 -0
- data/locale/ru/foreman_openscap.edit.po +0 -1228
- data/locale/ru/foreman_openscap.po.time_stamp +0 -0
- data/locale/sv_SE/foreman_openscap.edit.po +0 -1227
- data/locale/sv_SE/foreman_openscap.po.time_stamp +0 -0
- data/locale/zh_CN/foreman_openscap.edit.po +0 -1227
- data/locale/zh_CN/foreman_openscap.po.time_stamp +0 -0
- data/locale/zh_TW/foreman_openscap.edit.po +0 -1227
- data/locale/zh_TW/foreman_openscap.po.time_stamp +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11979e99299089fd2351b7226729bd04c22b28e6
|
4
|
+
data.tar.gz: f6024f9b32f0692181a3b13f29b15a23d826c5f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6848c203268a565c4db241fc1a61a4dbd42ad142f3b29835e3db1b560ee91106313e8cf18d9a9e9c9881274f1cef939e5288623b49352fc4c94d5366e90a9e20
|
7
|
+
data.tar.gz: 6ff62df2218759cabd1fe823b7b4e7e9dfea66d8b8776b3e60603f83accfa2899aee3705c9246e91c59c40ca34897c6ef72e2f127b7bfb369084e839d2f008e4
|
@@ -5,13 +5,7 @@ module ForemanOpenscap
|
|
5
5
|
module ClassMethods
|
6
6
|
def policy_search(search_alias)
|
7
7
|
scoped_search :relation => :policy, :on => :name, :complete_value => true, :rename => search_alias,
|
8
|
-
:only_explicit => true
|
9
|
-
end
|
10
|
-
|
11
|
-
def search_by_policy_name(_key, _operator, policy_name)
|
12
|
-
scope = PolicyArfReport.of_policy(Policy.find_by(:name => policy_name))
|
13
|
-
.select(PolicyArfReport.arel_table[:arf_report_id]).to_sql
|
14
|
-
query_conditions scope
|
8
|
+
:only_explicit => true
|
15
9
|
end
|
16
10
|
|
17
11
|
def search_by_comply_with(_key, _operator, policy_name)
|
@@ -31,9 +31,10 @@
|
|
31
31
|
<td><%= report_arf_column(arf_report.failed, "label-danger") %></th>
|
32
32
|
<td><%= report_arf_column(arf_report.othered, "label-warning") %></th>
|
33
33
|
<td>
|
34
|
-
<%= action_buttons(
|
35
|
-
|
36
|
-
|
34
|
+
<%= action_buttons(display_link_if_authorized(_("Full Report"), hash_for_show_html_arf_report_path(:id => arf_report.id
|
35
|
+
)),
|
36
|
+
display_delete_if_authorized(hash_for_arf_report_path(:id => arf_report.id),
|
37
|
+
:confirm => _("Delete compliance report for %s?") % arf_report.host))
|
37
38
|
%>
|
38
39
|
</td>
|
39
40
|
</tr>
|
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: 1.0.
|
4
|
+
version: 1.0.1
|
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: 2019-05-
|
11
|
+
date: 2019-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: deface
|
@@ -253,59 +253,33 @@ files:
|
|
253
253
|
- locale/Makefile
|
254
254
|
- locale/action_names.rb
|
255
255
|
- locale/de/LC_MESSAGES/foreman_openscap.mo
|
256
|
-
- locale/de/foreman_openscap.edit.po
|
257
256
|
- locale/de/foreman_openscap.po
|
258
|
-
- locale/de/foreman_openscap.po.time_stamp
|
259
257
|
- locale/en_GB/LC_MESSAGES/foreman_openscap.mo
|
260
|
-
- locale/en_GB/foreman_openscap.edit.po
|
261
258
|
- locale/en_GB/foreman_openscap.po
|
262
|
-
- locale/en_GB/foreman_openscap.po.time_stamp
|
263
259
|
- locale/es/LC_MESSAGES/foreman_openscap.mo
|
264
|
-
- locale/es/foreman_openscap.edit.po
|
265
260
|
- locale/es/foreman_openscap.po
|
266
|
-
- locale/es/foreman_openscap.po.time_stamp
|
267
261
|
- locale/foreman_openscap.pot
|
268
262
|
- locale/fr/LC_MESSAGES/foreman_openscap.mo
|
269
|
-
- locale/fr/foreman_openscap.edit.po
|
270
263
|
- locale/fr/foreman_openscap.po
|
271
|
-
- locale/fr/foreman_openscap.po.time_stamp
|
272
264
|
- locale/gl/LC_MESSAGES/foreman_openscap.mo
|
273
|
-
- locale/gl/foreman_openscap.edit.po
|
274
265
|
- locale/gl/foreman_openscap.po
|
275
|
-
- locale/gl/foreman_openscap.po.time_stamp
|
276
266
|
- locale/it/LC_MESSAGES/foreman_openscap.mo
|
277
|
-
- locale/it/foreman_openscap.edit.po
|
278
267
|
- locale/it/foreman_openscap.po
|
279
|
-
- locale/it/foreman_openscap.po.time_stamp
|
280
268
|
- locale/ja/LC_MESSAGES/foreman_openscap.mo
|
281
|
-
- locale/ja/foreman_openscap.edit.po
|
282
269
|
- locale/ja/foreman_openscap.po
|
283
|
-
- locale/ja/foreman_openscap.po.time_stamp
|
284
270
|
- locale/ko/LC_MESSAGES/foreman_openscap.mo
|
285
|
-
- locale/ko/foreman_openscap.edit.po
|
286
271
|
- locale/ko/foreman_openscap.po
|
287
|
-
- locale/ko/foreman_openscap.po.time_stamp
|
288
272
|
- locale/pt_BR/LC_MESSAGES/foreman_openscap.mo
|
289
|
-
- locale/pt_BR/foreman_openscap.edit.po
|
290
273
|
- locale/pt_BR/foreman_openscap.po
|
291
|
-
- locale/pt_BR/foreman_openscap.po.time_stamp
|
292
274
|
- locale/ru/LC_MESSAGES/foreman_openscap.mo
|
293
|
-
- locale/ru/foreman_openscap.edit.po
|
294
275
|
- locale/ru/foreman_openscap.po
|
295
|
-
- locale/ru/foreman_openscap.po.time_stamp
|
296
276
|
- locale/sv_SE/LC_MESSAGES/foreman_openscap.mo
|
297
|
-
- locale/sv_SE/foreman_openscap.edit.po
|
298
277
|
- locale/sv_SE/foreman_openscap.po
|
299
|
-
- locale/sv_SE/foreman_openscap.po.time_stamp
|
300
278
|
- locale/zanata.xml
|
301
279
|
- locale/zh_CN/LC_MESSAGES/foreman_openscap.mo
|
302
|
-
- locale/zh_CN/foreman_openscap.edit.po
|
303
280
|
- locale/zh_CN/foreman_openscap.po
|
304
|
-
- locale/zh_CN/foreman_openscap.po.time_stamp
|
305
281
|
- locale/zh_TW/LC_MESSAGES/foreman_openscap.mo
|
306
|
-
- locale/zh_TW/foreman_openscap.edit.po
|
307
282
|
- locale/zh_TW/foreman_openscap.po
|
308
|
-
- locale/zh_TW/foreman_openscap.po.time_stamp
|
309
283
|
- test/factories/arf_report_factory.rb
|
310
284
|
- test/factories/asset_factory.rb
|
311
285
|
- test/factories/compliance_host_factory.rb
|
@@ -367,49 +341,49 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
367
341
|
version: '0'
|
368
342
|
requirements: []
|
369
343
|
rubyforge_project:
|
370
|
-
rubygems_version: 2.6.
|
344
|
+
rubygems_version: 2.6.14
|
371
345
|
signing_key:
|
372
346
|
specification_version: 4
|
373
347
|
summary: Foreman plug-in for displaying OpenSCAP audit reports
|
374
348
|
test_files:
|
375
|
-
- test/lib/foreman_openscap/bulk_upload_test.rb
|
376
|
-
- test/unit/message_cleaner_test.rb
|
377
|
-
- test/unit/scap_content_test.rb
|
378
|
-
- test/unit/concerns/openscap_proxy_extenstions_test.rb
|
379
|
-
- test/unit/concerns/host_extensions_test.rb
|
380
|
-
- test/unit/openscap_host_test.rb
|
381
|
-
- test/unit/tailoring_file_test.rb
|
382
|
-
- test/unit/policy_test.rb
|
383
|
-
- test/unit/compliance_status_test.rb
|
384
|
-
- test/unit/arf_report_status_calculator_test.rb
|
385
|
-
- test/unit/policy_mailer_test.rb
|
386
|
-
- test/unit/services/tailoring_files_proxy_check_test.rb
|
387
|
-
- test/unit/services/hostgroup_overrider_test.rb
|
388
|
-
- test/unit/services/report_dashboard/data_test.rb
|
389
|
-
- test/unit/services/lookup_key_overrider_test.rb
|
390
|
-
- test/unit/services/config_name_service_test.rb
|
391
|
-
- test/unit/arf_report_test.rb
|
392
|
-
- test/test_plugin_helper.rb
|
393
|
-
- test/functional/arf_reports_controller_test.rb
|
394
|
-
- test/functional/api/v2/hosts_controller_test.rb
|
395
|
-
- test/functional/api/v2/compliance/arf_reports_controller_test.rb
|
396
|
-
- test/functional/api/v2/compliance/scap_contents_controller_test.rb
|
397
|
-
- test/functional/api/v2/compliance/policies_controller_test.rb
|
398
|
-
- test/functional/api/v2/compliance/tailoring_files_controller_test.rb
|
399
|
-
- test/functional/openscap_proxies_controller_test.rb
|
400
|
-
- test/functional/tailoring_files_controller_test.rb
|
401
|
-
- test/factories/asset_factory.rb
|
402
|
-
- test/factories/compliance_log_factory.rb
|
403
349
|
- test/factories/arf_report_factory.rb
|
404
|
-
- test/factories/
|
350
|
+
- test/factories/asset_factory.rb
|
405
351
|
- test/factories/compliance_host_factory.rb
|
352
|
+
- test/factories/compliance_log_factory.rb
|
406
353
|
- test/factories/policy_arf_report_factory.rb
|
407
354
|
- test/factories/policy_factory.rb
|
355
|
+
- test/factories/scap_content_related.rb
|
356
|
+
- test/files/arf_report/arf_report.bz2
|
357
|
+
- test/files/arf_report/arf_report.html
|
358
|
+
- test/files/arf_report/arf_report.json
|
359
|
+
- test/files/arf_report/arf_report_msg_desc_changed.json
|
360
|
+
- test/files/arf_report/arf_report_msg_value_changed.json
|
408
361
|
- test/files/scap_contents/ssg-fedora-ds.xml
|
409
362
|
- test/files/tailoring_files/ssg-firefox-ds-tailoring-2.xml
|
410
363
|
- test/files/tailoring_files/ssg-firefox-ds-tailoring.xml
|
411
|
-
- test/
|
412
|
-
- test/
|
413
|
-
- test/
|
414
|
-
- test/
|
415
|
-
- test/
|
364
|
+
- test/functional/api/v2/compliance/arf_reports_controller_test.rb
|
365
|
+
- test/functional/api/v2/compliance/policies_controller_test.rb
|
366
|
+
- test/functional/api/v2/compliance/scap_contents_controller_test.rb
|
367
|
+
- test/functional/api/v2/compliance/tailoring_files_controller_test.rb
|
368
|
+
- test/functional/api/v2/hosts_controller_test.rb
|
369
|
+
- test/functional/arf_reports_controller_test.rb
|
370
|
+
- test/functional/openscap_proxies_controller_test.rb
|
371
|
+
- test/functional/tailoring_files_controller_test.rb
|
372
|
+
- test/lib/foreman_openscap/bulk_upload_test.rb
|
373
|
+
- test/test_plugin_helper.rb
|
374
|
+
- test/unit/arf_report_status_calculator_test.rb
|
375
|
+
- test/unit/arf_report_test.rb
|
376
|
+
- test/unit/compliance_status_test.rb
|
377
|
+
- test/unit/concerns/host_extensions_test.rb
|
378
|
+
- test/unit/concerns/openscap_proxy_extenstions_test.rb
|
379
|
+
- test/unit/message_cleaner_test.rb
|
380
|
+
- test/unit/openscap_host_test.rb
|
381
|
+
- test/unit/policy_mailer_test.rb
|
382
|
+
- test/unit/policy_test.rb
|
383
|
+
- test/unit/scap_content_test.rb
|
384
|
+
- test/unit/services/config_name_service_test.rb
|
385
|
+
- test/unit/services/hostgroup_overrider_test.rb
|
386
|
+
- test/unit/services/lookup_key_overrider_test.rb
|
387
|
+
- test/unit/services/report_dashboard/data_test.rb
|
388
|
+
- test/unit/services/tailoring_files_proxy_check_test.rb
|
389
|
+
- test/unit/tailoring_file_test.rb
|