Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juan-medina/drheader-junit-test-containers
Using DrHeader in JUnit test with TestContainers
https://github.com/juan-medina/drheader-junit-test-containers
java junit junit5 security security-tools test-containers web-flux
Last synced: about 2 months ago
JSON representation
Using DrHeader in JUnit test with TestContainers
- Host: GitHub
- URL: https://github.com/juan-medina/drheader-junit-test-containers
- Owner: juan-medina
- Created: 2020-04-23T21:32:37.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-04-27T07:36:48.000Z (over 4 years ago)
- Last Synced: 2024-10-11T16:11:33.562Z (3 months ago)
- Topics: java, junit, junit5, security, security-tools, test-containers, web-flux
- Language: Java
- Size: 54.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## drHEADer JUnit tests with Test Containers
This is an example about how to run [Santander Security Research drHEADer](https://github.com/Santandersecurityresearch/DrHeader) analysis tools as a JUnit test
that could run in your development IDE before committing any code.Because it uses [TestContainers](https://www.testcontainers.org/) you need to have installed and configure your docker client.
For this example we have created a basic [Spring WebFlux](https://spring.io/reactive) application with a static resource and [Spring Security](https://spring.io/projects/spring-security) setup
accordingly.To run this just do :
```shell script
$ ./mvnw clean test
```
The first time that you run this test it may take longer since it need to pull the base images from the docker registry.If you like to review the test, you could do it [here](src/test/java/com/medina/juan/drheaderjunittestcontainers/DrTests.java).