Skip to content

Commit

Permalink
automate TestArchiveContains::HostsSubnet,MachineSet,SnapshotsCRD
Browse files Browse the repository at this point in the history
  • Loading branch information
psimovec committed Sep 25, 2020
1 parent 7243e14 commit 872e615
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions test/integration/bugs_test.go
Expand Up @@ -192,7 +192,25 @@ func TestArchiveContains(t *testing.T) {
t.Run("ImageRegistry",
genLatestArchiveCheckPattern(
"image registry", matchingFileExists,
`^config/imageregistry.json$`))
`^config/imageregistry\.json$`))

//https://bugzilla.redhat.com/show_bug.cgi?id=1879068
t.Run("HostsSubnet",
genLatestArchiveCheckPattern(
"hosts subnet", matchingFileExists,
`^config/hostsubnet/ip-.*\.json$`))

//https://bugzilla.redhat.com/show_bug.cgi?id=1881816
t.Run("MachineSet",
genLatestArchiveCheckPattern(
"machine set", matchingFileExists,
`^machinesets/.*\.json$`))

//https://bugzilla.redhat.com/show_bug.cgi?id=1873101
t.Run("SnapshotsCRD",
genLatestArchiveCheckPattern(
"snapshots CRD", matchingFileExists,
`^config/crd/volumesnapshots\.snapshot\.storage\.k8s\.io\.json$`))

defer ChangeReportTimeInterval(t, 1)()
defer degradeOperatorMonitoring(t)()
Expand All @@ -209,7 +227,7 @@ func TestArchiveContains(t *testing.T) {
t.Run("Event",
genLatestArchiveCheckPattern(
"event", matchingFileExists,
`^events/openshift-monitoring.json$`))
`^events/openshift-monitoring\.json$`))

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

0 comments on commit 872e615

Please sign in to comment.