Integration Tests with Keycloak & Testcontainers (& Quarkus) | Niko Köbler (@dasniko)

How to do proper unit and integration testing (and NOT integrated tests) of your Keycloak based application with the help of Testcontainers and the testcontainers-keycloak project. 0:00 - Intro 0:25 - Integrated Tests vs. Integration Tests 6:08 - Testcontainers 7:42 - Testcontainers-Keycloak project 11:44 - Simple JUnit example with a Keycloak Testcontainer 15:10 - Testing a Quarkus (or Spring) app/service with a Keycloak Testcontainer (with application context!) 23:45 - Conclusion #Keycloak #Testcontainers #Quarkus Links of all mentioned videos, projects and blog posts: 🎯 Testcontainers: https://www.testcontainers.org 🎯 Testcontainers-Keycloak: https://github.com/dasniko/testcontai... 🎯 Video about Testcontainers with Kevin Wittek (  / kiview):      • Integration Testing with Docker and Testco...   🎯 The used Quarkus application, secured with Keycloak:    • Quarkus & Keycloak Authentication - How to...   🎯 The GitHub repository to this service, including the testcontainers-keycloak tests: https://github.com/dasniko/quarkus-ke... 🎯 Blog post of J.B. Rainsberger - Integrated Test are a Scam: https://blog.thecodewhisperer.com/per... 🎯 Blog post of Spotify about their testing: https://engineering.atspotify.com/201... 🎯 Quarkus tests with @QuarkusTestResource: https://quarkus.io/guides/getting-sta... 🎯 Spring (Boot) tests with @ContextConfiguration: https://docs.spring.io/spring-framewo... and https://docs.spring.io/spring-framewo... 🎯 Sponsor me: https://paypal.me/dasniko Don't forget to subscribe to my channel (if not already done) and give this video some thumbs up 👍 (aka "like"). Tell me about your experiences and in the comments. I'm looking forward to it! Thank YOU! --- I'm Niko - and I'm an independant freelance software consultant, developer and trainer. I'm here to help - you, your team and your company. How can I support you? Just get in contact: 🌎 Website: https://www.n-k.de 🐦 Twitter:   / dasniko   🚧 GitHub Profile: https://github.com/dasniko 🎥 YouTube Channel: https://www.youtube.com/c/NikoKöbler?... All things Cloud ☁️, Serverless, On-Premise, Java, JavaScript, All-End (Frontend, Backend, Fullstack Deployments), Authentication, Security 🔐, IAM, Keycloak, Containers, DevOps Please understand that Youtube is not a good place to get support in case of errors. There are forums out there which are the right place to ask!

Quarkus & Keycloak Authentication - How to join both worlds and secure your endpoints | @dasniko
▶︎

Quarkus & Keycloak Authentication - How to join both worlds and secure your endpoints | @dasniko

Testcontainers – From Zero to Hero. By @Marco Codes
▶︎

Testcontainers – From Zero to Hero. By @Marco Codes

Quarkus Funqy Serverless API - Introduction and Features | Niko Köbler (@dasniko)
▶︎

Quarkus Funqy Serverless API - Introduction and Features | Niko Köbler (@dasniko)

Spring Boot Testcontainers - Integration Testing made easy!
▶︎

Spring Boot Testcontainers - Integration Testing made easy!

#KEYCLOAK DevDay 2026: Replacing Keycloak's Infinispan Caches with Redis/Valkey
▶︎

#KEYCLOAK DevDay 2026: Replacing Keycloak's Infinispan Caches with Redis/Valkey

Effective Developer Workflows With Quarkus
▶︎

Effective Developer Workflows With Quarkus

Zig 2026: No-AI Policy, $670K Foundation, Left GitHub & Why Zig Isn’t 1.0 - Andrew Kelley Explains
▶︎

Zig 2026: No-AI Policy, $670K Foundation, Left GitHub & Why Zig Isn’t 1.0 - Andrew Kelley Explains

KEYCLOAK Upgrading and Migration - Frequently Asked Questions | Niko Köbler (@dasniko)
▶︎

KEYCLOAK Upgrading and Migration - Frequently Asked Questions | Niko Köbler (@dasniko)

Effective Test Execution With Quarkus
▶︎

Effective Test Execution With Quarkus

KEYCLOAK with HTTPS & mutual TLS / X.509 authentication | Niko Köbler (@dasniko)
▶︎

KEYCLOAK with HTTPS & mutual TLS / X.509 authentication | Niko Köbler (@dasniko)

Testcontainers have forever changed the way I write tests
▶︎

Testcontainers have forever changed the way I write tests

KEYCLOAK Home IdP Discovery (w/ Sven-Torben Janus) | Niko Köbler (@dasniko)
▶︎

KEYCLOAK Home IdP Discovery (w/ Sven-Torben Janus) | Niko Köbler (@dasniko)

God Says:"TAKE THIS MESSAGE SERIOUSLY, BECAUSE ONLY YOU ARE SEEING IT"/God Message Now/God Message
▶︎

God Says:"TAKE THIS MESSAGE SERIOUSLY, BECAUSE ONLY YOU ARE SEEING IT"/God Message Now/God Message

#KEYCLOAK #Organizations - Multi Tenancy in 1 Realm | Niko Köbler (@dasniko)
▶︎

#KEYCLOAK #Organizations - Multi Tenancy in 1 Realm | Niko Köbler (@dasniko)

How to secure your Microservices with Keycloak - Thomas Darimont
▶︎

How to secure your Microservices with Keycloak - Thomas Darimont

How to test your code with Testcontainers in Go | Julien Breux | Conf42 Golang 2024
▶︎

How to test your code with Testcontainers in Go | Julien Breux | Conf42 Golang 2024

KEYCLOAK - Implementing Custom REST Resources (endpoints) | Niko Köbler (@dasniko)
▶︎

KEYCLOAK - Implementing Custom REST Resources (endpoints) | Niko Köbler (@dasniko)

Java Testing Made Easy : Integration Testing using Testcontainers
▶︎

Java Testing Made Easy : Integration Testing using Testcontainers

How to Build Your First Spring Boot App (Theory Explained)
▶︎

How to Build Your First Spring Boot App (Theory Explained)

7 Awesome Libraries for Java Unit & Integration Testing
▶︎

7 Awesome Libraries for Java Unit & Integration Testing