Skip to content

Commit

Permalink
integration-test update
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Lewis committed Dec 6, 2017
1 parent e7d3685 commit b341db1
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions integration-test/start-jboss4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ cp app.war ${SERVER_HOME}/server/default/deploy/

# export JAVA_OPTS="-javaagent:${SERVER_HOME}/rasp/rasp.jar -Dlog4j.rasp.configuration=file://${SERVER_HOME}/rasp/conf/rasp-log4j.xml ${JAVA_OPTS}"

wget -N $(curl -s https://api.github.com/repos/baidu/openrasp/releases/latest | grep "browser_download_url.*rasp-any\.tar\.gz" | cut -d '"' -f 4)
wget -N $(curl -s https://api.github.com/repos/baidu/openrasp/releases/latest | grep "browser_download_url.*rasp-java\.tar\.gz" | cut -d '"' -f 4)

tar zxf rasp-any.tar.gz --strip-components=1 $(tar ztf rasp-any.tar.gz --wildcards "*RaspInstall.jar")
tar zxf rasp-java.tar.gz --strip-components=1 $(tar ztf rasp-java.tar.gz --wildcards "*RaspInstall.jar")

java -jar RaspInstall.jar ${SERVER_HOME}

Expand Down
4 changes: 2 additions & 2 deletions integration-test/start-jboss5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ cp app.war ${SERVER_HOME}/server/default/deploy/

# export JAVA_OPTS="-javaagent:${SERVER_HOME}/rasp/rasp.jar -Dlog4j.rasp.configuration=file://${SERVER_HOME}/rasp/conf/rasp-log4j.xml ${JAVA_OPTS}"

wget -N $(curl -s https://api.github.com/repos/baidu/openrasp/releases/latest | grep "browser_download_url.*rasp-any\.tar\.gz" | cut -d '"' -f 4)
wget -N $(curl -s https://api.github.com/repos/baidu/openrasp/releases/latest | grep "browser_download_url.*rasp-java\.tar\.gz" | cut -d '"' -f 4)

tar zxf rasp-any.tar.gz --strip-components=1 $(tar ztf rasp-any.tar.gz --wildcards "*RaspInstall.jar")
tar zxf rasp-java.tar.gz --strip-components=1 $(tar ztf rasp-java.tar.gz --wildcards "*RaspInstall.jar")

java -jar RaspInstall.jar ${SERVER_HOME}

Expand Down
4 changes: 2 additions & 2 deletions integration-test/start-jboss6.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ cp app.war ${SERVER_HOME}/server/default/deploy/

# export JAVA_OPTS="-javaagent:${SERVER_HOME}/rasp/rasp.jar -Dlog4j.rasp.configuration=file://${SERVER_HOME}/rasp/conf/rasp-log4j.xml ${JAVA_OPTS}"

wget -N $(curl -s https://api.github.com/repos/baidu/openrasp/releases/latest | grep "browser_download_url.*rasp-any\.tar\.gz" | cut -d '"' -f 4)
wget -N $(curl -s https://api.github.com/repos/baidu/openrasp/releases/latest | grep "browser_download_url.*rasp-java\.tar\.gz" | cut -d '"' -f 4)

tar zxf rasp-any.tar.gz --strip-components=1 $(tar ztf rasp-any.tar.gz --wildcards "*RaspInstall.jar")
tar zxf rasp-java.tar.gz --strip-components=1 $(tar ztf rasp-java.tar.gz --wildcards "*RaspInstall.jar")

java -jar RaspInstall.jar ${SERVER_HOME}

Expand Down
4 changes: 2 additions & 2 deletions integration-test/start-tomcat6.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ cp app.war ${SERVER_HOME}/webapps/

# export JAVA_OPTS="-javaagent:${SERVER_HOME}/rasp/rasp.jar -Dlog4j.rasp.configuration=file://${SERVER_HOME}/rasp/conf/rasp-log4j.xml ${JAVA_OPTS}"

wget -N $(curl -s https://api.github.com/repos/baidu/openrasp/releases/latest | grep "browser_download_url.*rasp-any\.tar\.gz" | cut -d '"' -f 4)
wget -N $(curl -s https://api.github.com/repos/baidu/openrasp/releases/latest | grep "browser_download_url.*rasp-java\.tar\.gz" | cut -d '"' -f 4)

tar zxf rasp-any.tar.gz --strip-components=1 $(tar ztf rasp-any.tar.gz --wildcards "*RaspInstall.jar")
tar zxf rasp-java.tar.gz --strip-components=1 $(tar ztf rasp-java.tar.gz --wildcards "*RaspInstall.jar")

java -jar RaspInstall.jar ${SERVER_HOME}

Expand Down
4 changes: 2 additions & 2 deletions integration-test/start-tomcat7.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ cp app.war ${SERVER_HOME}/webapps/

# export JAVA_OPTS="-javaagent:${SERVER_HOME}/rasp/rasp.jar -Dlog4j.rasp.configuration=file://${SERVER_HOME}/rasp/conf/rasp-log4j.xml ${JAVA_OPTS}"

wget -N $(curl -s https://api.github.com/repos/baidu/openrasp/releases/latest | grep "browser_download_url.*rasp-any\.tar\.gz" | cut -d '"' -f 4)
wget -N $(curl -s https://api.github.com/repos/baidu/openrasp/releases/latest | grep "browser_download_url.*rasp-java\.tar\.gz" | cut -d '"' -f 4)

tar zxf rasp-any.tar.gz --strip-components=1 $(tar ztf rasp-any.tar.gz --wildcards "*RaspInstall.jar")
tar zxf rasp-java.tar.gz --strip-components=1 $(tar ztf rasp-java.tar.gz --wildcards "*RaspInstall.jar")

java -jar RaspInstall.jar ${SERVER_HOME}

Expand Down
4 changes: 2 additions & 2 deletions integration-test/start-tomcat8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ cp app.war ${SERVER_HOME}/webapps/

# export JAVA_OPTS="-javaagent:${SERVER_HOME}/rasp/rasp.jar -Dlog4j.rasp.configuration=file://${SERVER_HOME}/rasp/conf/rasp-log4j.xml ${JAVA_OPTS}"

wget -N $(curl -s https://api.github.com/repos/baidu/openrasp/releases/latest | grep "browser_download_url.*rasp-any\.tar\.gz" | cut -d '"' -f 4)
wget -N $(curl -s https://api.github.com/repos/baidu/openrasp/releases/latest | grep "browser_download_url.*rasp-java\.tar\.gz" | cut -d '"' -f 4)

tar zxf rasp-any.tar.gz --strip-components=1 $(tar ztf rasp-any.tar.gz --wildcards "*RaspInstall.jar")
tar zxf rasp-java.tar.gz --strip-components=1 $(tar ztf rasp-java.tar.gz --wildcards "*RaspInstall.jar")

java -jar RaspInstall.jar ${SERVER_HOME}

Expand Down

0 comments on commit b341db1

Please sign in to comment.