-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added tests for eap-datagrid-subsystem
- Loading branch information
Showing
10 changed files
with
647 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/bin/bash | ||
|
||
export SRC_HOME=`pwd` | ||
|
||
echo "Removing directories from previous run ..." | ||
rm -rf eap-server | ||
rm -rf jdg-modules | ||
rm -rf eap1 | ||
rm -rf eap2 | ||
|
||
echo "Unzipping EAP server ..." | ||
unzip -q ${EAP_SERVER_ZIP_PATH} -d eap-server | ||
export EAP_HOME=`cd eap-server/*;pwd` | ||
echo $EAP_HOME | ||
|
||
echo "Unzipping JDG eap modules library ..." | ||
unzip -q ${JDG_MODULES_ZIP_PATH} -d jdg-modules | ||
export JDG_MODULES=`cd jdg-modules/*;pwd` | ||
echo $JDG_MODULES | ||
|
||
echo "Copying the JDG modules to EAP home directory" | ||
cp -a "${JDG_MODULES}/modules" "${EAP_HOME}" | ||
|
||
echo "Starting EAP server" | ||
sh "${EAP_HOME}"/bin/standalone.sh > "${EAP_HOME}/server.log" & | ||
sleep 10 | ||
|
||
echo "Executing install1-standalone-clustered.cli console scripts" | ||
"${EAP_HOME}"/bin/jboss-cli.sh -c --file="${SRC_HOME}"/install1-standalone-clustered.cli | ||
sleep 2 | ||
|
||
echo "Restarting EAP server" | ||
(ps -ef | grep 'Standalone' | grep -v grep | awk '{print $2}' | xargs kill) > /dev/null 2>&1 | ||
sleep 2 | ||
sh "${EAP_HOME}"/bin/standalone.sh > "${EAP_HOME}/server.log" & | ||
sleep 10 | ||
|
||
echo "Executing install2-standalone-clustered.cli console scripts" | ||
"${EAP_HOME}"/bin/jboss-cli.sh -c --file="${SRC_HOME}"/install2-standalone-clustered.cli | ||
sleep 5 | ||
|
||
echo "Stopping EAP server" | ||
(ps -ef | grep 'Standalone' | grep -v grep | awk '{print $2}' | xargs kill) > /dev/null 2>&1 | ||
|
||
echo "Making the first copy of EAP server ..." | ||
cp -R "${EAP_HOME}" eap1 | ||
export EAP_HOME1=`cd eap1;pwd` | ||
|
||
echo "Making the second copy of EAP server ..." | ||
cp -R "${EAP_HOME}" eap2 | ||
export EAP_HOME1=`cd eap2;pwd` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...-subsystem/web/src/test/java/org/jboss/as/quickstarts/datagrid/subsystem/Deployments.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package org.jboss.as.quickstarts.datagrid.subsystem; | ||
|
||
import org.jboss.shrinkwrap.api.ShrinkWrap; | ||
import org.jboss.shrinkwrap.api.importer.ZipImporter; | ||
import org.jboss.shrinkwrap.api.spec.WebArchive; | ||
|
||
import java.io.File; | ||
|
||
public class Deployments { | ||
private static final String ARCHIVE_NAME = System.getProperty("subsystem.war.file"); | ||
private static final String BUILD_DIRECTORY = System.getProperty("subsystem.war.directory"); | ||
|
||
public static WebArchive createDeployment() { | ||
System.out.println(BUILD_DIRECTORY + '/' + ARCHIVE_NAME); | ||
return ShrinkWrap.create(ZipImporter.class, ARCHIVE_NAME).importFrom(new File(BUILD_DIRECTORY + '/' + ARCHIVE_NAME)) | ||
.as(WebArchive.class); | ||
} | ||
|
||
} |
Oops, something went wrong.