User story #4201
closedUser story #4199: Addition of "Technique with values" in Rudder - ncf integration
Adapt expected reports generation to use provided expected report CSV template
Description
For new Technique, we provide a template of expected reports in the mean of a CSV file.
That file miss generation-time information, like Rule UUID and serial, and Directive UUID. So the expected report build process need to be adapt to parse the CSV template, update missing information, and write the resulting files at the expected place.
TODO:
- define the CSV template name, and its place (=> expected_report_template.csv)
- define the tag name to be replace for serial, rule UUID, directive UUID (=>
@RUDDER_ID
@ ) - define the final CSV path (=> expected_report.csv)
Note: the written CSV must retain all information contained in the source template CSV, especially comments (line starting with #) or headers, if provided.
Updated by François ARMAND about 11 years ago
- Assignee set to Nicolas CHARLES
Nico, I belevieve you already worked on that?
Updated by Nicolas CHARLES about 11 years ago
yeah, but it was on a list of string and not an exact representation of a csv, not with tags (and even less 3 tags as we don't have the rule/directive concepts in cf-clerk)
And all objects are not the final one
The code is there :
https://github.com/ncharles/cf-clerk/tree/ncf
Updated by Nicolas CHARLES about 11 years ago
- Status changed from 8 to In progress
Updated by Nicolas CHARLES about 11 years ago
- Status changed from In progress to 8
actually, it wasn't on this one I was working on
Updated by Nicolas CHARLES about 11 years ago
The source file should be in the same folder as the metadata.xml, with the name reports.csv
The tag to replace is RUDDER_ID
since we cannot have the split of rule/directive/serial in cfclerk (it doesn't have any meaning there)
the final csv file will be in the root of the directory with the promises (effectively, /var/rudder/cfengine-community/inputs once the promises are copied), with the name reports.csv
Updated by Nicolas CHARLES about 11 years ago
- Status changed from 8 to 10
- Pull Request set to https://github.com/Normation/cf-clerk/pull/27
Updated by Nicolas CHARLES about 11 years ago
PR updated
The tag name is @RUDDER_ID
@
The source name for the csv is expected_reports.csv
The destination file générated by rudder is rudder_expected_reports.csv
Updated by François ARMAND about 11 years ago
- Description updated (diff)
- Pull Request changed from https://github.com/Normation/cf-clerk/pull/27 to https://github.com/Normation/cf-clerk/pull/28
Updated by Nicolas CHARLES about 11 years ago
- Status changed from 10 to Pending release
- % Done changed from 0 to 100
Applied in changeset clerk:commit:4c83a417a4de6f5f48773b2a1b87a4a934b8a9aa.
Updated by Vincent MEMBRÉ about 11 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 2.9.0~rc1, which was released on Friday 13/12/2013.
Check out:
- The release announcement: http://www.rudder-project.org/pipermail/rudder-announce/2013-December/000065.html
- The full ChangeLog: http://www.rudder-project.org/foswiki/bin/view/System/Documentation:ChangeLog29
- Download information: https://www.rudder-project.org/site/get-rudder/downloads/
Updated by Benoît PECCATTE over 9 years ago
- Tracker changed from Enhancement to User story