Skip to content

Commit c7fe611

Browse files
committed
docs(STONEINTG-1065): docs for rerunning all ITS
Signed-off-by: Dheeraj<[email protected]>
1 parent 905f97c commit c7fe611

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

docs/modules/ROOT/pages/how-tos/testing/integration/rerunning.adoc

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,41 @@ See also xref:/how-tos/configuring/rerunning.adoc[Retriggering build pipelines].
1313
1414
.Procedure
1515

16-
. Identify the IntegrationTestScenario that needs to be rerun. For a given snapshot, you can only rerun one IntegrationTestScenario. The related snapshot can be found on the pipelineRun details page in the UI, as shown in the example below:
16+
- If you want to rerun *all* the IntegrationTestScenarios, directly go to step `3.a.`
17+
18+
. Identify the IntegrationTestScenario that needs to be rerun. For a given snapshot, if you like, you can only rerun one IntegrationTestScenario. The related snapshot can be found on the pipelineRun details page in the UI, as shown in the example below:
1719

1820
+
1921
image::snapshot.png[role="border" alt="IntegrationTestScenario Snapshot"]
2022

2123
. To rerun within the UI, click on the three vertical dots on the right side of the details page mentioned above. From the expanded menu, select "Rerun". Alternatively, follow the below steps to rerun via the CLI.
2224

23-
. Label the snapshot with `test.appstudio.openshift.io/run`, assigning the scenario name you wish to rerun as its value.
25+
. To rerun integration tests via CLI:
26+
27+
.. If you want to rerun all the IntegrationTestScenarios, label the snapshot with `test.appstudio.openshift.io/run`, assigning *all* as its value.
28+
29+
+
30+
[source]
31+
----
32+
$ kubectl label snapshot [snapshot name] test.appstudio.openshift.io/run=all
33+
----
34+
35+
+
36+
[NOTE]
37+
This will rerun all IntegrationTestScenarios, both optional and required, provided their context matches the Snapshot.
38+
39+
.. Or, if you just want to rerun a specific IntegrationTestScenario, label the snapshot with `test.appstudio.openshift.io/run`, assigning the scenario name you wish to rerun as its value.
2440

2541
+
2642
[source]
2743
----
2844
$ kubectl label snapshot [snapshot name] test.appstudio.openshift.io/run=[scenario name]
2945
----
3046

47+
+
48+
[NOTE]
49+
This will rerun the specified IntegrationTestScenario, regardless of whether its context matches the Snapshot.
50+
3151
. The tests are re-triggered automatically. Once they are re-triggered, the system removes the label, allowing you to apply a new label for a different scenario if you wish to test multiple scenarios.
3252

3353
+

0 commit comments

Comments
 (0)