-
1. Re: Building CapeDwarf
alesj Aug 31, 2012 10:05 AM (in response to alesj)Running default CapeDwarf tests
As you could see in the first post - we disabled tests while building (2).
It's a chicken-n-egg problem ;-), we first need CapeDwarf present in AS7 to be able to run the tests.
We support running GAE apps w/o GAE API jar -- as GAE API jar is actually also a module in AS7.
But this means you need to byte modify the GAE API jar first -- to enable CapeDwarf services to override defaults.
This is done as part the CapeDwarf AS7 integration build -- see build/pom.xml plugins.
-
2. Re: Building CapeDwarf
alesj Aug 14, 2012 5:34 AM (in response to alesj)Running CapeDwarf testsuite against real GAE
We can also run CapeDwarf testsuite against real GAE instance - local or remote.
(a) local: mvn clean install -Pgae -Dappengine.sdk.root=<path_to_GAE_SDK>
(b) remote: mvn clean install -Pgae-remote -Dappengine.sdk.root=<path_to_GAE_SDK> -Dappengine.email=<email> -Dappengine.password=<password> -Dmaven.test.failure.ignore=true
We add "-Dmaven.test.failure.ignore=true" as not all tests pass atm.
(we need to check if it actually makes sense for all of them to pass; e.g. diff impl behavior might be allowed?)
-
3. Re: Building and testing CapeDwarf
alesj Aug 16, 2012 5:39 AM (in response to alesj)Running cluster tests
We already have a few cluster tests you can run:
* https://github.com/capedwarf/capedwarf-blue/tree/master/cluster-tests
You need to enable -Pcluster profile to actually run the tests -- they don't run by default.
See readme.txt for more info -- manually starting 2 nodes, etc, ...
-
4. Re: Building and testing CapeDwarf
memellis0 Dec 29, 2013 10:58 AM (in response to alesj)Hi Ales
I've been trying to build Capedwarf and JBOSS from source to try an replicate your built releases, build under Linux (CentOS 6.5) and on Windows via MinGW.
I was having problems build JBOSS 7.2.0-FINAL, but that's now that's sorted by moving up to JBOSS 8.0.0CR1
Its not clear to me (from the minimal documentation) how building capedwarf-shared and capedwarf-blue links to wildfly and capedwarf-wildfly.
Reviewing the latest capedwarf-blue readme instructions...
(1) Build WildFly 8.0.0.CR1 tag --> JBOSS_HOME
https://github.com/wildfly/wildfly mvn clean install -DskipTests -Prelease
- Yep that works
(2) Build CapeDwarf Shared
https://github.com/capedwarf/capedwarf-shared
- What tag to use? Or just use master for now?
- What's the build command?
mvn clean install # this built successfully using git master
- Yes that works
(3) Build CapeDwarf Blue
https://github.com/capedwarf/capedwarf-blue
mvn clean install -DskipTests
[ERROR] Failed to execute goal on project capedwarf-common: Could not resolve de
pendencies for project org.jboss.capedwarf.blue:capedwarf-common:jar:1.0.0-SNAPS
HOT: Could not find artifact org.jboss.capedwarf.shared:capedwarf-shared:jar:1.0
.0-SNAPSHOT in datanucleus (http://www.datanucleus.org/downloads/maven2) -> [Hel
p 1]
- Nah! Didn't work
- I'm guessing capedwarf-shared:jar was built in (2) ?
Regards
Mark
-
5. Re: Building and testing CapeDwarf
alesj Dec 29, 2013 1:05 PM (in response to memellis0)Its not clear to me (from the minimal documentation) how building capedwarf-shared and capedwarf-blue links to wildfly and capedwarf-wildfly.
Yes, it's on our TODO list, to make this better.
But any pull-request against README welcome. ;-)
(2) Build CapeDwarf Shared
https://github.com/capedwarf/capedwarf-shared
- What tag to use? Or just use master for now?
- What's the build command?
mvn clean install # this built successfully using git master
- Yes that works
Ah, ok, yes -- it's "master" branch and standard "mvn clean install".
(I'll add that to the docs)
(3) Build CapeDwarf Blue
https://github.com/capedwarf/capedwarf-blue
mvn clean install -DskipTests
[ERROR] Failed to execute goal on project capedwarf-common: Could not resolve de
pendencies for project org.jboss.capedwarf.blue:capedwarf-common:jar:1.0.0-SNAPS
HOT: Could not find artifact org.jboss.capedwarf.shared:capedwarf-shared:jar:1.0
.0-SNAPSHOT in datanucleus (http://www.datanucleus.org/downloads/maven2) -> [Hel
p 1]
- Nah! Didn't work
- I'm guessing capedwarf-shared:jar was built in (2) ?
That's weird -- it should work, as yes, Shared should be built in (2).
But ... you're not the first one to complain, yet I cannot see what's wrong.
Perhaps try with: "mvn -U clean install"
(no need for -DskipTests, as tests are already skipped by default)
-
6. Re: Building and testing CapeDwarf
memellis0 Dec 29, 2013 5:28 PM (in response to alesj)Hi Ales
I'll do a pull request README to reflect my journey on how to build capedwarf.
I've now realised the link between how building capedwarf-shared and capedwarf-blue links to wildfly and capedwarf-wildfly.
- Its maven the .m2/repository !
I was deleting .m2/repository at each step on Windows/MinGW because I had been getting multiple write error because my AVG antivirus was clashing. When I realised I had to disable the live scan I didn't need the delete .m2/repository workaround anymore.
I've now built (3) successfully and got to (5)...
(4) Build CapeDwarf WildFly
https://github.com/capedwarf/capedwarf-jboss-as mvn clean install -Djboss.dir=${JBOSS_HOME} -Pupdate-as
This will install CapeDwarf Subsystem into previous WildFly 8.0.0.CR1
(5) Start CapeDwarf
cd ${JBOSS_HOME}/bin
./capedwarf.sh
I'll try the rest of the steps, once I got passed the following exception starting capedwarf.sh because the management port is already in use.
22:08:26,780 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC0000
01: Failed to start service jboss.serverManagement.controller.management.http: o
rg.jboss.msc.service.StartException in service jboss.serverManagement.controller
.management.http: java.lang.RuntimeException: java.net.BindException: Address al
ready in use: bind
at org.jboss.as.server.mgmt.UndertowHttpManagementService.start(Undertow
HttpManagementService.java:258) [wildfly-server-8.0.0.CR1.jar:8.0.0.CR1]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(Se
rviceControllerImpl.java:1948) [jboss-msc-1.2.0.CR1.jar:1.2.0.CR1]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceCont
rollerImpl.java:1881) [jboss-msc-1.2.0.CR1.jar:1.2.0.CR1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145) [rt.jar:1.7.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615) [rt.jar:1.7.0_45]
at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
Caused by: java.lang.RuntimeException: java.net.BindException: Address already i
n use: bind
at org.jboss.as.domain.http.server.ManagementHttpServer.start(Management
HttpServer.java:158)
at org.jboss.as.server.mgmt.UndertowHttpManagementService.start(Undertow
HttpManagementService.java:224) [wildfly-server-8.0.0.CR1.jar:8.0.0.CR1]
... 5 more
Caused by: java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method) [rt.jar:1.7.0_45]
at sun.nio.ch.Net.bind(Net.java:444) [rt.jar:1.7.0_45]
at sun.nio.ch.Net.bind(Net.java:436) [rt.jar:1.7.0_45]
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:
214) [rt.jar:1.7.0_45]
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) [rt.
jar:1.7.0_45]
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:67) [rt.
jar:1.7.0_45]
at org.xnio.nio.NioXnioWorker.createTcpConnectionServer(NioXnioWorker.ja
va:175)
at org.xnio.XnioWorker.createStreamConnectionServer(XnioWorker.java:242)
at org.jboss.as.domain.http.server.ManagementHttpServer.start(Management
HttpServer.java:137)
... 6 more
Regards
Mark
-
7. Re: Building and testing CapeDwarf
memellis0 Dec 29, 2013 7:17 PM (in response to memellis0)I managed to change the http management of 9990 to a different port in
${JBOSS_HOME}/standalone/configuration/standalone-capedwarf-modules.xml
${JBOSS_HOME}/standalone/configuration/standalone-capedwarf.xml
as well as adding a management user via ${JBOSS_HOME}/bin/add_user.sh
Capedwarf successfully starts.
Now to test with the capedwarf tests and some of the capedwarf test apps
Regards
Mark
-
8. Re: Building and testing CapeDwarf
alesj Dec 30, 2013 9:41 AM (in response to memellis0)Capedwarf successfully starts.
Now to test with the capedwarf tests and some of the capedwarf test apps
Great, let me know how it goes.
-
9. Re: Building and testing CapeDwarf
memellis0 Jan 1, 2014 6:57 PM (in response to alesj)Hi Ales
Just hit a problem for "How to test CapeDwarf environment?
There are multiple ways to test it:
(1) Run Blue's tests against **running** CapeDwarf WildFly instance
Goto CapeDwarf Blue and simply run
mvn clean install -Premote"
Because I've changed the management console to a different port I get a timeout exception
Running org.jboss.test.capedwarf.capabilities.test.CapabilitiesServiceTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<< FAILUR
E!
I've tried to change the management console in CapeDwarf blue configuration files, but hasn't change the timeout error behaviour. I'm guess its the management console value is hardcoded somewhere else.
The reason for the change in port is because the 9990 is already in use on my Windows box.
Regards
Mark
-
10. Re: Building and testing CapeDwarf
alesj Jan 2, 2014 4:11 AM (in response to memellis0)I've tried to change the management console in CapeDwarf blue configuration files, but hasn't change the timeout error behaviour. I'm guess its the management console value is hardcoded somewhere else.
You need to configure this port on client side -- in arquillian.xml
See Arquillian docs for how to set this for WildFly Remote Container (should be still the same as AS7).
* JBoss AS 7.1, JBoss EAP 6.0 - Remote - Arquillian - Project Documentation Editor
-
11. Re: Building and testing CapeDwarf
memellis0 Jan 4, 2014 2:08 PM (in response to alesj)Hi Ales
Ales Justin wrote:
I've tried to change the management console in CapeDwarf blue configuration files, but hasn't change the timeout error behaviour. I'm guess its the management console value is hardcoded somewhere else.
You need to configure this port on client side -- in arquillian.xml
See Arquillian docs for how to set this for WildFly Remote Container (should be still the same as AS7).
* JBoss AS 7.1, JBoss EAP 6.0 - Remote - Arquillian - Project Documentation Editor
I managed to work around the problem by doing a search and replace of the management port 9990 with my replacement port for all java source and and xml files in the builds,
- I think there's a hard code definition somewhere which is not easily overridden. No that I've got something working I could take a further look
Most of the capedwarf tests run, but I get a failure at Capedwarf XMPP:
Tests in error:
testSendMessage(org.jboss.test.capedwarf.xmpp.test.XMPPServiceTest): SASL auth
entication failed using mechanism PLAIN:
testInvitation(org.jboss.test.capedwarf.xmpp.test.XMPPServiceTest): SASL authe
ntication failed using mechanism PLAIN:
Tests run: 4, Failures: 0, Errors: 2, Skipped: 1
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] CapeDwarf Blue .................................... SUCCESS [2.294s]
[INFO] CapeDwarf Common .................................. SUCCESS [3.316s]
[INFO] CapeDwarf Aspects ................................. SUCCESS [0.495s]
[INFO] CapeDwarf Environment ............................. SUCCESS [0.449s]
[INFO] CapeDwarf Capabilities ............................ SUCCESS [11.108s]
[INFO] CapeDwarf Javac Processors ........................ SUCCESS [0.302s]
[INFO] CapeDwarf Datastore ............................... SUCCESS [2:33.597s]
[INFO] CapeDwarf GQL4J ................................... SUCCESS [9.292s]
[INFO] CapeDwarf Log ..................................... SUCCESS [1:18.582s]
[INFO] CapeDwarf Admin Console ........................... SUCCESS [3.246s]
[INFO] CapeDwarf Files ................................... SUCCESS [8.358s]
[INFO] CapeDwarf Blobstore ............................... SUCCESS [19.837s]
[INFO] CapeDwarf AppIdentity ............................. SUCCESS [18.593s]
[INFO] CapeDwarf Channel ................................. SUCCESS [1.516s]
[INFO] CapeDwarf Endpoints ............................... SUCCESS [0.370s]
[INFO] CapeDwarf Images .................................. SUCCESS [32.625s]
[INFO] CapeDwarf Mail .................................... SUCCESS [7.006s]
[INFO] CapeDwarf Memcache ................................ SUCCESS [34.487s]
[INFO] CapeDwarf Modules ................................. SUCCESS [6.798s]
[INFO] CapeDwarf Multitenancy ............................ SUCCESS [0.168s]
[INFO] CapeDwarf OAuth ................................... SUCCESS [0.498s]
[INFO] CapeDwarf Search .................................. SUCCESS [35.595s]
[INFO] CapeDwarf Prospective Search ...................... SUCCESS [1:15.376s]
[INFO] CapeDwarf Quota ................................... SUCCESS [7.021s]
[INFO] CapeDwarf SQL ..................................... SUCCESS [0.465s]
[INFO] CapeDwarf Tasks ................................... SUCCESS [1:23.863s]
[INFO] CapeDwarf URLFetch ................................ SUCCESS [15.975s]
[INFO] CapeDwarf Users ................................... SUCCESS [8.320s]
[INFO] CapeDwarf XMPP .................................... FAILURE [12.452s]
[INFO] CapeDwarf Bytecode ................................ SKIPPED
[INFO] CapeDwarf Cluster ................................. SKIPPED
[INFO] CapeDwarf Testsuite ............................... SKIPPED
[INFO] CapeDwarf Cluster Tests ........................... SKIPPED
[INFO] CapeDwarf OpenShift ............................... SKIPPED
[INFO] CapeDwarf Tools ................................... SKIPPED
[INFO] CapeDwarf Arquillian .............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10:33.029s
[INFO] Finished at: Sat Jan 04 18:46:00 GMT 2014
[INFO] Final Memory: 103M/714M
[INFO] ------------------------------------------------------------------------
So I'll investigate the Capedwarf XMPP settings. Looks like I need to set authentication.
Regards
Mark
-
12. Re: Building and testing CapeDwarf
alesj Jan 4, 2014 3:04 PM (in response to memellis0)
So I'll investigate the Capedwarf XMPP settings. Looks like I need to set authentication. -
13. Re: Building and testing CapeDwarf
memellis0 Jan 20, 2014 5:46 PM (in response to alesj)Hi Ales
Sorry for the delay in replying...
I managed to get the CapeDwarf XMPP tests to pass if I start my own XMPP server (Openfire) and a specified username and password
The trouble is I can't get the Capedwarf Tasks test to pass:
I usually get:
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, u seUnlimitedThreads=false
Jan 20, 2014 10:31:52 PM org.xnio.Xnio <clinit>
INFO: XNIO version 3.2.0.Beta4
Jan 20, 2014 10:31:52 PM org.xnio.nio.NioXnio <clinit>
INFO: XNIO NIO Implementation Version 3.2.0.Beta4
Jan 20, 2014 10:31:52 PM org.jboss.remoting3.EndpointImpl <clinit>
INFO: JBoss Remoting version 4.0.0.Beta1
Running org.jboss.test.capedwarf.tasks.test.SmokeTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.127 sec
Running org.jboss.test.capedwarf.tasks.test.PullTest
Tests run: 7, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.306 sec <<< FA ILURE!
testPullWithGroupTag(org.jboss.test.capedwarf.tasks.test.PullTest) Time elapsed : 0.003 sec <<< FAILURE!
java.lang.AssertionError: expected:<2> but was:<4>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:743)
at org.junit.Assert.assertEquals(Assert.java:118)
at org.junit.Assert.assertEquals(Assert.java:555)
at org.junit.Assert.assertEquals(Assert.java:542)
at org.jboss.test.capedwarf.tasks.test.PullTest.testPullWithGroupTag(Pul lTest.java:139)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(Framework Method.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCal lable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMe thod.java:44)
at org.jboss.arquillian.junit.Arquillian$6$1.invoke(Arquillian.java:270)
at org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter. execute(LocalTestExecuter.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java: 94)
at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(Event ContextImpl.java:99)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextI mpl.java:81)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)
at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
at org.jboss.arquillian.container.test.impl.execution.ContainerTestExecu ter.execute(ContainerTestExecuter.java:38)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java: 94)
at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(Event ContextImpl.java:99)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextI mpl.java:81)
at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(T estContextHandler.java:89)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java: 94)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextI mpl.java:88)
at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext( TestContextHandler.java:75)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java: 94)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextI mpl.java:88)
at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext( TestContextHandler.java:60)
at sun.reflect.GeneratedMethodAccessor796.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java: 94)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextI mpl.java:88)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.test(EventTestR unnerAdaptor.java:111)
at org.jboss.arquillian.junit.Arquillian$6.evaluate(Arquillian.java:263)
at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:226)
at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:31 4)
at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)
at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:240)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun ner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun ner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:185)
at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:31 4)
at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)
at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:199)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:147)
at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
at org.junit.runner.JUnitCore.run(JUnitCore.java:138)
at org.jboss.arquillian.junit.container.JUnitTestRunner.execute(JUnitTes tRunner.java:65)
at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.execut eTest(ServletTestRunner.java:160)
at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.execut e(ServletTestRunner.java:126)
at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.doGet( ServletTestRunner.java:90)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHand ler.java:87)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(F ilterHandler.java:130)
at io.undertow.websockets.jsr.JsrWebSocketFilter.doFilter(JsrWebSocketFi lter.java:123)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:56 )
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(F ilterHandler.java:132)
at org.jboss.capedwarf.appidentity.GAEFilter.doFilter(GAEFilter.java:65)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:56 )
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(F ilterHandler.java:132)
at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandle r.java:85)
at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.hand leRequest(ServletSecurityRoleHandler.java:61)
at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest( ServletDispatchingHandler.java:36)
at org.wildfly.extension.undertow.security.SecurityContextAssociationHan dler.handleRequest(SecurityContextAssociationHandler.java:70)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateH andler.java:25)
at io.undertow.servlet.handlers.security.SSLInformationAssociationHandle r.handleRequest(SSLInformationAssociationHandler.java:113)
at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest (AuthenticationCallHandler.java:52)
at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRe quest(AbstractConfidentialityHandler.java:45)
at io.undertow.servlet.handlers.security.ServletConfidentialityConstrain tHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61)
at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandl er.handleRequest(CachedAuthenticatedSessionHandler.java:67)
at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(Se curityInitialHandler.java:70)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateH andler.java:25)
at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.han dleRequest(JACCContextIdHandler.java:61)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateH andler.java:25)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateH andler.java:25)
at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest (ServletInitialHandler.java:240)
at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(Se rvletInitialHandler.java:227)
at io.undertow.servlet.handlers.ServletInitialHandler.access$000(Servlet InitialHandler.java:73)
at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(Se rvletInitialHandler.java:146)
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:164)
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:6 54)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor. java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:615)
at java.lang.Thread.run(Thread.java:744)
Running org.jboss.test.capedwarf.tasks.test.TasksTest
Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 54.704 sec
Running org.jboss.test.capedwarf.tasks.test.StatsTest
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.121 sec <<< FA ILURE!
testBasics(org.jboss.test.capedwarf.tasks.test.StatsTest) Time elapsed: 0 sec <<< FAILURE!
java.lang.AssertionError: expected:<1> but was:<3>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:743)
at org.junit.Assert.assertEquals(Assert.java:118)
at org.junit.Assert.assertEquals(Assert.java:555)
at org.junit.Assert.assertEquals(Assert.java:542)
at org.jboss.test.capedwarf.tasks.test.StatsTest.testBasics(StatsTest.ja va:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(Framework Method.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCal lable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMe thod.java:44)
at org.jboss.arquillian.junit.Arquillian$6$1.invoke(Arquillian.java:270)
at org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter. execute(LocalTestExecuter.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java: 94)
at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(Event ContextImpl.java:99)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextI mpl.java:81)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)
at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
at org.jboss.arquillian.container.test.impl.execution.ContainerTestExecu ter.execute(ContainerTestExecuter.java:38)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java: 94)
at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(Event ContextImpl.java:99)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextI mpl.java:81)
at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(T estContextHandler.java:89)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java: 94)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextI mpl.java:88)
at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext( TestContextHandler.java:75)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java: 94)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextI mpl.java:88)
at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext( TestContextHandler.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java: 94)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextI mpl.java:88)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.test(EventTestR unnerAdaptor.java:111)
at org.jboss.arquillian.junit.Arquillian$6.evaluate(Arquillian.java:263)
at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:226)
at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:31 4)
at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)
at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:240)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun ner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun ner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:185)
at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:31 4)
at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)
at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:199)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:147)
at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
at org.junit.runner.JUnitCore.run(JUnitCore.java:138)
at org.jboss.arquillian.junit.container.JUnitTestRunner.execute(JUnitTes tRunner.java:65)
at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.execut eTest(ServletTestRunner.java:160)
at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.execut e(ServletTestRunner.java:126)
at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.doGet( ServletTestRunner.java:90)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHand ler.java:87)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(F ilterHandler.java:130)
at io.undertow.websockets.jsr.JsrWebSocketFilter.doFilter(JsrWebSocketFi lter.java:123)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:56 )
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(F ilterHandler.java:132)
at org.jboss.capedwarf.appidentity.GAEFilter.doFilter(GAEFilter.java:65)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:56 )
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(F ilterHandler.java:132)
at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandle r.java:85)
at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.hand leRequest(ServletSecurityRoleHandler.java:61)
at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest( ServletDispatchingHandler.java:36)
at org.wildfly.extension.undertow.security.SecurityContextAssociationHan dler.handleRequest(SecurityContextAssociationHandler.java:70)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateH andler.java:25)
at io.undertow.servlet.handlers.security.SSLInformationAssociationHandle r.handleRequest(SSLInformationAssociationHandler.java:113)
at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest (AuthenticationCallHandler.java:52)
at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRe quest(AbstractConfidentialityHandler.java:45)
at io.undertow.servlet.handlers.security.ServletConfidentialityConstrain tHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61)
at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandl er.handleRequest(CachedAuthenticatedSessionHandler.java:67)
at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(Se curityInitialHandler.java:70)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateH andler.java:25)
at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.han dleRequest(JACCContextIdHandler.java:61)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateH andler.java:25)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateH andler.java:25)
at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest (ServletInitialHandler.java:240)
at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(Se rvletInitialHandler.java:227)
at io.undertow.servlet.handlers.ServletInitialHandler.access$000(Servlet InitialHandler.java:73)
at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(Se rvletInitialHandler.java:146)
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:164)
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:6 54)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor. java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:615)
at java.lang.Thread.run(Thread.java:744)
Results :
Failed tests: testPullWithGroupTag(org.jboss.test.capedwarf.tasks.test.PullTes t): expected:<2> but was:<4>
testBasics(org.jboss.test.capedwarf.tasks.test.StatsTest): expected:<1> but wa s:<3>
Tests run: 29, Failures: 2, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] CapeDwarf Blue .................................... SUCCESS [1.766s]
[INFO] CapeDwarf Common .................................. SUCCESS [2.210s]
[INFO] CapeDwarf Aspects ................................. SUCCESS [0.164s]
[INFO] CapeDwarf Environment ............................. SUCCESS [0.127s]
[INFO] CapeDwarf Capabilities ............................ SUCCESS [6.351s]
[INFO] CapeDwarf Javac Processors ........................ SUCCESS [0.136s]
[INFO] CapeDwarf Datastore ............................... SUCCESS [2:25.181s]
[INFO] CapeDwarf GQL4J ................................... SUCCESS [6.480s]
[INFO] CapeDwarf Log ..................................... SUCCESS [1:14.943s]
[INFO] CapeDwarf Admin Console ........................... SUCCESS [0.628s]
[INFO] CapeDwarf Files ................................... SUCCESS [7.295s]
[INFO] CapeDwarf Blobstore ............................... SUCCESS [17.602s]
[INFO] CapeDwarf AppIdentity ............................. SUCCESS [17.848s]
[INFO] CapeDwarf Channel ................................. SUCCESS [0.919s]
[INFO] CapeDwarf Endpoints ............................... SUCCESS [0.156s]
[INFO] CapeDwarf Images .................................. SUCCESS [30.273s]
[INFO] CapeDwarf Mail .................................... SUCCESS [6.771s]
[INFO] CapeDwarf Memcache ................................ SUCCESS [33.203s]
[INFO] CapeDwarf Modules ................................. SUCCESS [6.319s]
[INFO] CapeDwarf Multitenancy ............................ SUCCESS [0.137s]
[INFO] CapeDwarf OAuth ................................... SUCCESS [0.129s]
[INFO] CapeDwarf Search .................................. SUCCESS [33.022s]
[INFO] CapeDwarf Prospective Search ...................... SUCCESS [1:14.122s]
[INFO] CapeDwarf Quota ................................... SUCCESS [6.499s]
[INFO] CapeDwarf SQL ..................................... SUCCESS [0.162s]
[INFO] CapeDwarf Tasks ................................... FAILURE [1:17.087s]
[INFO] CapeDwarf URLFetch ................................ SKIPPED
[INFO] CapeDwarf Users ................................... SKIPPED
[INFO] CapeDwarf XMPP .................................... SKIPPED
[INFO] CapeDwarf Bytecode ................................ SKIPPED
[INFO] CapeDwarf Cluster ................................. SKIPPED
[INFO] CapeDwarf Testsuite ............................... SKIPPED
[INFO] CapeDwarf Cluster Tests ........................... SKIPPED
[INFO] CapeDwarf OpenShift ............................... SKIPPED
[INFO] CapeDwarf Tools ................................... SKIPPED
[INFO] CapeDwarf Arquillian .............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9:10.374s
[INFO] Finished at: Mon Jan 20 22:33:07 GMT 2014
[INFO] Final Memory: 70M/480M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2. 12.4:test (default-test) on project capedwarf-tasks: There are test failures.
[ERROR]
[ERROR] Please refer to H:\MinGW_Qt\home\mark\build\capedwarf-blue\tasks\target\ surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc eption
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :capedwarf-tasks
Regards
Mark
-
14. Re: Building and testing CapeDwarf
alesj Jan 21, 2014 5:07 AM (in response to memellis0)Are you running this on a fresh CapeDwarf instance?
e.g. I mean no previous deployments
It could be that we don't do a good job cleaning up after the test,
but I have never seen it fail, nor does it fail in our http://github.com/capedwarf/capedwarf-testsuite or https://github.com/GoogleCloudPlatform/appengine-tck .
When running Blue tests against running CapeDwarf instance,
I always do "rm -rf ../standalone/{data*,tmp?*}" before.