diff --git a/docs/docs/articles/adding-timeout.md b/docs/docs/articles/adding-timeout.md new file mode 100644 index 00000000000..34ed5a59cdd --- /dev/null +++ b/docs/docs/articles/adding-timeout.md @@ -0,0 +1,49 @@ +# Adding Timeouts to your Tests + + + + Click on a Test > Settings > General > Timout + + ![How to setup Test Timeout in Dashboard](../img/dashboard-timeout.png) + + + You can use the `--timemout` with the number of second in all commands related to a test. + + ```sh + testkube update test --name my-test --timeout 10 + ``` + ```sh title="Expected output:" + Test updated testkube / curl 🥇 + ``` + + + Add the following field to your Test CRD: + + ```yaml + executionRequest: + activeDeadlineSeconds: 10 + ``` + + A full CRD example here: + + ```yaml + apiVersion: tests.testkube.io/v3 + kind: Test + metadata: + name: my-test + namespace: testkube + labels: + executor: curl-executor + test-type: curl-test + spec: + type: curl/test + content: + executionRequest: + activeDeadlineSeconds: 50 + type: string + repository: + data: "{\n \"command\": [\n \"curl\",\n \"https://reqbin.com/echo/get/json\",\n \"-H\",\n \"'Accept: application/json'\"\n ],\n \"expected_status\": \"200\",\n \"expected_body\": \"{\\\"success\\\":\\\"true\\\"}\"\n}" + ``` + + + \ No newline at end of file diff --git a/docs/docs/img/dashboard-timeout.png b/docs/docs/img/dashboard-timeout.png new file mode 100644 index 00000000000..ff029a4e274 Binary files /dev/null and b/docs/docs/img/dashboard-timeout.png differ