Adding Timeouts
warning
Features described in this document are being deprecated as part of the transition to Test Workflows - Read More.
- Dashboard
- CLI
- Custom Resource
Click on a Test > Settings > General > Timeout:
You can use the --timeout
with the number of second in all commands related to a test.
testkube update test --name my-test --timeout 10
Test updated testkube / curl 馃
Add the following field to your Test CRD:
executionRequest:
activeDeadlineSeconds: 10
A full CRD example here:
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}"