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: www.testcontainers.org
🎯 Testcontainers-Keycloak: github.com/dasniko/testcontai...
🎯 Video about Testcontainers with Kevin Wittek ( / kiview): • Integration Testing wi...
🎯 The used Quarkus application, secured with Keycloak: • Quarkus & Keycloak Aut...
🎯 The GitHub repository to this service, including the testcontainers-keycloak tests: github.com/dasniko/quarkus-ke...
🎯 Blog post of J.B. Rainsberger - Integrated Test are a Scam: blog.thecodewhisperer.com/per...
🎯 Blog post of Spotify about their testing: engineering.atspotify.com/201...
🎯 Quarkus tests with @QuarkusTestResource: quarkus.io/guides/getting-sta...
🎯 Spring (Boot) tests with @ContextConfiguration: docs.spring.io/spring-framewo... and docs.spring.io/spring-framewo...
🎯 Sponsor me: 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: www.n-k.de
🐦 Twitter: / dasniko
🚧 GitHub Profile: github.com/dasniko
🎥 KZitem Channel: kzitem.info?...
All things Cloud ☁️, Serverless, On-Premise, Java, JavaScript, All-End (Frontend, Backend, Fullstack Deployments), Authentication, Security 🔐, IAM, Keycloak, Containers, DevOps
Please understand that KZitem is not a good place to get support in case of errors. There are forums out there which are the right place to ask!
Негізгі бет Ғылым және технология Integration Tests with Keycloak & Testcontainers (& Quarkus) | Niko Köbler (@dasniko)
Пікірлер: 27