Class DatadogAsserts
java.lang.Object
org.apache.beam.it.datadog.matchers.DatadogAsserts
Assert utilities for Datadog tests.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.beam.it.truthmatchers.RecordsSubjectCreates aRecordsSubjectto assert information within a list of records.datadogEntriesToRecords(Collection<DatadogLogEntry> entries) Convert DatadogDatadogLogEntryto a list of maps.
-
Constructor Details
-
DatadogAsserts
public DatadogAsserts()
-
-
Method Details
-
datadogEntriesToRecords
Convert DatadogDatadogLogEntryto a list of maps.- Parameters:
entries- List of com.google.cloud.teleport.it.datadog.DatadogLogEntrys to parse- Returns:
- List of maps to use in
RecordsSubject
-
assertThatDatadogLogEntries
public static org.apache.beam.it.truthmatchers.RecordsSubject assertThatDatadogLogEntries(@Nullable Collection<DatadogLogEntry> entries) Creates aRecordsSubjectto assert information within a list of records.- Parameters:
entries- List of DatadogLogEntrys in DatadogDatadogLogEntryformat to use in the comparison.- Returns:
- Truth Subject to chain assertions.
-