ParserTestCaseOutputAssertions is a datatype for assertions on the shape of a given test case output event.

This datatype is used by ParserTestCaseAssertionsForOutput, which is in turn used by ParserTestCase — which is used by both UnsavedParser and Parser.

Table: ParserTestCaseOutputAssertions

ParameterTypeRequiredDefaultStabilityDescription
Some input parameters may be required, as indicated in the Required column. For return values, this indicates that you are assured a value if the field is requested for the results.
Table last updated: Sep 27, 2024
fieldsHaveValues[FieldHasValue]yes Long-TermThe names of fields and their expected value on the output event. These are key-value pairs, and should be treated as a map-construct. See FieldHasValue.
fieldsNotPresent[string]yes Long-TermThe names of fields which should not be present on the output event.