Skip to main content
Testkube 2.16.0 is out! Skills for AI Agents and Test Bundles, evals for AI Agents, A2A access, and much more! Read More

Basic Curl Example

Below is a basic workflow for executing a Curl command. You can paste this directly into the YAML of an existing or new test, just make sure to update the name and namespace for your environment if needed.

  • the spec.steps property defines a single step that runs the curl command.
Curl Workflow
apiVersion: testworkflows.testkube.io/v1
kind: TestWorkflow
metadata:
name: curl-sample
namespace: testkube
labels:
docs: example
spec:
steps:
- name: Run curl
container:
image: curlimages/curl:8.7.1
shell: curl https://testkube.io

After execution, you can see the output from the executions under the executions panel tabs:

The log output from the Curl execution:

Curl Log Output