| 667 | } |
| 668 | |
| 669 | func (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 | |
| 682 | func (s *Sensor) AssertTargetAppLogsContain(t *testing.T, ctx context.Context, what ...string) { |
| 683 | if len(s.contID) == 0 { |