Class DatadogAsserts

java.lang.Object
org.apache.beam.it.datadog.matchers.DatadogAsserts

public class DatadogAsserts extends Object
Assert utilities for Datadog tests.
  • Constructor Details

    • DatadogAsserts

      public DatadogAsserts()
  • Method Details

    • datadogEntriesToRecords

      public static List<Map<String,Object>> datadogEntriesToRecords(Collection<DatadogLogEntry> entries)
      Convert Datadog DatadogLogEntry to 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 a RecordsSubject to assert information within a list of records.
      Parameters:
      entries - List of DatadogLogEntrys in Datadog DatadogLogEntry format to use in the comparison.
      Returns:
      Truth Subject to chain assertions.