pub async fn assert_logs_eq_to_golden<'a>(
log_reader: &'a ArchiveReader,
comp: &'a dyn Component,
)
Expand description
Takes the logs for a single component and compares them to the appropriate golden file. The path
of the file is expected to match the template /pkg/data/goldens/{COMPONENT_NAME}.log.golden
.
The {COMPONENT_NAME} is itself generally a template of the form {TEST_NAME}_{COMPONENT_ROLE}
.
Thus, for the three-component test_foo_bar
, we expect the following golden logs to exist:
/pkg/data/goldens/test_foo_bar_client.log.golden /pkg/data/goldens/test_foo_bar_proxy.log.golden /pkg/data/goldens/test_foo_bar_server.log.golden