validating_log_listener

Function validate_log_dump

Source
pub async fn validate_log_dump(
    expected: impl IntoIterator<Item = LogMessage>,
    proxy: LogProxy,
    filter_options: Option<LogFilterOptions>,
)
Expand description

Test that all of the expected message arrive over proxy after requesting a log dump, with no unexpected records appearing. Returns once all expected messages have been observed.

ยงPanics

Panics when validation fails due to an unexpected message, missing messages when the sink says it is done dumping, or due to connection failures.