See
http://hudson.qa.jboss.com/hudson/job/drools/2131/changes
Changes:
[jervisliu] test resources for atom/AtomRulesRepository test.
------------------------------------------
[...truncated 48036 lines...]
then
#actions
end
#This is a starter DSL to show off some of the features. Make sure you change it to be
what you need !.
[when]There is an Instance with field of "{value}"=i:
Instance(field=="{value}")
[when]Instance is at least {number} and field is "{value}"=i: Instance(number
> {number}, location=="{value}")
[then]Log : "{message}"=System.out.println("{message}");
[then]Set field of instance to "{value}"=i.setField("{value}");
[then]Create instance : "{value}"=assert(new Instance("{value}"));
[when]There is no current Instance with field : "{value}"=not Instance(field ==
"{value}")
[then]Report error : "{error}"=System.err.println("{error}");
[then]Retract the fact : '{variable}'=retract({variable}); //this would retract
bound variable {variable}
#This is a starter DSL to show off some of the features. Make sure you change it to be
what you need !.
[when]There is an Instance with field of "{value}"=i:
Instance(field=="{value}")
[when]Instance is at least {number} and field is "{value}"=i: Instance(number
> {number}, location=="{value}")
[then]Log : "{message}"=System.out.println("{message}");
[then]Set field of instance to "{value}"=i.setField("{value}");
[then]Create instance : "{value}"=assert(new Instance("{value}"));
[when]There is no current Instance with field : "{value}"=not Instance(field ==
"{value}")
[then]Report error : "{error}"=System.err.println("{error}");
[then]Retract the fact : '{variable}'=retract({variable}); //this would retract
bound variable {variable}
This is a rules function
This is a rules function
This is a test rule
This is a test rule
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.746 sec
Running org.drools.repository.ScalabilityTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running org.drools.repository.security.AccessControlTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.238 sec
Running org.drools.scm.svn.SvnActionFactoryTest
org.tmatesoft.svn.core.SVNException: svn: Path 'folder1' not present
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:49)
at org.tmatesoft.svn.core.internal.io.fs.FSCommitEditor.openDir(FSCommitEditor.java:115)
at org.drools.scm.svn.SvnActionFactory.openDirectories(SvnActionFactory.java:631)
at
org.drools.scm.svn.SvnActionFactory$AddDirectory.applyAction(SvnActionFactory.java:333)
at org.drools.scm.CompositeScmAction.applyAction(CompositeScmAction.java:33)
at org.drools.scm.svn.SvnActionFactory.execute(SvnActionFactory.java:265)
at
org.drools.scm.svn.SvnActionFactoryTest.testCannotAddDirectoryWithNoParent(SvnActionFactoryTest.java:79)
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:585)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
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:585)
at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
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:585)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
org.tmatesoft.svn.core.SVNException: svn: File already exists: filesystem
'/qa/services/hudson/hudson_workspace/workspace/drools/trunk/drools-repository/target/test-classes/copy_svn_repo_empty/db',
transaction '1-1', path '/folder1'
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:49)
at org.tmatesoft.svn.core.internal.io.fs.FSCommitter.makeDir(FSCommitter.java:166)
at org.tmatesoft.svn.core.internal.io.fs.FSCommitEditor.addDir(FSCommitEditor.java:164)
at
org.drools.scm.svn.SvnActionFactory$AddDirectory.applyAction(SvnActionFactory.java:340)
at org.drools.scm.CompositeScmAction.applyAction(CompositeScmAction.java:33)
at org.drools.scm.svn.SvnActionFactory.execute(SvnActionFactory.java:265)
at
org.drools.scm.svn.SvnActionFactoryTest.testCannotAddDuplicateDirectories(SvnActionFactoryTest.java:109)
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:585)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
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:585)
at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
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:585)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.336 sec
Running org.drools.repository.CategoryItemTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.589 sec
Running org.drools.scm.svn.SvnLogTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.454 sec
Running org.drools.repository.remoteapi.ResponseTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running org.drools.repository.ArchiveItemTest
Content of rule item named 'testArchiveBooleanFlag':
Content:
------
Archived: true
------
Date Effective: null
Date Expired: null
------
Rule state: Draft
------
Rule tags:
--------------
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.739 sec
Running org.drools.repository.AssetItemTest
1
testGetPackageItemHistorical
2
testGetPackageItemHistorical
Tests run: 30, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.705 sec
Running org.drools.repository.remoteapi.RestAPITest
2008-10-20T05:33:48,1
1=2008-10-20T05:33:49,alan_parsons,This is something
2=2008-10-20T05:33:49,alan_parsons,This is another
asset1.drl=2008-10-20T05:33:49,1
asset2.drl=2008-10-20T05:33:49,1
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.672 sec
Running org.drools.repository.RulesRepositoryTest
defaultPackage
folder1
folder1.folder1_1
folder1.folder1_1.folder1_1_1
folder1.folder1_2
folder2.folder2_1
folder3.folder3_1.folder3_1_1.folder3_1_1_1
testAddFiles.package
testListPackagesblah
testListPackages2blah1
testListPackages2blah3
testListPackages2blah7
testGetPackageItemHistorical
testPagination
testDublinCore
testRestGetSpaces
testRestGetBasics
testRestGetVersionHistory
testVersionHistoryAndArchived
testRestPost
testPostNewPackage
testRestPut
testRestDelete
SELECT drools:title, drools:description, drools:archive FROM drools:assetNodeType WHERE
jcr:path LIKE '/drools:repository/drools:package_area/%' AND drools:subject LIKE
'testQueryXXX42' AND drools:archive = 'false'
SELECT drools:title, drools:description, drools:archive FROM drools:assetNodeType WHERE
jcr:path LIKE '/drools:repository/drools:package_area/%' AND drools:source LIKE
'database' AND drools:subject LIKE 'testQueryXXX42'
SELECT drools:title, drools:description, drools:archive FROM drools:assetNodeType WHERE
jcr:path LIKE '/drools:repository/drools:package_area/%' AND (drools:source LIKE
'database' OR drools:source LIKE 'wankle') AND (drools:subject LIKE
'testQueryXXX42' OR drools:subject LIKE 'wankle') AND drools:archive =
'false'
SELECT drools:title, drools:description, drools:archive FROM drools:assetNodeType WHERE
jcr:path LIKE '/drools:repository/drools:package_area/%' AND (drools:source LIKE
'database' OR drools:source LIKE 'wankle') AND drools:archive =
'false'
SELECT drools:title, drools:description, drools:archive FROM drools:assetNodeType WHERE
jcr:path LIKE '/drools:repository/drools:package_area/%' AND (drools:source LIKE
'database' OR drools:source LIKE 'wankle') AND (drools:subject LIKE
'testQueryXXX42' OR drools:subject LIKE 'wankle') AND drools:archive =
'false' AND jcr:created > TIMESTAMP '1974-07-10T00:00:00.000-05:00' AND
jcr:created < TIMESTAMP '3074-07-10T00:00:00.000-05:00'
SELECT drools:title, drools:description, drools:archive FROM drools:assetNodeType WHERE
jcr:path LIKE '/drools:repository/drools:package_area/%' AND (drools:source LIKE
'database' OR drools:source LIKE 'wankle') AND (drools:subject LIKE
'testQueryXXX42' OR drools:subject LIKE 'wankle') AND drools:archive =
'false' AND jcr:created > TIMESTAMP '1974-07-10T00:00:00.000-05:00'
SELECT drools:title, drools:description, drools:archive FROM drools:assetNodeType WHERE
jcr:path LIKE '/drools:repository/drools:package_area/%' AND (drools:source LIKE
'database' OR drools:source LIKE 'wankle') AND (drools:subject LIKE
'testQueryXXX42' OR drools:subject LIKE 'wankle') AND drools:archive =
'false' AND jcr:created < TIMESTAMP '3074-07-10T00:00:00.000-05:00'
SELECT drools:title, drools:description, drools:archive FROM drools:assetNodeType WHERE
jcr:path LIKE '/drools:repository/drools:package_area/%' AND (drools:source LIKE
'database' OR drools:source LIKE 'wankle') AND (drools:subject LIKE
'testQueryXXX42' OR drools:subject LIKE 'wankle') AND drools:archive =
'false' AND jcr:created > TIMESTAMP '3074-07-10T00:00:00.000-05:00'
SELECT drools:title, drools:description, drools:archive FROM drools:assetNodeType WHERE
jcr:path LIKE '/drools:repository/drools:package_area/%' AND (drools:source LIKE
'database' OR drools:source LIKE 'wankle') AND (drools:subject LIKE
'testQueryXXX42' OR drools:subject LIKE 'wankle') AND drools:archive =
'false' AND jcr:created < TIMESTAMP '1974-07-10T00:00:00.000-05:00'
1
1
Clearing rules repository
Clearing rules repository
Tests run: 24, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 16.784 sec
Running org.drools.repository.PackageItemTest
2
Tests run: 23, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.158 sec
Running org.drools.repository.migration.MigrateDroolsPackageTest
AUTO MIGRATION: Performing drools.package migration...
AUTO MIGRATION: drools.package migration completed.
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.478 sec
Running org.drools.repository.security.PermissionManagerTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.164 sec
Results :
Tests run: 138, Failures: 0, Errors: 0, Skipped: 0
[INFO] [jar:jar]
[INFO] Building jar:
/qa/services/hudson/hudson_workspace/workspace/drools/trunk/drools-repository/target/drools-repository.jar
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] No goals needed for project - skipping
[INFO] [source:jar {execution: default}]
[INFO] Building jar:
/qa/services/hudson/hudson_workspace/workspace/drools/trunk/drools-repository/target/drools-repository-sources.jar
[INFO] Preparing source:test-jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[WARNING] Removing: test-jar from forked lifecycle, to prevent recursive invocation.
[INFO] No goals needed for project - skipping
[INFO] [source:test-jar {execution: default}]
[INFO] Building jar:
/qa/services/hudson/hudson_workspace/workspace/drools/trunk/drools-repository/target/drools-repository-test-sources.jar
[INFO] [jar:test-jar {execution: default}]
[INFO] Building jar:
/qa/services/hudson/hudson_workspace/workspace/drools/trunk/drools-repository/target/drools-repository-tests.jar
[INFO] [install:install]
[INFO] Installing
/qa/services/hudson/hudson_workspace/workspace/drools/trunk/drools-repository/target/drools-repository.jar
to
/home/hudson/.m2/repository/org/drools/drools-repository/5.0.0.SNAPSHOT/drools-repository-5.0.0.SNAPSHOT.jar
[INFO] Installing
/qa/services/hudson/hudson_workspace/workspace/drools/trunk/drools-repository/target/drools-repository-sources.jar
to
/home/hudson/.m2/repository/org/drools/drools-repository/5.0.0.SNAPSHOT/drools-repository-5.0.0.SNAPSHOT-sources.jar
[INFO] Installing
/qa/services/hudson/hudson_workspace/workspace/drools/trunk/drools-repository/target/drools-repository-test-sources.jar
to
/home/hudson/.m2/repository/org/drools/drools-repository/5.0.0.SNAPSHOT/drools-repository-5.0.0.SNAPSHOT-test-sources.jar
[INFO] Installing
/qa/services/hudson/hudson_workspace/workspace/drools/trunk/drools-repository/target/drools-repository-tests.jar
to
/home/hudson/.m2/repository/org/drools/drools-repository/5.0.0.SNAPSHOT/drools-repository-5.0.0.SNAPSHOT-tests.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building Drools :: Guvnor
[INFO] task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading:
http://repository.jboss.org/maven2/org/cobogw/gwt/cobogw/1.0/cobogw-1.0.pom
Downloading:
http://repo1.maven.org/maven2/org/cobogw/gwt/cobogw/1.0/cobogw-1.0.pom
[INFO] [compiler:compile]
[INFO] Compiling 290 source files to
/qa/services/hudson/hudson_workspace/workspace/drools/trunk/drools-guvnor/target/classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
/qa/services/hudson/hudson_workspace/workspace/drools/trunk/drools-guvnor/src/main/java/org/drools/guvnor/server/builder/AuditLogReporter.java:[22,37]
cannot find symbol
symbol : method getLogEvents()
location: class org.drools.guvnor.server.builder.AuditLogReporter
/qa/services/hudson/hudson_workspace/workspace/drools/trunk/drools-guvnor/src/main/java/org/drools/guvnor/server/builder/AuditLogReporter.java:[22,37]
cannot find symbol
symbol : method getLogEvents()
location: class org.drools.guvnor.server.builder.AuditLogReporter
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15 minutes 29 seconds
[INFO] Finished at: Mon Oct 20 05:35:40 EDT 2008
[INFO] Final Memory: 48M/982M
[INFO] ------------------------------------------------------------------------
Terminating xvnc
[drools] $ vncserver -kill :10
Killing Xvnc process ID 16247
ERROR: No artifacts found that match the file pattern
"trunk/target/,rules-ouput/". Configuration error?
ERROR: 'trunk/target/' doesn't match anything, but '' does. Perhaps
that's what you mean?
Recording test results