Skip to content

JoseThen/checkup

Repository files navigation

Checkup

CLI to run simple health checks against endpoints

License: MIT


Example Usage :

Note that we introduced styling from https://github.com/charmbracelet/lipgloss

Default usage with listen

Use with listen command Use with exam command Use with exam command

Passing a File with exam

Use with exam command

Local usage with environment variables
# 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"
      ]
    }
  ]
}