<div dir="ltr"><div>This is the one:</div>org.keycloak.testsuite.forms.BruteForceTest<br><div><br></div><div>For user registration look at:</div><div>org.keycloak.testsuite.forms.RegisterTest<br></div><div><br></div><div>For extra brownie points you could also migrate the above tests to the Arquillian based integration testsuite (integration-arquillian).</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 8 January 2016 at 03:35, Bruno Oliveira <span dir="ltr">&lt;<a href="mailto:bruno@abstractj.org" target="_blank">bruno@abstractj.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Good morning, I&#39;m looking at this<br>
<a href="https://issues.jboss.org/browse/KEYCLOAK-2151" rel="noreferrer" target="_blank">https://issues.jboss.org/browse/KEYCLOAK-2151</a> and would like to know<br>
where I can find the integration tests for brute force. If they don&#39;t<br>
exist, which place would be the best to add?<br>
<br>
I would like to reproduce exactly the same scenario described on that jira:<br>
<br>
1. try to login several times with a username that doesn&#39;t exist<br>
2. register the user<br>
3. try to login with the correct credentials<br>
<br>
I started to look at<br>
<a href="https://github.com/keycloak/keycloak/blob/a5c159eeffaec051a15b94ac5129c42d511fce29/testsuite/integration/src/test/java/org/keycloak/testsuite/model/UserSessionProviderTest.java#L27-L27" rel="noreferrer" target="_blank">https://github.com/keycloak/keycloak/blob/a5c159eeffaec051a15b94ac5129c42d511fce29/testsuite/integration/src/test/java/org/keycloak/testsuite/model/UserSessionProviderTest.java#L27-L27</a><br>
with not too much luck.<br>
<br>
Thanks in advance.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
- abstractj<br>
_______________________________________________<br>
keycloak-dev mailing list<br>
<a href="mailto:keycloak-dev@lists.jboss.org">keycloak-dev@lists.jboss.org</a><br>
<a 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>