<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">You might also consider importing a new
realm at startup. It won't help with delete, but you could just
delete the entire database and then rebuild it from scratch using
realm import. See the documentation that here:<br>
<a class="moz-txt-link-freetext" href="http://keycloak.github.io/docs/userguide/keycloak-server/html/export-import.html">http://keycloak.github.io/docs/userguide/keycloak-server/html/export-import.html</a><br>
<br>
We are planning to improve that feature as well where you can just
drop a file in a directory instead of specifying it on the command
line.<br>
<br>
Stan<br>
<br>
On 10/23/2015 4:19 AM, Stian Thorgersen wrote:<br>
</div>
<blockquote
cite="mid:CAJgngAfmHV8NCAbqAzjCyiYG0Zqm3oHKskeJaPEHGM069R=5vQ@mail.gmail.com"
type="cite">
<div dir="ltr">We have rest endpoints (as well as a java admin
client library) for everything that can be done through the
admin console. One issue at the moment is that the default
username/password for the admin has to be changed through the
admin console. That's something we're going to improve in the
future, but for now you'd have to reset the password manually or
use for example Sellenium to do it before running your tests.
You can take a look at our Arquillian based testsuite that does
exactly this: <a moz-do-not-send="true"
href="https://github.com/keycloak/keycloak/tree/master/testsuite/integration-arquillian">https://github.com/keycloak/keycloak/tree/master/testsuite/integration-arquillian</a></div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 23 October 2015 at 10:14, Ian
Hamilton <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:ihamilto@redhat.com" target="_blank">ihamilto@redhat.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
<br>
I am new to redHat and my role is to set up automation test
frameworks for <a moz-do-not-send="true"
href="http://developers.redhat.com" rel="noreferrer"
target="_blank">developers.redhat.com</a>.<br>
<br>
I would like to know how to gain permissions to Keycloak
admin in order create/delete new users on the fly in the
tests using the Keycloak REST API? Or what the usual process
is for creating users via the Keycloak.<br>
<br>
The reason for this is; when we make a new user for a test,
we have a "clean slate" which allows us great control over
how to shape that user for our test. And if we make that
user using a REST API call, we avoid the time penalty of
having to fill out a sign-up form (not to mention having to
find any emails involved in confirming an email address).<br>
<br>
I would like to be able to do this locally, as well as in
the staging environments.<br>
<br>
Could anyone point me in the right direction?<br>
<br>
thanks in advance,<br>
Ian<br>
_______________________________________________<br>
keycloak-dev mailing list<br>
<a moz-do-not-send="true"
href="mailto:keycloak-dev@lists.jboss.org">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>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
keycloak-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-dev@lists.jboss.org">keycloak-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-dev">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a></pre>
</blockquote>
<br>
</body>
</html>