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 thecurl
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:
- Log Output
The log output from the Curl execution: