JSecurity Plugin vs. Integration Tests

View: New views
8 Messages — Rating Filter:   Alert me  

JSecurity Plugin vs. Integration Tests

by Jason Rudolph-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Has anyone had success running integration tests after installing the JSecurity plugin with the latest Grails code?  I'm running against SVN HEAD (revision 6405), and all is well until installing the plugin.  After installing the plugin, integration tests stop cooperating:

Error executing tests No such property: realmClasses for class: org.codehaus.groovy.grails.commons.DefaultGrailsApplication ...
groovy.lang.MissingPropertyException: No such property: realmClasses for class: org.codehaus.groovy.grails.commons.DefaultGrailsApplication

It looks like a similar issue popped up last summer ...

http://jira.codehaus.org/browse/GRAILS-1459

... and based on the commentary in that JIRA issue, the problem appears to have been resolved for a while, but has now cropped up again.  

I included the full details of the problem in the comments of the JIRA issue.  I've tried with both version 0.1.1 and version 0.2-SNAPSHOT of the JSecurity plugin, but both lead to the same issue.  :-/

If anyone has any ideas for how to resolve this issue, please let me know.

Thanks,
Jason

--

Jason Rudolph
http://jasonrudolph.com
http://thinkrelevance.com

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: JSecurity Plugin vs. Integration Tests

by Alex Shneyderman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Did you compile JSecurity from source ? Or just grabbed the zip ? I
compiled from source and it appears (I can run my integration test
although none of them are testing controllers) working although I use
RC3 at the moment. I think Peter was adding fixes after he released
the 0.2-SNAPSHOT, that might have solved your issues.

On Jan 6, 2008 10:11 PM, Jason Rudolph <listserv@...> wrote:

> Has anyone had success running integration tests after installing the JSecurity plugin with the latest Grails code?  I'm running against SVN HEAD (revision 6405), and all is well until installing the plugin.  After installing the plugin, integration tests stop cooperating:
>
> Error executing tests No such property: realmClasses for class: org.codehaus.groovy.grails.commons.DefaultGrailsApplication ...
> groovy.lang.MissingPropertyException: No such property: realmClasses for class: org.codehaus.groovy.grails.commons.DefaultGrailsApplication
>
> It looks like a similar issue popped up last summer ...
>
> http://jira.codehaus.org/browse/GRAILS-1459
>
> ... and based on the commentary in that JIRA issue, the problem appears to have been resolved for a while, but has now cropped up again.
>
> I included the full details of the problem in the comments of the JIRA issue.  I've tried with both version 0.1.1 and version 0.2-SNAPSHOT of the JSecurity plugin, but both lead to the same issue.  :-/
>
> If anyone has any ideas for how to resolve this issue, please let me know.
>
> Thanks,
> Jason
>
> --
>
> Jason Rudolph
> http://jasonrudolph.com
> http://thinkrelevance.com
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: JSecurity Plugin vs. Integration Tests

by Peter Ledbrook :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Error executing tests No such property: realmClasses for class: org.codehaus.groovy.grails.commons.DefaultGrailsApplication ...
> groovy.lang.MissingPropertyException: No such property: realmClasses for class: org.codehaus.groovy.grails.commons.DefaultGrailsApplication
>
> It looks like a similar issue popped up last summer ...
>
> http://jira.codehaus.org/browse/GRAILS-1459
>
> ... and based on the commentary in that JIRA issue, the problem appears to have been resolved for a while, but has now cropped up again.

Grails appears to be creating two instances of
DefaultGrailsApplication at the moment. I'm looking into it.

Peter

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Parent Message unknown Re: JSecurity Plugin vs. Integration Tests

by Jason Rudolph-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for the suggestion. Alex.  I originally just grabbed the pre-built ZIP from the plugin repo.  In that scenario, both 0.1.1 and the 0.2-SNAPSHOT exhibited caused the integration tests to fail.  As you suggested, I grabbed the JSecurity plugin source, and built a ZIP with the latest plugin code in SVN, but unfortunately it still causes the integration tests to fail.  

--

Jason Rudolph
http://jasonrudolph.com
http://thinkrelevance.com

>Did you compile JSecurity from source ? Or just grabbed the zip ? I
>compiled from source and it appears (I can run my integration test
>although none of them are testing controllers) working although I use
>RC3 at the moment. I think Peter was adding fixes after he released
>the 0.2-SNAPSHOT, that might have solved your issues.
>
>On Jan 6, 2008 10:11 PM, Jason Rudolph <listserv@...> wrote:
>> Has anyone had success running integration tests after installing the
>JSecurity plugin with the latest Grails code?  I'm running against SVN HEAD
>(revision 6405), and all is well until installing the plugin.  After
>installing the plugin, integration tests stop cooperating:
>>
>> Error executing tests No such property: realmClasses for class:
>org.codehaus.groovy.grails.commons.DefaultGrailsApplication ...
>> groovy.lang.MissingPropertyException: No such property: realmClasses for
>class: org.codehaus.groovy.grails.commons.DefaultGrailsApplication
>>
>> It looks like a similar issue popped up last summer ...
>>
>> http://jira.codehaus.org/browse/GRAILS-1459
>>
>> ... and based on the commentary in that JIRA issue, the problem appears to
>have been resolved for a while, but has now cropped up again.
>>
>> I included the full details of the problem in the comments of the JIRA
>issue.  I've tried with both version 0.1.1 and version 0.2-SNAPSHOT of the
>JSecurity plugin, but both lead to the same issue.  :-/
>>
>> If anyone has any ideas for how to resolve this issue, please let me know.
>>
>> Thanks,
>> Jason
>>
>> --
>>
>> Jason Rudolph
>> http://jasonrudolph.com
>> http://thinkrelevance.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list please visit:
>>
>>     http://xircles.codehaus.org/manage_email
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe from this list please visit:
>
>    http://xircles.codehaus.org/manage_email
>

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: JSecurity Plugin vs. Integration Tests

