8000 GitHub - irving-caamal/blaezi: blaezi is a super-lightweight smoke testing tool with zero dependencies, written purely in Go. 🔥
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

blaezi is a super-lightweight smoke testing tool with zero dependencies, written purely in Go. 🔥

License

Notifications You must be signed in to change notification settings

irving-caamal/blaezi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔥 blaezi

blaezi is a super-lightweight smoke testing tool with zero dependencies, written purely in Go.

blaezi can perform smoke tests on endpoints specified by the user. blaezi also has the ability to check the content of the endpoint.

🔥 You can see blaezi in action here.

Installation

  • Using GitHub Actions:
  • Using releases:
  • Using source code:
    • You can clone the repo and run go run main.go for testing blaezi:
    • git clone https://github.com/burntcarrot/blaezi && cd blaezi
    • go run main.go
  • Docker:
    • Docker support coming soon.

Usage

Usage of ./blaezi:
  -auth string
        Authorization string.
  -secure
        Secure connection.
  -tests string
        Complete path to the tests file. (default "test.json")
  -timeout int
        Timeout for client. (default 5)

Tests:

A test can be specified using JSON. url, status_code and method are necessary, content, request_body are optional.

Here is a sample test:

[
  {
    "url": "/",
    "status_code": 200,
    "content": "Hello",
    "method": "GET"
  },
  {
    "url": "/posts",
    "status_code": 200,
    "content": "Hello",
    "method": "GET"
  },
  {
    "url": "/posts",
    "status_code": 200,
    "content": "Hello",
    "method": "POST",
    "request_body": "{\"id\": 1, \"title\": \"H\", \"text\": \"Hello\"}"
  },
  {
    "url": "/nonexistent",
    "status_code": 404
  }
]

Example

With the test specified above we can run blaezi like:

./blaezi http://localhost:8080 -tests test.json

If you want to specify a timeout for 10 seconds, you can do so by:

./blaezi http://localhost:8080 -tests test.json -timeout 10

Acknowledgements:

Some parts of blaezi were inspired by vape.

blaezi is rewritten from scratch and aims to add additional features on top of vape. (Spoiler: blaezi currently provides some features like GitHub integration, etc.)

About

blaezi is a super-lightweight smoke testing tool with zero dependencies, written purely in Go. 🔥

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

0