MyGit

sky-shiny/smolder

Fork: 10 Star: 96 (更新于 2024-12-16 09:14:57)

license: BSD-3-Clause

Language: Python .

Simple rest smoke tests.

最后发布版本: 0.6.0 ( 2017-11-20 06:29:03)

官方网址 GitHub网址

Smolder

"Requests for humans." :) Build Status

The prevalence of SOA, microservices and dev/stage/live environment build processes precipitated the development of smolder. The challenges these technologies pose requires the use of restful api tests which are simple and repeatable on different endpoints without modifying the tests or the endpoints. A lot of these environments require agents running the tests to be inside the network boundary and running inside internal build pipelines.

Smolder aims to solve these problems by providing features such as:

  • Smoke test your rest API.
  • Validate response times.
  • Validate redirects.
  • Validate ssl certificates.
  • Validate headers.
  • Validate json object types using validictory
  • Write plugins using Yapsy
  • More

Example

Copy/paste the following into your shell:

echo "---
tests:
  -
    name: "Github Status"
    outcomes:
      expect_status_code: 301
      response_redirect: "https://status.github.com/api/status.json"
    inputs:
      headers:
        User-Agent: "Smolder smoke test library"
    uri: /api/status.json
  -
    inputs:
      headers:
        User-Agent: "Smolder smoke test library"
    name: "Github Status ssl"
    outcomes:
      response_json_contains:
        status: good
      response_max_time_ms: 200
    port: 443
    protocol: https
    uri: /api/status.json
" | docker run -i mcameron/smolder status.github.com 

Expected Output: Output

Installation

pip install git+https://github.com/sky-shiny/smolder.git

Documentation

readthedocs

  1. tests
  2. plugins
  3. examples
  4. contributing
  5. history

Similar Projects

  1. Runscope
  2. vrest.io
  3. Stackoverflow

Thanks

https://github.com/njsaunders

https://github.com/nielsdraaisma

https://github.com/lotia

https://github.com/casibbald

最近版本更新:(数据更新于 2024-09-02 21:35:50)

2017-11-20 06:29:03 0.6.0

2016-02-04 22:07:24 0.5.9

2015-12-30 22:22:04 0.1.2

2015-12-30 22:20:40 0.4.0-beta

2015-10-09 23:53:29 0.2.3

sky-shiny/smolder同语言 Python最近更新仓库

2024-12-22 18:18:34 LeslieLeung/heimdallr

2024-12-22 09:03:32 ultralytics/ultralytics

2024-12-21 13:26:40 notepad-plus-plus/nppPluginList

2024-12-21 11:42:53 XiaoMi/ha_xiaomi_home

2024-12-21 04:33:22 comfyanonymous/ComfyUI

2024-12-20 18:47:56 home-assistant/core