Skip to content

[FEATURE] Improve test coverage #272

@david-garcia-garcia

Description

@david-garcia-garcia

Is your feature request related to a problem? Please describe. 🐛

Add e2e test coverage to the project. Unit tests in GO are OK but nothing more robust than full e2e test coverage to ensure that not only the middleware works, but that it does so when consumed from within Traefik itself (plus there are things that you can only test when integrated with Traefik itself such as log output and the interaction with Traefik or Crowdsec).

This also allows us to test Traefik/Crowdsec version upgrades to detect breaking changes in components we depend on.

Describe the solution you'd like

Something that is cross platform and easy to run locally that spins up a fully working traefik+crowdsec environment to test things like:

  • Access logs and headers
  • Adding/Removing decisions to crowdsec and these becoming effectively banned by the middleware

Additional context

This is in preparation for some upcoming PR's to ensure nothing breaks (plus some of them rely on this kind of test coverage).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions