<div dir="ltr"><p dir="ltr"></p>
<p dir="ltr">On 2 Dec 2016 11:00 PM, "Josef Cacek" <<a href="mailto:jcacek@redhat.com" target="_blank">jcacek@redhat.com</a>> wrote:<br>
><br>
> We prefer duplication of all tests in the testsuite to keep test coverage.<br>
><br>
> To be sure we don't have regressions with introducing Elytron and at the same time we are able to cover current features with Elytron, we must run all tests with both security subsystems.<br>
> Even if a test is not security related on the first glance, the tested component may use a security feature internally. By switching to the new security subsystem the feature may stop work.<br>
></p>
<p dir="ltr">I think this is massive overkill, and would severely reduce the quality and usability of the testsuite (more tests != a better test suite, they need to be useful test otherwise they just add technical debt for no gain).</p><p>I just did a quick search through the code base, and as far as I can tell there is maybe ~50 test cases that test security related functionality (i.e. use the SecurityDomainSetup functionality), out of ~950 test cases, so this would amount to adding around 900 useless test cases.</p><p>The argument that Elytron may cause regressions in these cases does really work either, because these tests are not linked to a security domain Elytron should never actually be activated, and even if this was a concern the correct approach would be to write some smoke tests to ensure that non Elytron deployments still work correctly.</p><p>The expediency argument also does not really work, as the tests that actually use security will need to be modified anyway so they use Elytron instead of the old security subsystem, so if the whole test suite was copied the only tests that worked 'out of the box' would be the tests that don't actually test anything security related.</p><p>IMHO a better way to test this would be to move all security related tests into their own module, and then create subclasses of these tests in Elytron and legacy modules. Elytron should be added to the default config, so that even non security related tests run with Elytron present (although we should still have at least one test module that runs without it, just as a smoke test to make sure that legacy configs without it will still work).<br></p><p>Stuart<br></p><p dir="ltr"><br></p>
<p dir="ltr">> Let's keep the current (legacy security based) tests alive until the legacy security subsystem is fully removed.<br>
> Then we'll simply remove the *-legacy-security testsuite modules.<br>
><br>
> -- Josef<br>
><br>
> ----- Original Message -----<br>
> > From: "Tomaž Cerar" <<a href="mailto:tomaz.cerar@gmail.com" target="_blank">tomaz.cerar@gmail.com</a>><br>
> > To: "Darran Lofthouse" <<a href="mailto:darran.lofthouse@jboss.com" target="_blank">darran.lofthouse@jboss.com</a>><br>
> > Cc: <a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.jboss.org</a><br>
> > Sent: Friday, December 2, 2016 12:37:22 PM<br>
> > Subject: Re: [wildfly-dev] Elytron integration tests in WildFly testsuite<br>
> ><br>
> > That is probably fine, but! it should be done differently.<br>
> ><br>
> > instead of duplicating whole testsuite (and adding extra hour to execution<br>
> > and extra headaches with intermittent problems and duplication of<br>
> > maintenance)<br>
> > I would suggest that all security related tests get extracted to new<br>
> > "security" testsuite module and than only that part is duplicated.<br>
> ><br>
> > This way we will have all security related stuff in one place.<br>
> ><br>
> ><br>
> ><br>
> > On Fri, Dec 2, 2016 at 12:09 PM, Darran Lofthouse <<br>
> > <a href="mailto:darran.lofthouse@jboss.com" target="_blank">darran.lofthouse@jboss.com</a> > wrote:<br>
> ><br>
> ><br>
> > Probably should add - any duplication should only be for security tests<br>
> > - not everything else in there!<br>
> ><br>
> > On 02/12/16 11:08, Darran Lofthouse wrote:<br>
> > > On 02/12/16 11:03, Tomaž Cerar wrote:<br>
> > >><br>
> > >> On Fri, Dec 2, 2016 at 9:11 AM, Josef Cacek < <a href="mailto:jcacek@redhat.com" target="_blank">jcacek@redhat.com</a><br>
> > >> <mailto: <a href="mailto:jcacek@redhat.com" target="_blank">jcacek@redhat.com</a> >> wrote:<br>
> > >><br>
> > >> The modules would just live side by side - basic would use Elytron<br>
> > >> configuration, basic-legacy-security would use configuration similar<br>
> > >> to (or same as) the current server configuration.<br>
> > >><br>
> > >><br>
> > >><br>
> > >> What would this actually mean?<br>
> > >> we will have two copies basic tests suites one running with elytron<br>
> > >> another with legacy security subsystem?<br>
> > >><br>
> > >> Do I read that right? Please say I am not.<br>
> > ><br>
> > > That is correct - we have two security implementations they both need<br>
> > > testing.<br>
> > ><br>
> > > One needs testing for backwards compatibility and regressions, the other<br>
> > > for equivalent behaviour and then new features and bugs.<br>
> > ><br>
> > > Needing to test both was discussed previously so this is more about how<br>
> > > to separate both and also give the Elytron testing a good foundation to<br>
> > > start from.<br>
> > ><br>
> > >><br>
> > >><br>
> > >> ______________________________<wbr>_________________<br>
> > >> wildfly-dev mailing list<br>
> > >> <a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.jboss.org</a><br>
> > >> <a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/wildfly-dev</a><br>
> > >><br>
> > ><br>
> ><br>
> > ______________________________<wbr>_________________<br>
> > wildfly-dev mailing list<br>
> > <a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.jboss.org</a><br>
> > <a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/wildfly-dev</a><br>
> ><br>
> ><br>
> > ______________________________<wbr>_________________<br>
> > wildfly-dev mailing list<br>
> > <a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.jboss.org</a><br>
> > <a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/wildfly-dev</a><br>
><br>
> ______________________________<wbr>_________________<br>
> wildfly-dev mailing list<br>
> <a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/wildfly-dev</a><br></p>
</div>