Skip to content

Commit

Permalink
Travis Env all IPs are Private IPs.
Browse files Browse the repository at this point in the history
  • Loading branch information
chalbersma committed Jan 31, 2020
1 parent 87ce88e commit 90b0cba
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions travis/schedule_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,28 +52,3 @@ else
echo -e "test_hostcollection.sql didn't work properly. Please investigate travis configuration."
exit 1
fi

ip_intel_test="$(mktemp /tmp/ipintel.XXXXX)"

# Test that it landed properly. Grab the results for host #1
sudo bash -c "mysql manowar2 -u root < travis/artifacts/test_ipintel.sql > ${ip_intel_test} "

didit_ipintel=$?

if [[ ${didit_ipintel:-0} -eq 0 ]] ; then
# If Worked
results_found=$(wc -l < "${ip_intel_test}")
if [[ ${results_found:-0} -gt 0 ]] ; then
# There are results
echo -e "Testing host 1, found ${results_found} Intel Entries. Looks Good"
echo -e "Debug info for host. Printing IP Intel"
cat "${ip_intel_test}"
else
# Didn't Find any results
echo -e "Testing host 1, found no intel. This is an error."
exit 1
fi
else
echo -e "test_ipintel.sql didn't work properly. Please investigate travis configuration."
exit 1
fi

0 comments on commit 90b0cba

Please sign in to comment.