TestKube Executor eample is simple test which checks if GET
request for URI returns 200 OK
status - it's purpose was for showing how to extend testkube with custom executor.
Executor is nothing more than program wrapped into Docker container which gets json (testube.Execution) OpenAPI based document, and returns stream of json output lines (testkube.ExecutorOutput) - each output line is simply wrapped in this JSON, like in structured logging idea.
Please follow to main TestKube repository for reporting any issues or discussions
-
Build and push dockerfile to some repository
-
Register Executor Custom Resource in your cluster
apiVersion: executor.testkube.io/v1
kind: Executor
metadata:
name: example-executor
namespace: testkube
spec:
executor_type: job
image: kubeshop/testkube-example-executor:0.0.1 # pass your repository and tag
types:
- example/test
volume_mount_path: /mnt/artifacts-storage
volume_quantity: 10Gix
Set up volumes as in following example if you want to use artifacts storage (can be downloaded later in dashboard or by kubectl testkube
plugin)
- Executor template - was used to create this example
- Postman executor
- Cypress executor
- Curl executor