Closed Bug 1178396 Opened 9 years ago Closed 7 years ago

Create a standalone (cli) plugin unit test exe

Categories

(Cloud Services Graveyard :: Metrics: Pipeline, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: trink, Assigned: trink)

References

Details

(Whiteboard: [rC] [unifiedTelemetry])

The tests should be specified as an array of test objects containing a descriptive name and an array of inputs and outputs (specified as Heka message tables). The inputs will all be passed to process_message and when complete the timer_event will be called and the outputs verified.  The tests will also be profiled showing the execution time, maximum memory, instructions, and output size.  

e.g.,
    {
        name = "string concatenation",
        inputs = {
            {ret = 0, msg = {Logger = "host1", Payload = "string1\n", Fields = {payload_type = "txt"}}},
            {ret = 0, msg = {Logger = "host2", Payload = "string2\n", Fields = {payload_type = "txt"}}},
        },
        outputs = {
            {Payload = "string1\nstring2\n", Fields = {payload_type = "txt"}},
        }
    },
Whiteboard: [rC] [unifiedTelemetry]
Still important but making it unassigned since I am not actively working on it (it will be delayed a week or two by higher priority tasks)
Assignee: mtrinkala → nobody
Iteration: --- → 43.1 - Aug 24
Assignee: nobody → mtrinkala
Iteration: 43.1 - Aug 24 → 43.2 - Sep 7
Priority: P1 → P2
Priority: P2 → P3
This is tracked in a github issue
https://github.com/mozilla-services/hindsight/issues/19
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
Product: Cloud Services → Cloud Services Graveyard
You need to log in before you can comment on or make changes to this bug.