[JBoss JIRA] Created: (ARQ-171) ServletMethodExecutor should get context path from container
by Dan Allen (JIRA)
ServletMethodExecutor should get context path from container
------------------------------------------------------------
Key: ARQ-171
URL: https://jira.jboss.org/browse/ARQ-171
Project: Arquillian
Issue Type: Bug
Components: Test Protocol SPIs and Implementation
Affects Versions: 1.0.0.Alpha2
Reporter: Dan Allen
While working on the JSR 88 container implementation, I noticed that ServletMethodExecutor is using the hard-coded context path "/test" to communicate with the application to invoke the ArquillianServletRunner. I think that the context path is something that the container implementation should be passing to the ServletMethodExecutor in the deploy() method.
This assumption poses a particular problem in the JSR 88 container. When a WAR is deployed using JSR 88, the module is assigned a random name, and hence a random context path. Since there is no way to override the context path "/test" used by the ServletMethodExecutor, it fails to communicate with the server.
The ServletMethodExecutor constructor should be changed to take the context path as the second parameter. All the container implementations will need to be updated accordingly.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 9 months
[JBoss JIRA] Created: (ARQ-153) Protocol configuration element should be separate from Container
by Aslak Knutsen (JIRA)
Protocol configuration element should be separate from Container
----------------------------------------------------------------
Key: ARQ-153
URL: https://jira.jboss.org/browse/ARQ-153
Project: Arquillian
Issue Type: Feature Request
Components: Configuration
Affects Versions: 1.0.0.Alpha2
Reporter: Aslak Knutsen
A Contianer should be able to run with any of the support Protocols for communication with TestCase running inside the container. This needs to be configurable in a common way.
Currently Servlet Protocol configuration is stuck in the specific Containers who use it, this needs to be extracted.
e.g.
{code:XML}
<arquillian xmlns="http://jboss.com/arquillian"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jboss="urn:arq:org.jboss.arquillian.jbossas.remote60"
xmlns:servlet="urn:arq:org.jboss.arquillian.protocol.servlet"
xmlns:jmx="urn:arq:org.jboss.arquillian.protocol.jmx"
xmlns:jndi="urn:arq:org.jboss.arquillian.jndi">
<jboss:container id="jbossTest">
<localDeploymentBindAddress>my.domain</localDeploymentBindAddress>
<servlet:protocol>
<remoteServerAddress>remote.server</remoteServerAddress>
<remoteServerHttpPort>8181</remoteServerHttpPort>
</servlet:protocol>
<jndi:protocol> <!-- Is this really a Protocol in the Arquillian sense? -->
<javaNamingProviderUrl>jnp://remote.server:1099</javaNamingProviderUrl>
<javaNamingFactoryInitial>org.jnp.interfaces.NamingContextFactory</javaNamingFactoryInitial>
<javaNamingFactoryUrlPkgs>org.jboss.naming\:org.jnp.interfaces</javaNamingFactoryUrlPkgs>
</jndi:protocol>
</jboss:container>
<jboss:container id="jbossStage">
<localDeploymentBindAddress>my.domain</localDeploymentBindAddress>
<jmx:protocol>
<serviceUrl>service:jmx:rmi:///jndi/rmi://localhost:1099/</serviceUrl>
</jmx:protocol>
<jndi:protocol>
<javaNamingProviderUrl>jnp://remote.server:1099</javaNamingProviderUrl>
<javaNamingFactoryInitial>org.jnp.interfaces.NamingContextFactory</javaNamingFactoryInitial>
<javaNamingFactoryUrlPkgs>org.jboss.naming\:org.jnp.interfaces</javaNamingFactoryUrlPkgs>
</jndi:protocol>
</jboss:container>
</arquillian>
{code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 9 months
[JBoss JIRA] Created: (ARQ-152) Support multiple container configurations for same container type
by Aslak Knutsen (JIRA)
Support multiple container configurations for same container type
-----------------------------------------------------------------
Key: ARQ-152
URL: https://jira.jboss.org/browse/ARQ-152
Project: Arquillian
Issue Type: Feature Request
Components: Configuration
Reporter: Aslak Knutsen
Configuration need to support multiple container configurations for the same container type with a runtime 'flag' for switching configuration.
UseCase:
Different configuration for test/stage servers. e.g.
{code:XML}
<arquillian xmlns="http://jboss.com/arquillian"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jboss="urn:arq:org.jboss.arquillian.jbossas.remote60">
<jboss:container id="jbossTest">
<localDeploymentBindAddress>my.domain</localDeploymentBindAddress>
<remoteServerAddress>remote.test.server</remoteServerAddress>
<remoteServerHttpPort>8080</remoteServerHttpPort>
</jboss:container>
<jboss:container id="jbossStage">
<localDeploymentBindAddress>my.domain</localDeploymentBindAddress>
<remoteServerAddress>remote.stage.server</remoteServerAddress>
<remoteServerHttpPort>8181</remoteServerHttpPort>
</jboss:container>
</arquillian>
{code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 9 months
[JBoss JIRA] Created: (ARQ-313) ARQ should support Multi-module (Multiple WAR deployments) testing
by Lincoln Baxter III (JIRA)
ARQ should support Multi-module (Multiple WAR deployments) testing
------------------------------------------------------------------
Key: ARQ-313
URL: https://jira.jboss.org/browse/ARQ-313
Project: Arquillian
Issue Type: Feature Request
Components: Packaging Enricher SPI
Reporter: Lincoln Baxter III
It would be useful if you could return multiple deployments, potentially as a list of archives, and then run tests either AS_CLIENT that would interact against all deployments (however the container handles them,) or run with one deployment as the primary and run tests in IN_CONTAINER from the perspective of that WAR.
This would effectively allow testing of multi-module WAR deployments or large-scale applications that are broken up under different ServletContexts.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 9 months
[JBoss JIRA] Created: (ARQ-192) Install OSGi bundles in memory
by Thomas Diesler (JIRA)
Install OSGi bundles in memory
------------------------------
Key: ARQ-192
URL: https://jira.jboss.org/browse/ARQ-192
Project: Arquillian
Issue Type: Task
Reporter: Thomas Diesler
Currently the OSGiDeploymentPackager transforms a JavaArchive into a VF
private VirtualFile toVirtualFile(Archive<?> archive) throws IOException, MalformedURLException
{
// [TODO] Can this be done in memory?
ZipExporter exporter = archive.as(ZipExporter.class);
String archiveName = archive.getName();
int dotIndex = archiveName.lastIndexOf(".");
if (dotIndex > 0)
archiveName = archiveName.substring(0, dotIndex);
File target = File.createTempFile(archiveName + "-", ".jar");
exporter.exportZip(target, true);
target.deleteOnExit();
return AbstractVFS.getRoot(target.toURI().toURL());
}
We should be able to install the Archive directly and in-memory
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 9 months