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

Commit

Permalink
Tests without utility folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Zak Hassan committed Feb 1, 2018
1 parent 90021f4 commit 1942dd5
Show file tree
Hide file tree
Showing 104 changed files with 7,231 additions and 201 deletions.
24 changes: 24 additions & 0 deletions Dockerfile
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"]
201 changes: 0 additions & 201 deletions LICENSE

This file was deleted.

15 changes: 15 additions & 0 deletions install-env.sh
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
25 changes: 25 additions & 0 deletions logstash-demo.conf
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
}
}
56 changes: 56 additions & 0 deletions overwritecfg.sh
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

Loading

0 comments on commit 1942dd5

Please sign in to comment.