Project

General

Profile

Actions

Bug #14651

closed

Add hammer command to download the ARF report

Added by Bryan Kearney over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Target version:
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

THis should include exporting reports for hosts.


Related issues 1 (0 open1 closed)

Related to OpenSCAP - Feature #16694: Add API endpoint for Arf report downloadClosedOndřej Pražák09/26/2016Actions
Actions #1

Updated by Marek Hulán about 8 years ago

  • Subject changed from Add hammer commands for openscap to Add hammer command to download the ARF report
  • Target version set to 115

This was already added https://github.com/theforeman/foreman-packaging/pull/1315 (1.13 will have the plugin), this ticket mentions reports downloading which is not implemented and I think will required some changes in hammer. So we'll use this ticket to track this.

Actions #2

Updated by Marek Hulán about 8 years ago

Martin said hammer should have builtin support for this, we should just add API endpoint which sends a file and hammer command that uses apipie #raw to get the content and saves it somewhere. That would imply only changes in foreman_openscap and hammer_cli_foreman_openscap.

Actions #3

Updated by Marek Hulán about 8 years ago

Few more info:
https://github.com/theforeman/hammer-cli/commit/d44637f502759523c228aee2faaa0b994ddef43f this commit allows it

In hammer command we need to
  1. redefine #request_optionsto return {:response => :raw}
  2. redefine transform_format(data) to return data
  3. redefine print_data to save the file
Actions #4

Updated by Ondřej Pražák about 8 years ago

  • Related to Feature #16694: Add API endpoint for Arf report download added
Actions #5

Updated by Marek Hulán about 8 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Ondřej Pražák
  • Target version changed from 115 to 1.5.3
  • Pull request https://github.com/theforeman/hammer_cli_foreman_openscap/pull/5 added
Actions #6

Updated by Marek Hulán about 8 years ago

  • Target version changed from 1.5.3 to 1.5.0
Actions #7

Updated by Marek Hulán about 8 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF