Skip to content

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.

Notifications You must be signed in to change notification settings

jdnielss/go-pod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published