integrationtest

command
v2.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

README

Integration testing

Preparation

  • Create valid ACME file ./acme.json

  • Start backends using docker

docker-compose -f integrationtest/docker-compose.yml up
  • Initialize backends
go run integrationtest/loader.go

Run certs dumper without watching

traefik-certs-dumper file

# http://localhost:8500/ui/
traefik-certs-dumper kv consul --endpoints localhost:8500

traefik-certs-dumper kv etcd --endpoints localhost:2379

traefik-certs-dumper kv boltdb --endpoints /tmp/test-traefik-certs-dumper.db

traefik-certs-dumper kv zookeeper --endpoints localhost:2181

Run certs dumper with watching

While watching is enabled, manipulate ./acme.json for file backend or run loader.go again for KV backends so that change events are triggered.

traefik-certs-dumper file --watch

traefik-certs-dumper kv consul --watch --endpoints localhost:8500

traefik-certs-dumper kv etcd --watch --endpoints localhost:2379

traefik-certs-dumper kv zookeeper --watch --endpoints localhost:2181

Cleanup

  • Stop backends
docker-compose -f integrationtest/docker-compose.yml down

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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