diff --git a/pkg/testsuites/standard_suites.go b/pkg/testsuites/standard_suites.go index a8b7ca48b851..9ba49698eeff 100644 --- a/pkg/testsuites/standard_suites.go +++ b/pkg/testsuites/standard_suites.go @@ -462,6 +462,20 @@ var staticSuites = []ginkgo.TestSuite{ TestTimeout: 120 * time.Minute, ClusterStabilityDuringTest: ginkgo.Disruptive, }, + { + Name: "openshift/disruptive-longrunning", + Description: templates.LongDesc(` + Long-running disruptive test suite. Tests in this suite are disruptive (cause node reboots, + configuration changes, or cluster-wide disruptions) and take significant time to complete. + Multiple teams can use this suite for their long-running disruptive tests. + `), + Qualifiers: []string{ + `name.contains("[Suite:openshift/disruptive-longrunning")`, + }, + Parallelism: 1, + TestTimeout: 40 * time.Minute, + ClusterStabilityDuringTest: ginkgo.Disruptive, + }, } func withExcludedTestsFilter(baseExpr string) string { diff --git a/test/extended/node/README.md b/test/extended/node/README.md new file mode 100644 index 000000000000..a2e73761c19e --- /dev/null +++ b/test/extended/node/README.md @@ -0,0 +1,28 @@ +# Node E2E Tests + +## Running Long-Running Disruptive Tests + +The `openshift/disruptive-longrunning` suite is a general-purpose suite for long-running disruptive tests +across all teams. Node team tests are tagged with `[sig-node]` to identify them. + +To run the entire long-running disruptive test suite on a cluster manually, use the command: + +```bash +./openshift-tests run "openshift/disruptive-longrunning" --cluster-stability=Disruptive +``` + +To run only node-specific long-running disruptive tests: + +```bash +./openshift-tests run "openshift/disruptive-longrunning" --dry-run | grep "\[sig-node\]" | ./openshift-tests run -f - --cluster-stability=Disruptive +``` + +## Prerequisites + +- Make sure to set `oc` binary to match the cluster version +- Make sure to set the kubeconfig to point to a live OCP cluster + +## Important Notes + +- Note that dry-run option won't list the test as it does not connect to a live cluster +- Run `make update` if the test data is changed