Skip to content

JoseThen/checkup

Repository files navigation

Checkup

CLI to run simple health checks against endpoints

License: MIT


Example Usage :

checkup listen -e https://google.com # default code is 200
checkup listen -c 200 -e https://google.com
checkup listen --code 302 --endpoint https://potatoe.com/farm
checkup exam -f list.json
checkup exam --file list.yml
# Basic Authentication with env vars
# CU_USER=admin CU_PASS=pass
checkup listen -e http://localhost:8080 -a

Exam File Example :

Yaml

name: Test Name
endpoint: https://duckduckgo.com
tests:
  - code: 200
    paths:
      - /farm
      - /something
      - /else
  - code: 404
    paths:
      - /this
      - /not
      - /found
{
  "name": "Exam Name",
  "endpoint": "https://google.com",
  "tests": [
    {
      "code": 200,
      "paths": [
          "/farm",
          "/something",
          "/else"
      ]
    },
    {
      "code": 404,
        "paths": [
          "/this",
          "/not",
          "/found"
      ]
    }
  ]
}