testkube-executor-curl

module
v0.5.22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2021 License: MIT

README

████████ ███████ ███████ ████████ ██   ██ ██    ██ ██████  ███████ 
   ██    ██      ██         ██    ██  ██  ██    ██ ██   ██ ██      
   ██    █████   ███████    ██    █████   ██    ██ ██████  █████   
   ██    ██           ██    ██    ██  ██  ██    ██ ██   ██ ██      
   ██    ███████ ███████    ██    ██   ██  ██████  ██████  ███████ 
                                           /tɛst kjub/ by Kubeshop

                    EXECUTOR CURL

Welcome to testkube Executor Curl

testkube Executor Curl is the test executor for testkube that is using Curl.

Issues and enchancements

Please follow to main testkube repository for reporting any issues or discussions

Details

Curl executor is a very simple one, it runs a curl command given as the input and check the response for expected status and body, the input is of form

{
  "command": [
    "curl",
    "https://reqbin.com/echo/get/json",
    "-H",
    "'Accept: application/json'"
  ],
  "expected_status": 200,
  "expected_body": "{\"success\":\"true\"}"
}

the executor will check if the response has expected_status and if body of the response contains the expected_body.

The type of the test CRD should be curl/test.

API

testkube Executor Curl implements testkube OpenAPI for executors (look at executor tag)

Directories

Path Synopsis
cmd
internal
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL