Coder Social home page Coder Social logo

diplomat's Introduction

Welcome, friends.

Flip through the repositories. Chuckle at how eccentric my work has been. Say hello, maybe?

diplomat's People

Contributors

bannmoore avatar schoonology avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

amiel

diplomat's Issues

This library seems to violate Postel's Law

First, I want to say that this seems like a great attempt to fill a need, API testing has not received nearly enough attention and the language agnosticism and feature set are compelling. That being said, Postel's Law says "be conservative in what you do, be liberal in what you accept from others". I think the principle that diplomat adopts around strictness ("Strict by default: When something is not specified, the defaults should be as restrictive as possible, e.g. keys not specified in JSON entities are forbidden, rather than ignored.") violates Postel's law because it asserts that every test should care about every output rather then allowing an API to evolve over time to meet the demands of its consumers, which, if I'm understanding correctly, would require every API evolution to require a change in all the diplomat tests for that API.

Since I mostly work on internal APIs, I think Consumer driven contract tests are vastly superior to end-to-end API tests and Pact is my tool of choice, but if diplomat is meant to be useful for public APIs, then consumer-driven contract tests are not a good fit (and Pact doesn't have the feature set that diplomat does), but I still would be interested in your thoughts about the strictness requirement, in my experience the cost outweighs the benefits.

Spaces in Lua break request path

If you use > GET /users/{{ ctx.get("user_id") }}, you'll get > GET /users/%7B%7B instead of what you expect.

Workaround: Remove the spaces. > GET /users/{{ctx.get("user_id")}}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.