Skip to content

Commit 52cc813

Browse files
Merge pull request #1238 from DavidHurta/add-cvo-tests-to-conformance-suite
OTA-1585: Add conformance test suites to the CVO tests extension
2 parents 75c15b5 + 3736449 commit 52cc813

File tree

1 file changed

+17
-1
lines changed
  • cmd/cluster-version-operator-tests

1 file changed

+17
-1
lines changed

cmd/cluster-version-operator-tests/main.go

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,24 @@ func main() {
1717
registry := extension.NewRegistry()
1818
ext := extension.NewExtension("openshift", "payload", "cluster-version-operator")
1919

20+
// Parallel tests must be able to run alongside any other test, and not be disruptive to the cluster’s normal operation.
21+
// Tests should be as fast as possible; and less than 5 minutes in duration -- and typically much shorter.
22+
// Longer tests need approval from the OCP architects.
2023
ext.AddSuite(extension.Suite{
21-
Name: "cluster-version-operator",
24+
Name: "openshift/cluster-version-operator/conformance/parallel",
25+
Parents: []string{"openshift/conformance/parallel"},
26+
Qualifiers: []string{
27+
`!(name.contains("[Serial]") || name.contains("[Slow]"))`,
28+
},
29+
})
30+
31+
// Serial tests run in isolation, however they must return the cluster to its original state upon exiting.
32+
ext.AddSuite(extension.Suite{
33+
Name: "openshift/cluster-version-operator/conformance/serial",
34+
Parents: []string{"openshift/conformance/serial"},
35+
Qualifiers: []string{
36+
`name.contains("[Serial]")`,
37+
},
2238
})
2339

2440
specs, err := g.BuildExtensionTestSpecsFromOpenShiftGinkgoSuite()

0 commit comments

Comments
 (0)