<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">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.<br>
      <br>
      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.<br>
      <br>
      Marek<br>
      <br>
      On 19/11/15 14:18, Stian Thorgersen wrote:<br>
    </div>
    <blockquote
cite="mid:CAJgngAcYNAnPYfzNfbb=BqNaRWqkBMm4UTw9wp1Ms6+mW1bjHw@mail.gmail.com"
      type="cite">
      <div dir="ltr">No, but I think it should be relatively easy to run
        the embedded Mongo from Maven</div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On 19 November 2015 at 14:17, Bill
          Burke <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">We have
            some script to run Mongo?<span class=""><br>
              <br>
              On 11/19/2015 7:59 AM, Marek Posolda wrote:<br>
            </span>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex"><span
                class="">
                On 18/11/15 21:11, Stian Thorgersen wrote:<br>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  You need Mongo running on your machine first as the
                  embedded Mongo<br>
                  used for the testsuite is ran from Maven.<br>
                  <br>
                  Once you have Mongo running locally it's pretty easy,
                  edit (but don't<br>
                  commit the changes):<br>
                  <br>
testsuite/integration/src/test/resources/META-INF/keycloak-server.json<br>
                  <br>
                  Change the providers to mongo. There are default
                  settings for Mongo<br>
                  already there and should work as long as you have
                  Mongo running locally.<br>
                  <br>
                  I find it easier to just change the
                  keycloak-server.json directly, but<br>
                  you can also use system properties to set the
                  providers, but that's<br>
                  pretty annoying to do when your running tests from
                  IntelliJ.<br>
                </blockquote>
                For me, it doesn't seem annoying. I just copy/paste this
                line with<br>
                properties when running any test:<br>
                <br>
                -Dkeycloak.realm.provider=mongo
                -Dkeycloak.user.provider=mongo<br>
                -Dkeycloak.userSessionPersister.provider=mongo<br>
                -Dkeycloak.eventsStore.provider=mongo<br>
                -Dkeycloak.connectionsMongo.db=keycloak -Dresources<br>
                <br>
                I also usually use this for KeycloakServer setup during
                development.<br>
                <br>
                Marek<br>
                <br>
              </span>
              <blockquote class="gmail_quote" style="margin:0 0 0
                .8ex;border-left:1px #ccc solid;padding-left:1ex"><span
                  class="">
                  <br>
                  On 18 November 2015 at 17:28, Bill Burke &lt;<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><br>
                </span><span class="">
                  &lt;mailto:<a moz-do-not-send="true"
                    href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a>&gt;&gt;
                  wrote:<br>
                  <br>
                      Anybody know how to run mongo backend with
                  integration tests within<br>
                      Intellij?<br>
                  <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>
                </span>
                    <a moz-do-not-send="true"
                  href="mailto:keycloak-dev@lists.jboss.org"
                  target="_blank">keycloak-dev@lists.jboss.org</a>
                &lt;mailto:<a moz-do-not-send="true"
                  href="mailto:keycloak-dev@lists.jboss.org"
                  target="_blank">keycloak-dev@lists.jboss.org</a>&gt;<span
                  class=""><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>
                  <br>
                  <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>
                </span></blockquote>
              <br>
            </blockquote>
            <div class="HOEnZb">
              <div class="h5">
                <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>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>