MCPcopy
hub / github.com/slimtoolkit/slim / AssertSensorLogsContain

Method AssertSensorLogsContain

pkg/test/e2e/sensor/sensor.go:669–680  ·  view source on GitHub ↗
(t *testing.T, ctx context.Context, what ...string)

Source from the content-addressed store, hash-verified

667}
668
669func (s *Sensor) AssertSensorLogsContain(t *testing.T, ctx context.Context, what ...string) {
670 if len(s.contID) == 0 {
671 t.Fatal("Test sensor container hasn't been started yet")
672 }
673
674 contLogs := s.SensorLogsOrFail(t, ctx)
675 for _, w := range what {
676 if strings.Index(contLogs, w) == -1 {
677 t.Errorf("Cannot find string %q in sensor logs", w)
678 }
679 }
680}
681
682func (s *Sensor) AssertTargetAppLogsContain(t *testing.T, ctx context.Context, what ...string) {
683 if len(s.contID) == 0 {

Calls 1

SensorLogsOrFailMethod · 0.95