standardise /tmp to /opt
This commit is contained in:
10
.travis.yml
10
.travis.yml
@ -30,23 +30,23 @@ before_script:
|
||||
script:
|
||||
- python setup.py install
|
||||
# Test successful scan download and parsing
|
||||
- rm -rf /tmp/VulnWhisperer
|
||||
- rm -rf /opt/VulnWhisperer
|
||||
- vuln_whisperer -F -c configs/test.ini --mock --mock_dir ${TEST_PATH}
|
||||
# Run a second time with no scans to import
|
||||
- vuln_whisperer -F -c configs/test.ini --mock --mock_dir ${TEST_PATH}
|
||||
# Test one failed scan
|
||||
- rm -rf /tmp/VulnWhisperer
|
||||
- rm -rf /opt/VulnWhisperer
|
||||
- rm -f ${TEST_PATH}/nessus/GET_scans_exports_164_download
|
||||
- vuln_whisperer -F -c configs/test.ini --mock --mock_dir ${TEST_PATH}; [[ $? -eq 1 ]]
|
||||
# Test two failed scans
|
||||
- rm -rf /tmp/VulnWhisperer
|
||||
- rm -rf /opt/VulnWhisperer
|
||||
- rm -f ${TEST_PATH}/qualys_vuln/scan_1553941061.87241
|
||||
- vuln_whisperer -F -c configs/test.ini --mock --mock_dir ${TEST_PATH}; [[ $? -eq 2 ]]
|
||||
# Test only nessus
|
||||
- rm -rf /tmp/VulnWhisperer
|
||||
- rm -rf /opt/VulnWhisperer
|
||||
- vuln_whisperer -F -c configs/test.ini -s nessus --mock --mock_dir ${TEST_PATH}; [[ $? -eq 1 ]]
|
||||
# Test only qualy_vuln
|
||||
- rm -rf /tmp/VulnWhisperer
|
||||
- rm -rf /opt/VulnWhisperer
|
||||
- vuln_whisperer -F -c configs/test.ini -s qualys_vuln --mock --mock_dir ${TEST_PATH}; [[ $? -eq 1 ]]
|
||||
- bash tests/test-docker.sh
|
||||
notifications:
|
||||
|
@ -20,8 +20,7 @@ RUN python setup.py clean --all && \
|
||||
|
||||
|
||||
WORKDIR /opt/VulnWhisperer
|
||||
RUN python setup.py install && \
|
||||
ln -s /opt/VulnWhisperer /tmp/VulnWhisperer
|
||||
RUN python setup.py install
|
||||
|
||||
|
||||
CMD vuln_whisperer -c /opt/VulnWhisperer/frameworks_example.ini
|
||||
|
@ -4,8 +4,8 @@ hostname=nessus
|
||||
port=443
|
||||
username=nessus_username
|
||||
password=nessus_password
|
||||
write_path=/tmp/VulnWhisperer/data/nessus/
|
||||
db_path=/tmp/VulnWhisperer/data/database
|
||||
write_path=/opt/VulnWhisperer/data/nessus/
|
||||
db_path=/opt/VulnWhisperer/data/database
|
||||
trash=false
|
||||
verbose=true
|
||||
|
||||
@ -15,8 +15,8 @@ hostname=tenable
|
||||
port=443
|
||||
username=tenable.io_username
|
||||
password=tenable.io_password
|
||||
write_path=/tmp/VulnWhisperer/data/tenable/
|
||||
db_path=/tmp/VulnWhisperer/data/database
|
||||
write_path=/opt/VulnWhisperer/data/tenable/
|
||||
db_path=/opt/VulnWhisperer/data/database
|
||||
trash=false
|
||||
verbose=true
|
||||
|
||||
@ -26,8 +26,8 @@ enabled = false
|
||||
hostname = qualys_web
|
||||
username = exampleuser
|
||||
password = examplepass
|
||||
write_path=/tmp/VulnWhisperer/data/qualys_web/
|
||||
db_path=/tmp/VulnWhisperer/data/database
|
||||
write_path=/opt/VulnWhisperer/data/qualys_web/
|
||||
db_path=/opt/VulnWhisperer/data/database
|
||||
verbose=true
|
||||
|
||||
# Set the maximum number of retries each connection should attempt.
|
||||
@ -42,8 +42,8 @@ enabled = true
|
||||
hostname = qualys_vuln
|
||||
username = exampleuser
|
||||
password = examplepass
|
||||
write_path=/tmp/VulnWhisperer/data/qualys_vuln/
|
||||
db_path=/tmp/VulnWhisperer/data/database
|
||||
write_path=/opt/VulnWhisperer/data/qualys_vuln/
|
||||
db_path=/opt/VulnWhisperer/data/database
|
||||
verbose=true
|
||||
|
||||
[detectify]
|
||||
@ -54,8 +54,8 @@ hostname = detectify
|
||||
username = exampleuser
|
||||
#password variable used as secretKey
|
||||
password = examplepass
|
||||
write_path =/tmp/VulnWhisperer/data/detectify/
|
||||
db_path = /tmp/VulnWhisperer/data/database
|
||||
write_path =/opt/VulnWhisperer/data/detectify/
|
||||
db_path = /opt/VulnWhisperer/data/database
|
||||
verbose = true
|
||||
|
||||
[openvas]
|
||||
@ -64,8 +64,8 @@ hostname = openvas
|
||||
port = 4000
|
||||
username = exampleuser
|
||||
password = examplepass
|
||||
write_path=/tmp/VulnWhisperer/data/openvas/
|
||||
db_path=/tmp/VulnWhisperer/data/database
|
||||
write_path=/opt/VulnWhisperer/data/openvas/
|
||||
db_path=/opt/VulnWhisperer/data/database
|
||||
verbose=true
|
||||
|
||||
[jira]
|
||||
@ -73,8 +73,8 @@ enabled = false
|
||||
hostname = jira-host
|
||||
username = username
|
||||
password = password
|
||||
write_path = /tmp/VulnWhisperer/data/jira/
|
||||
db_path = /tmp/VulnWhisperer/data/database
|
||||
write_path = /opt/VulnWhisperer/data/jira/
|
||||
db_path = /opt/VulnWhisperer/data/database
|
||||
verbose = true
|
||||
dns_resolv = False
|
||||
|
||||
|
@ -12,7 +12,7 @@ saved_objects_file="kibana_APIonly.json"
|
||||
|
||||
until curl -s "$elasticsearch_url/_cluster/health?pretty" | grep '"status"' | grep -qE "green|yellow"; do
|
||||
curl -s "$elasticsearch_url/_cluster/health?pretty"
|
||||
echo "Waiting for Elasticsearch"
|
||||
echo "Waiting for Elasticsearch..."
|
||||
sleep 5
|
||||
done
|
||||
|
||||
@ -30,8 +30,8 @@ else
|
||||
fi
|
||||
|
||||
until [ "`curl -s -I "$kibana_url"/status | head -n1 |cut -d$' ' -f2`" == "200" ]; do
|
||||
curl -I "$kibana_url"/status
|
||||
echo "Waiting for Kibana"
|
||||
curl -s -I "$kibana_url"/status
|
||||
echo "Waiting for Kibana..."
|
||||
sleep 5
|
||||
done
|
||||
|
||||
|
Reference in New Issue
Block a user