Did you by any chance accidentally modify any of the XML configuration files
for the tests?

-Scott

On 10/24/07, Premkumar Natarajan <[EMAIL PROTECTED]> wrote:
>
>
> Hi Scott:
>
> Here are the errors that I get,. Perhaps tests depend on local kerberos
> settings, and so works only if kerberos is activated in local system? If so,
> how can we make the tests independent of local kerberos setup?
>
> cheers
> Prem
>
>
> -------------------------------------------------------------------------------
> Test set: org.jasig.cas.authentication.AuthenticationManagerImplTests
>
> -------------------------------------------------------------------------------
> Tests run: 5, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 10.218 sec
> <<< FAILURE!
> testNoResolverFound(
> org.jasig.cas.authentication.AuthenticationManagerImplTests)  Time
> elapsed: 5.125 sec  <<< ERROR!
> error.authentication.credentials.bad
>         at
> org.jasig.cas.authentication.handler.BadCredentialsAuthenticationException
> .<clinit>(BadCredentialsAuthenticationException.java:25)
>         at
> org.jasig.cas.authentication.AuthenticationManagerImpl.authenticate(
> AuthenticationManagerImpl.java:108)
>         at
> org.jasig.cas.CentralAuthenticationServiceImpl.createTicketGrantingTicket(
> CentralAuthenticationServiceImpl.java:383)
>         at org.jasig.cas.web.flow.AuthenticationViaFormAction.submit(
> AuthenticationViaFormAction.java:107)
>         at
> org.jasig.cas.web.flow.AuthenticationViaFormActionTests.testFailedAuthenticationWithNoService
> (AuthenticationViaFormActionTests.java:127)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at junit.framework.TestCase.runTest(TestCase.java:154)
>         at junit.framework.TestCase.runBare(TestCase.java:127)
>         at org.springframework.test.ConditionalTestCase.runBare(
> ConditionalTestCase.java:69)
>         at junit.framework.TestResult$1.protect(TestResult.java:106)
>         at junit.framework.TestResult.runProtected(TestResult.java:124)
>         at junit.framework.TestResult.run(TestResult.java:109)
>         at junit.framework.TestCase.run(TestCase.java:118)
>         at junit.framework.TestSuite.runTest(TestSuite.java:208)
>         at junit.framework.TestSuite.run(TestSuite.java:203)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.maven.surefire.junit.JUnitTestSet.execute(
> JUnitTestSet.java:213)
>         at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(
> AbstractDirectoryTestSuite.java:138)
>         at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(
> AbstractDirectoryTestSuite.java:125)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(
> SurefireBooter.java:290)
>         at org.apache.maven.surefire.booter.SurefireBooter.main(
> SurefireBooter.java:818)
>         at org.apache.maven.surefire.booter.SurefireBooter.main(
> SurefireBooter.java:818)
>
>
> -------------------------------------------------------------------------------
> Test set: org.jasig.cas.CentralAuthenticationServiceImplTests
>
> -------------------------------------------------------------------------------
> Tests run: 19, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 10.031sec 
> <<< FAILURE!
> testDelegateTicketGrantingTicketWithProperParams(
> org.jasig.cas.CentralAuthenticationServiceImplTests)  Time elapsed: 5 sec
>  <<< ERROR!
> org.jasig.cas.ticket.TicketCreationException:
> error.authentication.credentials.bad
>         at
> org.jasig.cas.CentralAuthenticationServiceImpl.delegateTicketGrantingTicket
> (CentralAuthenticationServiceImpl.java:271)
>         at
> org.jasig.cas.CentralAuthenticationServiceImplTests.testDelegateTicketGrantingTicketWithProperParams
> (CentralAuthenticationServiceImplTests.java:123)
> Caused by: error.authentication.credentials.bad
>         at
> org.jasig.cas.authentication.handler.BadCredentialsAuthenticationException
> .<clinit>(BadCredentialsAuthenticationException.java:25)
>         at
> org.jasig.cas.authentication.AuthenticationManagerImpl.authenticate(
> AuthenticationManagerImpl.java:108)
>         at
> org.jasig.cas.CentralAuthenticationServiceImpl.createTicketGrantingTicket(
> CentralAuthenticationServiceImpl.java:383)
>         at org.jasig.cas.web.flow.AuthenticationViaFormAction.submit(
> AuthenticationViaFormAction.java:107)
>         at
> org.jasig.cas.web.flow.AuthenticationViaFormActionTests.testFailedAuthenticationWithNoService
> (AuthenticationViaFormActionTests.java:127)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at junit.framework.TestCase.runTest(TestCase.java:154)
>         at junit.framework.TestCase.runBare(TestCase.java:127)
>         at org.springframework.test.ConditionalTestCase.runBare(
> ConditionalTestCase.java:69)
>         at junit.framework.TestResult$1.protect(TestResult.java:106)
>         at junit.framework.TestResult.runProtected(TestResult.java:124)
>         at junit.framework.TestResult.run(TestResult.java:109)
>         at junit.framework.TestCase.run(TestCase.java:118)
>         at junit.framework.TestSuite.runTest(TestSuite.java:208)
>         at junit.framework.TestSuite.run(TestSuite.java:203)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
>         ... 12 more
>
>
>
> -------------------------------------------------------------------------------
> Test set:
> org.jasig.cas.remoting.server.RemoteCentralAuthenticationServiceTests
>
> -------------------------------------------------------------------------------
> Tests run: 11, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 5.031 sec
> <<< FAILURE!
> testDelegateTicketGrantingTicketWithValidCredentials(
> org.jasig.cas.remoting.server.RemoteCentralAuthenticationServiceTests)
>  Time elapsed: 5 sec  <<< ERROR!
> org.jasig.cas.ticket.TicketCreationException:
> error.authentication.credentials.bad
>         at
> org.jasig.cas.CentralAuthenticationServiceImpl.delegateTicketGrantingTicket
> (CentralAuthenticationServiceImpl.java:271)
>         at
> org.jasig.cas.remoting.server.RemoteCentralAuthenticationService.delegateTicketGrantingTicket
> (RemoteCentralAuthenticationService.java:114)
>         at
> org.jasig.cas.remoting.server.RemoteCentralAuthenticationServiceTests.testDelegateTicketGrantingTicketWithValidCredentials
> (RemoteCentralAuthenticationServiceTests.java:132)
> Caused by: error.authentication.credentials.bad
>         at
> org.jasig.cas.authentication.handler.BadCredentialsAuthenticationException
> .<clinit>(BadCredentialsAuthenticationException.java:25)
>         at
> org.jasig.cas.authentication.AuthenticationManagerImpl.authenticate(
> AuthenticationManagerImpl.java:108)
>         at
> org.jasig.cas.CentralAuthenticationServiceImpl.createTicketGrantingTicket(
> CentralAuthenticationServiceImpl.java:383)
>         at org.jasig.cas.web.flow.AuthenticationViaFormAction.submit(
> AuthenticationViaFormAction.java:107)
>         at
> org.jasig.cas.web.flow.AuthenticationViaFormActionTests.testFailedAuthenticationWithNoService
> (AuthenticationViaFormActionTests.java:127)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at junit.framework.TestCase.runTest(TestCase.java:154)
>         at junit.framework.TestCase.runBare(TestCase.java:127)
>         at org.springframework.test.ConditionalTestCase.runBare(
> ConditionalTestCase.java:69)
>         at junit.framework.TestResult$1.protect(TestResult.java:106)
>         at junit.framework.TestResult.runProtected(TestResult.java:124)
>         at junit.framework.TestResult.run(TestResult.java:109)
>         at junit.framework.TestCase.run(TestCase.java:118)
>         at junit.framework.TestSuite.runTest(TestSuite.java:208)
>         at junit.framework.TestSuite.run(TestSuite.java:203)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
>         ... 12 more
>
>
> =
>
>
>  *"Scott Battaglia" <[EMAIL PROTECTED]>*
> Sent by: [EMAIL PROTECTED]
>
> 23/10/2007 06:57 PM  Please respond to
> Yale CAS mailing list <[email protected]>
>
>   To
> "Yale CAS mailing list" <[email protected]>  cc
>
>  Subject
> Re: test errors in 3.1 and 3.1.1-rc2
>
>
>
>
>
>
> Prem,
>
> Can you take a look in the target directory for the module?  There should
> be test results and the file will tell you why they failed.  If anything
> seems strange, post the result to the list.
>
> -Scott
>
> On 10/23/07, *Premkumar Natarajan* <[EMAIL PROTECTED]<[EMAIL PROTECTED]>>
> wrote:
>
> I get the following errors in 3.1 and 3.1.1-rc2. Could that be because of
> maven settings?
>
>
> -----------------------3.1--------------------
> Failed tests:
>  testAcceptsProperCertificateCredentials(
> org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandlerTests
> )
>
> Tests in error:
>  testNoResolverFound(
> org.jasig.cas.authentication.AuthenticationManagerImplTests)
>  testDelegateTicketGrantingTicketWithProperParams(
> org.jasig.cas.CentralAuthenticationServiceImplTests)
>  testDelegateTicketGrantingTicketWithValidCredentials(
> org.jasig.cas.remoting.server.RemoteCentralAuthenticationServiceTests)
>
> Tests run: 392, Failures: 1, Errors: 3, Skipped: 0
>
>
> ---------------------------------3.1.1-rc2 ----------------
> Results :
>
> Failed tests:
>  testAcceptsProperCertificateCredentials(
> org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandlerTests
> )
>
> Tests in error:
>  testNoResolverFound(
> org.jasig.cas.authentication.AuthenticationManagerImplTests)
>  testDelegateTicketGrantingTicketWithProperParams(
> org.jasig.cas.CentralAuthenticationServiceImplTests)
>  testDelegateTicketGrantingTicketWithValidCredentials(
> org.jasig.cas.remoting.server.RemoteCentralAuthenticationServiceTests)
>
> Tests run: 393, Failures: 1, Errors: 3, Skipped: 0
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] There are test failures.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 56 seconds
> [INFO] Finished at: Tue Oct 23 14:55:29 EDT 2007
> [INFO] Final Memory: 11M/20M
>
>
>
> Prem
>
> ---
>
> This e-mail may contain confidential and/or privileged information. If you
>
> are not the intended recipient (or have received this e-mail in error)
> please notify the sender immediately and destroy this e-mail. Any
> unauthorized copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden.
>
> _______________________________________________
> Yale CAS mailing list*
> [EMAIL PROTECTED] <[email protected]>*
> **http://tp.its.yale.edu/mailman/listinfo/cas*<http://tp.its.yale.edu/mailman/listinfo/cas>
>
>
>
>
> --
> -Scott Battaglia
>
> LinkedIn: 
> *http://www.linkedin.com/in/scottbattaglia*<http://www.linkedin.com/in/scottbattaglia>
> _______________________________________________
> Yale CAS mailing list
> [email protected]
> http://tp.its.yale.edu/mailman/listinfo/cas
>
>
> ---
>
> This e-mail may contain confidential and/or privileged information. If you
>
> are not the intended recipient (or have received this e-mail in error)
> please notify the sender immediately and destroy this e-mail. Any
> unauthorized copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden.
>
> _______________________________________________
> Yale CAS mailing list
> [email protected]
> http://tp.its.yale.edu/mailman/listinfo/cas
>
>


-- 
-Scott Battaglia

LinkedIn: http://www.linkedin.com/in/scottbattaglia
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to