Skip to content

Simple connectivity testing tool for mocking an application to put in infrastructure tests

License

Notifications You must be signed in to change notification settings

UKHomeOffice/dq-connectivity-tester

Repository files navigation

Connectivity Tester

Docker Repository on Quay GitHub issues GitHub forks GitHub stars GitHub license

Simple app written in golang that can be used to test network connectivity, useful when mocking up an infrastructure

We've packaged it in a few ways to make running it easy and quick to get going:

Usage

It is configured with environment variables for example:

CHECK_self=127.0.0.1:80
CHECK_google=google.com:80
CHECK_googletls=google.com:443
LISTEN_http=0.0.0.0:80
LISTEN_httpagain=0.0.0.0:8088

It serves http on any port you specify to listen on, which returns a simple text result of the checks. If any of the checks fail it will return a 500 so you could write some simple healthcheck thing to assert your whole.

If you use one of the AMIs then you specify this in the Instance User Data

Also if you use the AMI and add a with "Action": "cloudwatch:PutMetricData", then you should see the results reported in AWS CloudWatch

TO DO:

(Pull Requests welcome)

  • Windows AMI build - partial, work in feature/packer-ansible-windows
  • Example Kubernetes config
  • Example Terraform config
  • Mac x64 binary
  • Windows x64 binary
  • Linux x64 binary
  • Docker Image published to quay
  • CI pipeline

About

Simple connectivity testing tool for mocking an application to put in infrastructure tests

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published