client

command
v0.0.0-...-60a0bdb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package main implements a client application designed to interact with an HTTP server that simulates various HTTP errors. The client sends requests to test endpoints and configures error rates and response data sizes for each error code. It is primarily used for testing and validating server behaviour under different error conditions and response sizes.

The client supports configurable parameters for domain, namespace, and HTTP scheme, and it operates based on a test plan specified in a YAML file. This plan dictates the error conditions to simulate, including the error codes, error rates, and response sizes.

Upon execution, the client sets up the desired error rates and response sizes on the server using the provided configuration. It then sends requests according to the test plan, collecting data on the server's response to each request. This includes tracking the total number of requests, the actual versus expected error rates, and response times.

The application also supports graceful shutdown, allowing it to complete ongoing requests and compile results even when interrupted.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL