jdnielss / go-pod

This Go application facilitates API testing using YAML-configured contracts. It interacts with specified APIs, verifying responses against expected content, and provides clear pass/fail feedback.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This image generate by AI

go-pod

A simple application to write and run smoke tests for RESTful APIs.

Installation

Prerequisites

  • Go installed on your machine.

Steps

  1. Clone the repository:

    git clone https://github.com/jdnielss/go-pod.git
  2. Navigate to the project directory:

    cd go-pod
  3. Navigate to the project directory:

    go mod tidy
  4. Build the project:

    make build

Running

The most convenient way of running this code, especially in a CI environment, is to use the docker image jdnielss/pod

docker run --rm -v "$(pwd)":/test jdnielss/pod -f /test/config.yaml -h http://{YOUR_URL}

Usage

Explain how to use your project. Provide examples if applicable.

./pod -f config.yaml -h http://localhost:8080
  • -f flag: Path to the YAML config file.
  • -h flag: Base URL of the API.

Configuration

Describe the configuration options and how to customize them.

Contributing

If you'd like to contribute to this project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/yourfeature).
  3. Make your changes.
  4. Commit your changes (git commit -am 'Add some feature').
  5. Push to the branch (git push origin feature/yourfeature).
  6. Create a new Pull Request.

License

This project is licensed under the MIT License.

About

This Go application facilitates API testing using YAML-configured contracts. It interacts with specified APIs, verifying responses against expected content, and provides clear pass/fail feedback.


Languages

Language:Go 78.2%Language:Dockerfile 14.5%Language:Makefile 7.3%