<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Thanks, wasn't aware we have this.<br>
<br>
Marek<br>
<br>
On 19/11/15 14:17, Stian Thorgersen wrote:<br>
</div>
<blockquote
cite="mid:CAJgngAfkiRz=z4NkTeqC9Q4QV_v_nzH=bBeYZu-ikT9khcJH5w@mail.gmail.com"
type="cite">
<div dir="ltr">Actually you can also add those properties to
"<USER HOME DIR>/.keycloak-server.properties" as
KeycloakServer loads those at runtime.</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 19 November 2015 at 13:59, Marek
Posolda <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:mposolda@redhat.com" target="_blank">mposolda@redhat.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"><span class="">
<div>On 18/11/15 21:11, Stian Thorgersen wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>You need Mongo running on your machine first as
the embedded Mongo used for the testsuite is ran
from Maven.</div>
<div><br>
</div>
<div>Once you have Mongo running locally it's pretty
easy, edit (but don't commit the changes):</div>
<div><br>
</div>
testsuite/integration/src/test/resources/META-INF/keycloak-server.json<br>
<div><br>
</div>
<div>Change the providers to mongo. There are
default settings for Mongo already there and
should work as long as you have Mongo running
locally.</div>
<div><br>
</div>
<div>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.</div>
</div>
</blockquote>
</span> For me, it doesn't seem annoying. I just
copy/paste this line with properties when running any
test:<br>
<br>
-Dkeycloak.realm.provider=mongo
-Dkeycloak.user.provider=mongo
-Dkeycloak.userSessionPersister.provider=mongo
-Dkeycloak.eventsStore.provider=mongo
-Dkeycloak.connectionsMongo.db=keycloak -Dresources<br>
<br>
I also usually use this for KeycloakServer setup during
development.<span class="HOEnZb"><font color="#888888"><br>
<br>
Marek</font></span><span class=""><br>
<br>
<blockquote type="cite">
<div class="gmail_extra"><br>
<div class="gmail_quote">On 18 November 2015 at
17:28, Bill Burke <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:bburke@redhat.com"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:bburke@redhat.com">bburke@redhat.com</a></a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0
0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">Anybody know how to run
mongo backend with integration tests within<br>
Intellij?<br>
<span><font color="#888888"><br>
<br>
--<br>
Bill Burke<br>
JBoss, a division of Red Hat<br>
<a moz-do-not-send="true"
href="http://bill.burkecentral.com"
rel="noreferrer" target="_blank">http://bill.burkecentral.com</a><br>
<br>
<br>
_______________________________________________<br>
keycloak-dev mailing list<br>
<a moz-do-not-send="true"
href="mailto:keycloak-dev@lists.jboss.org"
target="_blank">keycloak-dev@lists.jboss.org</a><br>
<a moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/keycloak-dev"
rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a><br>
</font></span></blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
keycloak-dev mailing list
<a moz-do-not-send="true" href="mailto:keycloak-dev@lists.jboss.org" target="_blank">keycloak-dev@lists.jboss.org</a>
<a moz-do-not-send="true" href="https://lists.jboss.org/mailman/listinfo/keycloak-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a></pre>
</blockquote>
<br>
</span></div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>