Skip to content

Commit

Permalink
Check if insights operator records log file
Browse files Browse the repository at this point in the history
  • Loading branch information
psimovec committed Aug 11, 2020
1 parent d1fc4df commit a34cbf1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/integration/bugs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ func latestArchiveContainsConfigMaps(t *testing.T) {
}

func TestArchiveContains(t *testing.T) {
logFilePattern := `config/pod/openshift-monitoring/logs/.*\.log`
//https://bugzilla.redhat.com/show_bug.cgi?id=1825756
t.Run("ConfigMaps", latestArchiveContainsConfigMaps)

Expand All @@ -181,13 +182,14 @@ func TestArchiveContains(t *testing.T) {

defer ChangeReportTimeInterval(t, 1)()
defer degradeOperatorMonitoring(t)()
checkPodsLogs(t, clientset, `Wrote \d+ records to disk in \d+`, true)
checkPodsLogs(t, clientset, `Recording ` + logFilePattern, true)
checkPodsLogs(t, clientset, `.*Wrote \d+ records to disk in \d+`, true)

//https://bugzilla.redhat.com/show_bug.cgi?id=1838973
t.Run("Logs",
genLatestArchiveCheckPattern(
"log", matchingFileExists,
`^config/pod/openshift-monitoring/logs/.*\.log$`))
"^" + logFilePattern + "$"))

//https://bugzilla.redhat.com/show_bug.cgi?id=1767719
t.Run("Event",
Expand Down

0 comments on commit a34cbf1

Please sign in to comment.