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

Поделиться
HTML-код
  • Опубликовано: 6 ноя 2024

Комментарии • 27

  • @buildingphase9712
    @buildingphase9712 3 года назад +2

    So glad to have found your channel thank you for the content. Love from South Africa.

  • @idleherb
    @idleherb 3 года назад +1

    Thanks for creating the keycloak testcontainer and this tutorial, it helped me a lot!

  • @flaviocpontes
    @flaviocpontes 9 месяцев назад +1

    You have nyan progress bar! That's THE reason for using jetbrains IDEs

  • @raphaellutz2693
    @raphaellutz2693 Год назад +1

    lässig von dir, echt nice

  • @marcelsteffen4087
    @marcelsteffen4087 3 года назад +2

    Thank you for the video! This might be exactly what I need. We have a quite complex setup with keycloak planned, including CustomUserStorage SPI and a database per realm/tenant. Also the plan was to use Cucumber for IntegrationTests, so let's see if I get it t work with your TestContainer 😅

  • @danielcelentano2830
    @danielcelentano2830 2 года назад +1

    Great content!! Go on!

  • @iasminconstantin3825
    @iasminconstantin3825 2 года назад +1

    Is there a way, to do unit test for the created controllers for keycloak SPI?

  • @uriberma07
    @uriberma07 2 года назад

    Hi Niko, thanks for the video. I iam having some problems regarding the SimpleKeycloakTest. The test ist not Waiting for the container to start. How it works for you? For the resource test you are usint the QuarkusTestResourceLifeCyleManager but for the SimpleKeycloakTest you don't. I thank you so much in advance.

  • @TaniaKampana
    @TaniaKampana Год назад

    Does version 2.1.5 of the testcontainers keycloak support keycloak version 21.1.1? Thank you in advance.

  • @TaniaKampana
    @TaniaKampana Год назад

    If we have a fat jar (created with shadowJar), then into the withProviderLibsFrom should we place the absolute path for the created jar? Thank you in advance.

  • @SP-dw3ud
    @SP-dw3ud Год назад

    Where is the SimpleKeycloakTest in the code , I am trying to find it to read it but I cant.

    • @dasniko
      @dasniko  Год назад

      This class was never committed to the repo, sorry.

    • @SP-dw3ud
      @SP-dw3ud Год назад

      @@dasniko Is there a chance to update the repo and add it ?

    • @dasniko
      @dasniko  Год назад

      @@SP-dw3ud You can see the content of the class in the video. The video is >2 yrs old... if it's not on github, it's not there.

  • @lap125
    @lap125 3 года назад +1

    Hi, may I ask how did you add user john/john to your keycloak container?

    • @dasniko
      @dasniko  3 года назад

      The user is contained in the realm.json which I import during container startup. I exported it before from another Keycloak server.

    • @lap125
      @lap125 3 года назад

      @@dasniko Thank you very much for the answer. How did you export them if you dont mind me asking? Because if I try to export it through admin web site I cannot export my users, just client applications for the realm.

    • @dasniko
      @dasniko  3 года назад

      Reading the docs helps a lot, not just clicking blindly around: www.keycloak.org/docs/latest/server_admin/index.html#_export_import

    • @lap125
      @lap125 3 года назад

      Ok, thank you very much for your time and help.

    • @tsaiwenwen0304
      @tsaiwenwen0304 2 года назад

      @@lap125 Hi I also trying to export the customized users but not success yet. Did you export the users successfully?

  • @zottden4970
    @zottden4970 Год назад

    Hi friend, first of all nice video, do you know how can i mock keycloack security for my Java integrations test for my endpoints?? I have keycloak and all my test to my endpoints give me a 401 status, and i dont know how can i mock that.
    Greetings! thanks for all

    • @dasniko
      @dasniko  Год назад +1

      I don't mock Keycloak any more, I use the Keycloak Testcontainer and everything is properly set! That's what Keycloak Testcontainer is here for!

  • @AiwaLee
    @AiwaLee 3 года назад

    Thanks Niko! Is there support for Quarkus 2.0.0? I seem to get a
    [Exception 0] io.quarkus.runtime.configuration.ConfigurationException: OpenId Connect Provider configuration metadata is not configured and can not be discovered
    Any idea what might be off?

    • @dasniko
      @dasniko  3 года назад

      I didn't have a look into Quarkus 2.x so far, sorry.

  • @linhtan6237
    @linhtan6237 2 года назад

    thanks for channel, pls you can do about quarkus tutorial

    • @dasniko
      @dasniko  2 года назад

      There are enough good Quarkus channels out there...