Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Commit

Permalink
Adding a directory for single version inclusion tests for quick test …
Browse files Browse the repository at this point in the history
…additions.
  • Loading branch information
panossot committed Aug 9, 2019
1 parent 03ef0f0 commit 6cd8f2b
Show file tree
Hide file tree
Showing 9 changed files with 1,422 additions and 0 deletions.
9 changes: 9 additions & 0 deletions SingleVersionTestInclusion/README.md
@@ -0,0 +1,9 @@
# EAP ADDITIONAL TESTSUITE SINGLE VERSION TESTS
-----------------------------------------------

For those who would like to add a test in Eap Additional Testsuite, quickly, in the same way a common test is added in the regular-existing repositories, he/she could add the test here (SingleVersionTestInclusion directory) commenting the versions of the server he/she would like to test. Then the test will be added along with the other eap-additional-testsuite sources in order to enable multiversion testing.


# License
* [GNU Lesser General Public License Version 2.1](http://www.gnu.org/licenses/lgpl-2.1-standalone.html) ([GPL Cooperation Commitment](https://github.com/gplcc/gplcc/blob/master/Project/COMMITMENT))

16 changes: 16 additions & 0 deletions SingleVersionTestInclusion/eap/configs/arqEap7/arquillian.xml
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<arquillian xmlns="http://jboss.org/schema/arquillian" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd">

<container qualifier="jboss" default="true">
<configuration>
<property name="jbossHome">${jboss.home}</property>
<property name="javaVmArguments">-Djboss.inst=${jboss.home} -Dtest.bind.address=${node0:127.0.0.1}</property>
<property name="serverConfig">${jboss.server.config.file.name:standalone.xml}</property>
<property name="allowConnectingToRunningServer">true</property>
<property name="managementAddress">${node0:127.0.0.1}</property>
<property name="managementPort">${as.managementPort:9990}</property>
</configuration>
</container>

</arquillian>
509 changes: 509 additions & 0 deletions SingleVersionTestInclusion/eap/configs/serverconfigs/standalone.xml

Large diffs are not rendered by default.

157 changes: 157 additions & 0 deletions SingleVersionTestInclusion/eap/pom.xml
@@ -0,0 +1,157 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<!--
* ΙΔΕΑ : THE JBOSS TESTSUITE TO DEVELOP TESTS AGAINST INFINITE NUMBER OF JBOSS SERVERS
-->

<parent>
<groupId>org.jboss</groupId>
<artifactId>jboss-parent</artifactId>
<version>31</version>
<relativePath></relativePath>
</parent>

<groupId>org.jboss</groupId>
<artifactId>eap-additional-testsuite-single-version</artifactId>
<version>1.0.3.Final</version>

<name>eap additional testsuite: additional testsuite for eap single version tests</name>

<properties>
<standaloneConfiguration>${basedir}/configs/serverconfigs/standalone.xml</standaloneConfiguration>
<JBOSS_VERSION>JBOSS_VERSION</JBOSS_VERSION>
<JBOSS_FOLDER>JBOSS_FOLDER</JBOSS_FOLDER>
</properties>

<build>

<!--
Surefire test executions
-->
<plugins>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>

<configuration>
<failIfNoTests>true</failIfNoTests>

<!-- Arquillian's config files. -->
<additionalClasspathElements combine.children="append">
<additionalClasspathElement>${basedir}/configs/arqEap7</additionalClasspathElement>
</additionalClasspathElements>

</configuration>

<executions>
<execution>
<id>default-test</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<!-- Tests to execute. -->
<includes>
<include>org/server/test/**/*Test.java</include>
<include>org/server/test/**/*TestCase.java</include>
</includes>

<systemPropertyVariables>
<!-- This gets resolved at the test-configuration submodule level -->
<jboss.home>${JBOSS_FOLDER}</jboss.home>
</systemPropertyVariables>
</configuration>
</execution>
</executions>
</plugin>


<!-- Build the server configuration -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>build-basic-config-check</id>
<phase>generate-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<delete failonerror="false">
<fileset dir="${JBOSS_FOLDER}/standalone/deployments" includes="*" />
</delete>
<copy file="${standaloneConfiguration}" todir="${JBOSS_FOLDER}/standalone/configuration" overwrite="true" />
</target>
</configuration>
</execution>
</executions>
</plugin>

</plugins>

</build>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jboss.eap</groupId>
<artifactId>jboss-eap-parent</artifactId>
<type>pom</type>
<version>${JBOSS_VERSION}</version>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>org.wildfly.arquillian</groupId>
<artifactId>wildfly-arquillian-container-managed</artifactId>
</dependency>
<dependency>
<groupId>org.jboss.shrinkwrap</groupId>
<artifactId>shrinkwrap-api</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.jboss.eap</groupId>
<artifactId>wildfly-testsuite-shared</artifactId>
<scope>compile</scope>
<exclusions>
<exclusion>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-management</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.wildfly.core</groupId>
<artifactId>wildfly-core-testsuite-shared</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.jboss.arquillian.junit</groupId>
<artifactId>arquillian-junit-container</artifactId>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>compile</scope>
</dependency>

</dependencies>

</project>
@@ -0,0 +1,26 @@
package org.server.test;

import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.shrinkwrap.api.Archive;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.assertFalse;

@RunWith(Arquillian.class)
public class BasicTest {

@Deployment
public static Archive<?> getDeployment() {
JavaArchive archive = ShrinkWrap.create(JavaArchive.class);
archive.addClass(BasicTest.class);
return archive;
}

@Test
public void testServerStart() {
assertFalse("Running a basic arquillian test ... ", false);
}
}
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<arquillian xmlns="http://jboss.org/schema/arquillian" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd">

<container qualifier="jboss" default="true">
<configuration>
<property name="jbossHome">${jboss.home}</property>
<property name="javaVmArguments">-Djboss.inst=${jboss.home} -Dtest.bind.address=${node0:127.0.0.1}</property>
<property name="serverConfig">${jboss.server.config.file.name:standalone.xml}</property>
<property name="allowConnectingToRunningServer">true</property>
<property name="managementAddress">${node0:127.0.0.1}</property>
<property name="managementPort">${as.managementPort:9990}</property>
</configuration>
</container>

</arquillian>

0 comments on commit 6cd8f2b

Please sign in to comment.