Skip to content

Commit

Permalink
Add Test Container
Browse files Browse the repository at this point in the history
  • Loading branch information
knoppiks committed Jan 7, 2025
1 parent 5954b70 commit c67aef0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test-util/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@
<version>3.10.0</version>
</dependency>

<dependency>
<groupId>com.github.dasniko</groupId>
<artifactId>testcontainers-keycloak</artifactId>
<version>3.4.0</version>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-yaml</artifactId>
Expand Down
12 changes: 12 additions & 0 deletions test-util/src/main/java/care/smith/fts/test/TestOAuth2Issuer.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package care.smith.fts.test;

import dasniko.testcontainers.keycloak.KeycloakContainer;
import org.springframework.boot.test.context.TestComponent;
import org.springframework.context.annotation.Profile;

@Profile("auth:oauth2")
@TestComponent
public class TestOAuth2Issuer {

KeycloakContainer keycloak = new KeycloakContainer();
}

0 comments on commit c67aef0

Please sign in to comment.