It took me awhile to get this test to fail locally:

1) turn off wifi: fail to download one of the schemas, test failure

I just note this because I didn't realize we still had tests that would fail 
without a network connection

2) TestCommandLineUtilities tests, naturally, command-line utilities. The shell 
scripts rely on server-env.sh which, among other things, sets a variable, 
"webinf", to the following value:

        "$CATALINA_HOME"/webapps/$webapp_name/WEB-INF

As it happens, I already have both FEDORA_HOME and CATALINA_HOME set. Moreover, 
I have CATALINA_HOME=$FEDORA_HOME/tomcat. In one of my rounds of testing, I 
emptied out my FEDORA_HOME directory and suddenly I was getting 
TestCommandLineUtilities to fail because CATALINA_HOME was gone: 

testValidatePolicy(org.fcrepo.test.integration.TestCommandLineUtilities)  Time 
elapsed: 0.073 sec  <<< FAILURE!
junit.framework.AssertionFailedError: Expected "Validation successful", but 
received "ERROR: Fedora could not be found in the specified path 
(/fedora/tomcat/webapps/fedora/WEB-INF), please set the environment variable 
WEBAPP_NAME to the context Fedora is installed in.

Not positive that this the same sort of problem that Bamboo is hitting, but I 
can't reproduce a test failure aside from the two methods described above.

On 18 Mar 2011, at 12:00 AM, DuraSpace Bamboo wrote:

>               FCREPO-LINUXSAN-118 failed. 
> Code has been updated by Edwin Shin . 
> 1/588 tests failed.
> 
> Code Changes  See full change details
>                        Edwin Shin 
>     FCREPO-876: REST API validate method does not specify schema location     
>    Updates testValidate to use schema validation and    management namespace  
>       FCREPO-876">https://jira.duraspace.org/browse/FCREPO-876 (version 
> 6c5f59c58b9bc0a73685ee7d01a4529400160c6a)                          
> (6c5f59c58b9bc0a73685ee7d01a4529400160c6a)
> 
> Tests See full test details
> Failed Tests (1)
>        DemoObjectTestSetup : Command line utilities test suite (New)
> Fixed Tests (1)
>        TestRESTAPI : Validate
> 
> JIRA Issues    See full issue details  
>                               FCREPO-876 (Related) 
> REST API validate method does not specify schema location
> 
> Error Summary See full build log  
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] There are test failures.
> 
> Please refer to 
> /home/bamboo/bamboo-agent-home/xml-data/build-dir/FCREPO-LINUXSAN/checkout/fcrepo-integrationtest/fcrepo-integrationtest-configB/target/failsafe-reports
>  for the individual test results.
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> 
> Email generated by Atlassian Bamboo - if you wish to stop receiving these 
> emails edit your user profile or notify your administrator
> Want this information in your IDE?
> Actions
> View Online 
> Add Comments 
> View Artifacts 
> Download Logs 
> Link to JIRA issue 
> ------------------------------------------------------------------------------
> Colocation vs. Managed Hosting
> A question and answer guide to determining the best fit
> for your organization - today and in the future.
> http://p.sf.net/sfu/internap-sfd2d_______________________________________________
> Fedora-commons-codewatch mailing list
> fedora-commons-codewa...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fedora-commons-codewatch


------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Fedora-commons-developers mailing list
Fedora-commons-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers

Reply via email to