by Peter Ledbrook :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 06/01/2008, Jason Rudolph <listserv@...> wrote:
> Thanks for the suggestion. Alex.  I originally just grabbed the pre-built ZIP from the plugin repo.  In that scenario, both 0.1.1 and the 0.2-SNAPSHOT exhibited caused the integration tests to fail.  As you suggested, I grabbed the JSecurity plugin source, and built a ZIP with the latest plugin code in SVN, but unfortunately it still causes the integration tests to fail.

Jason,

If you don't mind modifying the Grails script files, a quick hack is
to add the marked line to TestApp.groovy:


target(runUnitTests: "Run Grails' unit tests under the test/unit directory") {
    try {
        PluginManagerHolder.pluginManager = null  // <<<< Add this line here
        loadApp()

        pluginManager.getGrailsPlugin("core")?.doWithDynamicMethods(appCtx)
        pluginManager.getGrailsPlugin("logging")?.doWithDynamicMethods(appCtx)

Peter

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Parent Message unknown Re: JSecurity Plugin vs. Integration Tests

by Jason Rudolph-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Peter,
Thanks.  That change to TestApp.groovy indeed solves the problem.  Is there any reason not to make this a permanent change to Grails?  

Either way, do you agree that this is a bug?  If so, please let me know, and I'll log a JIRA ticket.

Thanks,
Jason

--

Jason Rudolph
http://jasonrudolph.com
http://thinkrelevance.com

>On 06/01/2008, Jason Rudolph <listserv@...> wrote:
>> Thanks for the suggestion. Alex.  I originally just grabbed the pre-built
>ZIP from the plugin repo.  In that scenario, both 0.1.1 and the 0.2-SNAPSHOT
>exhibited caused the integration tests to fail.  As you suggested, I grabbed
>the JSecurity plugin source, and built a ZIP with the latest plugin code in
>SVN, but unfortunately it still causes the integration tests to fail.
>
>Jason,
>
>If you don't mind modifying the Grails script files, a quick hack is
>to add the marked line to TestApp.groovy:
>
>
>target(runUnitTests: "Run Grails' unit tests under the test/unit directory")
>{
>    try {
>        PluginManagerHolder.pluginManager = null  // <<<< Add this line here
>        loadApp()
>
>        pluginManager.getGrailsPlugin("core")?.doWithDynamicMethods(appCtx)
>        
>pluginManager.getGrailsPlugin("logging")?.doWithDynamicMethods(appCtx)
>
>Peter
>
>---------------------------------------------------------------------
>To unsubscribe from this list please visit:
>
>    http://xircles.codehaus.org/manage_email
>

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: JSecurity Plugin vs. Integration Tests

by Peter Ledbrook :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 07/01/2008, Jason Rudolph <listserv@...> wrote:
> Hi Peter,
> Thanks.  That change to TestApp.groovy indeed solves the problem.  Is there any reason not to make this a permanent change to Grails?
>
> Either way, do you agree that this is a bug?  If so, please let me know, and I'll log a JIRA ticket.

Yes it's a bug. I don't think the change I suggested is the proper fix
for this problem, which is why I suggested it as a quick workaround.
So yes please, file a JIRA issue.

Thanks,

Peter

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Parent Message unknown Re: JSecurity Plugin vs. Integration Tests

by Jason Rudolph-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks, Peter.  I logged GRAILS-2153 for this issue.

http://jira.codehaus.org/browse/GRAILS-2153

Cheers,
Jason

--

Jason Rudolph
http://jasonrudolph.com
http://thinkrelevance.com

>On 07/01/2008, Jason Rudolph <listserv@...> wrote:
>> Hi Peter,
>> Thanks.  That change to TestApp.groovy indeed solves the problem.  Is there
>any reason not to make this a permanent change to Grails?
>>
>> Either way, do you agree that this is a bug?  If so, please let me know, and
>I'll log a JIRA ticket.
>
>Yes it's a bug. I don't think the change I suggested is the proper fix
>for this problem, which is why I suggested it as a quick workaround.
>So yes please, file a JIRA issue.
>
>Thanks,
>
>Peter
>
>---------------------------------------------------------------------
>To unsubscribe from this list please visit:
>
>    http://xircles.codehaus.org/manage_email
>

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email