This repository has been archived by the owner on Apr 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Zak Hassan
committed
Feb 1, 2018
1 parent
90021f4
commit 1942dd5
Showing
104 changed files
with
7,231 additions
and
201 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM maven:3-jdk-8 | ||
|
||
USER root | ||
|
||
|
||
# Add scripts used to configure the image | ||
COPY * /tmp/radtests | ||
|
||
# Adding jmx by default | ||
|
||
RUN /tmp/radtests/install-env.sh && /tmp/radtests/overwritecfg.sh | ||
|
||
# Switch to the user 185 for OpenShift usage | ||
USER 185 | ||
|
||
# Make the default PWD somewhere that the user can write. This is | ||
# useful when connecting with 'oc run' and starting a 'spark-shell', | ||
# which will likely try to create files and directories in PWD and | ||
# error out if it cannot. | ||
WORKDIR /tmp/radtests | ||
|
||
|
||
# Start the main process | ||
CMD ["mvn clean test -Ptest-s3source"] |
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,15 @@ | ||
|
||
cat << EOF > /etc/yum.repos.d/google-chrome.repo | ||
[google-chrome] | ||
name=google-chrome - \$basearch | ||
baseurl=http://dl.google.com/linux/chrome/rpm/stable/\$basearch | ||
enabled=1 | ||
gpgcheck=1 | ||
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub | ||
EOF | ||
|
||
dnf install google-chrome-stable | ||
|
||
dnf install chromedriver |
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,25 @@ | ||
input { | ||
file { | ||
path => "/home/khanhum4/projects/radtests/test-blockchainanalysis/log/test.log" | ||
start_position => "end" | ||
} | ||
} | ||
|
||
filter { | ||
kv { } | ||
grok { | ||
match => { "message" => "%{COMBINEDAPACHELOG}" } | ||
} | ||
date { | ||
match => [ "timestamp" , "dd/MMM/yyyy:HH:mm:ss Z" ] | ||
} | ||
} | ||
|
||
output { | ||
elasticsearch { | ||
hosts => ["localhost:9200"] | ||
} | ||
stdout { | ||
codec => rubydebug | ||
} | ||
} |
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,56 @@ | ||
cat << EOF > radtests.properties | ||
# OPENSHIFT Version | ||
com.redhat.xpaas.openshift.version=3.7 | ||
# OPENSHIFT server domain | ||
com.redhat.xpaas.config.master.url=https://10.15.17.78:8443 | ||
# OPENSHIFT username/password | ||
com.redhat.xpaas.config.master.username=developer | ||
com.redhat.xpaas.config.master.password=developer | ||
# OPENSHIFT project/namespace to run the testsuite | ||
com.redhat.xpaas.config.master.namespace=radtests-one | ||
com.redhat.xpaas.config.login.maxattempts=20 | ||
# General | ||
# TODO: Change to a reasonable timeout, currently set to high for test dev, 1000=1sec | ||
com.redhat.xpaasqe.rad.config.timeout=500000000 | ||
com.redhat.xpaasqe.rad.config.httptimeout=5000000 | ||
com.redhat.xpaasqe.rad.config.webdriver=webdriver.chrome.driver | ||
com.redhat.xpaasqe.rad.config.webdriver.path=/usr/bin/chromedriver | ||
com.redhat.xpaasqe.rad.config.host.ip=10.15.17.78 | ||
com.redhat.xpaasqe.rad.config.route.suffix=.nip.io | ||
com.redhat.xpaasqe.rad.config.use.headless.tests=true | ||
# If running locally set to false | ||
com.redhat.xpaasqe.utilities.config.openshift.use.token=true | ||
com.redhat.xpaasqe.utilities.config.auth.token=J7JqMKgZvD1IujvzGQrflBZMQIlyrGmDuecfNBLXHRU | ||
# Ophicleide configs | ||
com.redhat.xpaasqe.rad.ophicleide.config.ophicleide.app.name=ophicleide | ||
com.redhat.xpaasqe.rad.ophicleide.config.model.name=Linconl's Plan of Reconstruction | ||
com.redhat.xpaasqe.rad.ophicleide.config.model.url=https://www.gutenberg.org/files/56039/56039-0.txt | ||
com.redhat.xpaasqe.rad.ophicleide.config.model.queryWord=james | ||
# Oshinko config | ||
com.redhat.xpaasqe.rad.oshinko.config.app.name=oshinko-web | ||
com.redhat.xpaasqe.rad.oshinko.config.service.account=oshinko | ||
com.redhat.xpaasqe.rad.oshinko.config.use.headless=true | ||
com.redhat.xpaasqe.rad.oshinko.config.sparkcluster.name=sparkc | ||
com.redhat.xpaasqe.rad.oshinko.config.oshinko.initialworkers=2 | ||
com.redhat.xpaasqe.rad.oshinko.config.oshinko.masterurl=spark://sparkc:7077 | ||
# MongoDB | ||
com.redhat.xpaasqe.rad.mongoDB.config.mongodb.name=ophicleide | ||
com.redhat.xpaasqe.rad.mongoDB.config.mongodb.app.name=mongodb | ||
# Hadoop info | ||
com.redhat.xpaasqe.rad.hadoop.host=et10.et.eng.bos.redhat.com | ||
com.redhat.xpaasqe.rad.hadoop.port=9000 | ||
com.redhat.xpaasqe.rad.hadoop.path=/integration/README.txt | ||
EOF | ||
|
Oops, something went wrong.