[keycloak-dev] how are model tests run?
Stian Thorgersen
stian at redhat.com
Thu Jul 24 09:01:09 EDT 2014
----- Original Message -----
> From: "Bill Burke" <bburke at redhat.com>
> To: "Stian Thorgersen" <stian at redhat.com>
> Cc: keycloak-dev at lists.jboss.org
> Sent: Thursday, 24 July, 2014 1:55:10 PM
> Subject: Re: [keycloak-dev] how are model tests run?
>
> Cool! The tests still work?!? I was worried...
Only two things where broken, fixed now:
* Cache didn't check that app/client/roles belong to realm, so returned ById even though the realm wasn't correct
* AuthenticationManager.authenticateInternal didn't check password if totp was enabled, it only checked the totp. Pretty scary! I'm going to add an additional test to LoginTotpTest for this to be doubly sure in the future.
>
> On 7/24/2014 8:54 AM, Stian Thorgersen wrote:
> > audit/tests and model/tests have been moved to testsuite/integration
> >
> > These can be run through your IDE in the usual way with the default server
> > config (jpa realm/users and mem sessions). I found the easiest way to run
> > the tests with a specific model is to edit keycloak-server.json directly,
> > alternatively you can use system properties when running the tests (for
> > example -Dkeycloak.realm.provider=mongo).
> >
> > In addition to the default server config there's two maven profiles that
> > can be used to run with JPA (everything jpa, including sessions) or Mongo
> > (everything mongo):
> >
> > # mvn install -Pjpa
> >
> > or
> >
> > # mvn install -Pmongo
> >
> > ----- Original Message -----
> >> From: "Stian Thorgersen" <stian at redhat.com>
> >> To: "Bill Burke" <bburke at redhat.com>
> >> Cc: keycloak-dev at lists.jboss.org
> >> Sent: Wednesday, 23 July, 2014 4:16:11 PM
> >> Subject: Re: [keycloak-dev] how are model tests run?
> >>
> >> They're disabled by purpose at the moment.
> >>
> >> Due to the provider updates, and splitting the model, it was quite awkward
> >> to
> >> get them to work so the plan is to move them to testsuite. This has
> >> already
> >> been done to UserSessionProviderTest.
> >>
> >> I'll start moving the rest right away.
> >>
> >> ----- Original Message -----
> >>> From: "Bill Burke" <bburke at redhat.com>
> >>> To: keycloak-dev at lists.jboss.org
> >>> Sent: Wednesday, 23 July, 2014 3:40:26 PM
> >>> Subject: [keycloak-dev] how are model tests run?
> >>>
> >>> I don't see how/where the model tests are run or how to run them
> >>> individually in my IDE (intellij)
> >>> --
> >>> Bill Burke
> >>> JBoss, a division of Red Hat
> >>> http://bill.burkecentral.com
> >>> _______________________________________________
> >>> keycloak-dev mailing list
> >>> keycloak-dev at lists.jboss.org
> >>> https://lists.jboss.org/mailman/listinfo/keycloak-dev
> >>>
> >> _______________________________________________
> >> keycloak-dev mailing list
> >> keycloak-dev at lists.jboss.org
> >> https://lists.jboss.org/mailman/listinfo/keycloak-dev
> >>
>
> --
> Bill Burke
> JBoss, a division of Red Hat
> http://bill.burkecentral.com
>
More information about the keycloak-dev
mailing list