[keycloak-dev] mongo from Intellij?
Marek Posolda
mposolda at redhat.com
Thu Nov 19 08:49:03 EST 2015
I just have mongo running locally on my laptop and using that for
development. Once you have mongo installed, you run command "mongod" and
you're done.
The maven "mongo" profile is using the embedded Mongo executed on port
27018 to not clash with the default mongod running on 27017 . That
allows to run mongo testsuite from maven on laptops, which don't have
mongo installed.
Marek
On 19/11/15 14:18, Stian Thorgersen wrote:
> No, but I think it should be relatively easy to run the embedded Mongo
> from Maven
>
> On 19 November 2015 at 14:17, Bill Burke <bburke at redhat.com
> <mailto:bburke at redhat.com>> wrote:
>
> We have some script to run Mongo?
>
> On 11/19/2015 7:59 AM, Marek Posolda wrote:
>
> On 18/11/15 21:11, Stian Thorgersen wrote:
>
> You need Mongo running on your machine first as the
> embedded Mongo
> used for the testsuite is ran from Maven.
>
> Once you have Mongo running locally it's pretty easy, edit
> (but don't
> commit the changes):
>
> testsuite/integration/src/test/resources/META-INF/keycloak-server.json
>
> Change the providers to mongo. There are default settings
> for Mongo
> already there and should work as long as you have Mongo
> running locally.
>
> I find it easier to just change the keycloak-server.json
> directly, but
> you can also use system properties to set the providers,
> but that's
> pretty annoying to do when your running tests from IntelliJ.
>
> For me, it doesn't seem annoying. I just copy/paste this line with
> properties when running any test:
>
> -Dkeycloak.realm.provider=mongo -Dkeycloak.user.provider=mongo
> -Dkeycloak.userSessionPersister.provider=mongo
> -Dkeycloak.eventsStore.provider=mongo
> -Dkeycloak.connectionsMongo.db=keycloak -Dresources
>
> I also usually use this for KeycloakServer setup during
> development.
>
> Marek
>
>
> On 18 November 2015 at 17:28, Bill Burke
> <bburke at redhat.com <mailto:bburke at redhat.com>
> <mailto:bburke at redhat.com <mailto:bburke at redhat.com>>> wrote:
>
> Anybody know how to run mongo backend with integration
> tests within
> Intellij?
>
>
> --
> Bill Burke
> JBoss, a division of Red Hat
> http://bill.burkecentral.com
>
>
> _______________________________________________
> keycloak-dev mailing list
> keycloak-dev at lists.jboss.org
> <mailto:keycloak-dev at lists.jboss.org>
> <mailto:keycloak-dev at lists.jboss.org
> <mailto:keycloak-dev at lists.jboss.org>>
> https://lists.jboss.org/mailman/listinfo/keycloak-dev
>
>
>
>
> _______________________________________________
> keycloak-dev mailing list
> keycloak-dev at lists.jboss.org
> <mailto: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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-dev/attachments/20151119/798d9eb6/attachment-0001.html
More information about the keycloak-dev
mailing list