Sign inSign up

specmatic/specmatic-redis

By specmatic

Updated 8 months ago

Image
API management
Developer tools
0

1.9K

specmatic/specmatic-redis repository overview

Specmatic Redis

specmatic-redis facilitates mocking calls to a redis server, offering all the power of contract-driven development using advanced no-code capabilities to confidently develop and independently deploy your Microservices and Microfrontends faster. The module has a default license that will allow you to experiment with all features to a limited extent. For license related details please reach out to us here

Quick Start Commands
1. Running Specmatic Contract Tests
docker run -d --rm \
-p 6379:6379 \
-v "$(pwd)/test/data:/app/data" \
specmatic/specmatic-redis --data /app/data

You can set expectations in the data folder. The data folder should contain json files in the following format:

    {
    "http-request": {
        "method": "POST",
        "path": "/redis",
        "body": {
            "operation": "get",
            "params": ["my_key"]
        }
    },
    "http-response": {
        "status": 200,
        "body": {
            "type": "string",
            "value": "HELLO"
        }
    }
}

NOTE: The operation value must be in lowercase.

Please refer to Specmatic Redis documentation for more details.

Sample project to see full usage

Order BFF FastApi Application

Context

In a complex, interdependent ecosystem, where each service is evolving rapidly, we want to make the dependencies between them explicit in the form of executable contracts. Contract Driven Development leverages API specifications like OpenAPI, AsyncAPI, GraphQL SDL files, gRPC Proto files, etc. as executable contracts allowing teams to get instantaneous feedback while making changes to avoid accidental breakage.

With this ability, we can now independently deploy, at will, any service at any time without having to depend on expensive and fragile integration tests.

Learn more at specmatic.io 🌐

Specmatic - Contract Driven Development

YouTube playlist 📺

Tag summary

Content type

Image

Digest

sha256:01ee0f25a

Size

122.9 MB

Last updated

8 months ago

docker pull specmatic/specmatic-redis