Skip to content

Commit

Permalink
Removed sni.velox.ch tests as the host does not seem to exist anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
matteocorti committed Feb 16, 2017
1 parent 4bb87dd commit 2b7cccc
Showing 1 changed file with 0 additions and 82 deletions.
82 changes: 0 additions & 82 deletions test/unit_tests.sh
Expand Up @@ -149,88 +149,6 @@ testAltNames2CaseInsensitive() {
assertEquals "wrong exit code" ${NAGIOS_CRITICAL} "${EXIT_CODE}"
}

# SNI Test from https://sni.velox.ch

testSNIWithHostName() {
# we test a host with the ServerName
if [ -z "${TRAVIS+x}" ] ; then
${SCRIPT} -H alice.sni.velox.ch
EXIT_CODE=$?
assertEquals "wrong exit code" "${NAGIOS_OK}" "${EXIT_CODE}"
else
echo "Skipping SNI tests on Travis CI"
fi

}

testSNIWithCorrectAlias() {
# we test a host with a correct Alias
if [ -z "${TRAVIS+x}" ] ; then
${SCRIPT} -H alice.sni.velox.ch -n carol.sni.velox.ch --altnames
EXIT_CODE=$?
assertEquals "wrong exit code" "${NAGIOS_OK}" "${EXIT_CODE}"
else
echo "Skipping SNI tests on Travis CI"
fi
}

testSNIWithIP() {
# we test a host with the IP and use --sni to get the right cert
if [ -z "${TRAVIS+x}" ] ; then
IP=$( host alice.sni.velox.ch | grep 'address' | sed 's/.*\ //' )
${SCRIPT} -H "${IP}" -n dave.sni.velox.ch --altnames --sni bob.sni.velox.ch
EXIT_CODE=$?
assertEquals "wrong exit code" "${NAGIOS_OK}" "${EXIT_CODE}"
else
echo "Skipping SNI tests on Travis CI"
fi

}

testSNIWithCorrectAlias2() {
# we test a host with a correct Alias
if [ -z "${TRAVIS+x}" ] ; then
${SCRIPT} -H carol.sni.velox.ch -n carol.sni.velox.ch --altnames
EXIT_CODE=$?
assertEquals "wrong exit code" "${NAGIOS_OK}" "${EXIT_CODE}"
else
echo "Skipping SNI tests on Travis CI"
fi
}

testSNIWithCorrectAlias3() {
# we test a host with a correct Alias
if [ -z "${TRAVIS+x}" ] ; then
${SCRIPT} -H carol.sni.velox.ch -n alice.sni.velox.ch --altnames
EXIT_CODE=$?
assertEquals "wrong exit code" "${NAGIOS_OK}" "${EXIT_CODE}"
else
echo "Skipping SNI tests on Travis CI"
fi
}

testSNIWithIncorrectAlias() {
# we test a host with a correct Alias
if [ -z "${TRAVIS+x}" ] ; then
${SCRIPT} -H alice.sni.velox.ch -n bob.sni.velox.ch --altnames
EXIT_CODE=$?
assertEquals "wrong exit code" "${NAGIOS_CRITICAL}" "${EXIT_CODE}"
else
echo "Skipping SNI tests on Travis CI"
fi
}

testSNIWithWildcard() {
# we test a host with a correct Alias
if [ -z "${TRAVIS+x}" ] ; then
${SCRIPT} -H mallory.sni.velox.ch -n blah.sni.velox.ch --altnames
EXIT_CODE=$?
assertEquals "wrong exit code" "${NAGIOS_OK}" "${EXIT_CODE}"
else
echo "Skipping SNI tests on Travis CI"
fi
}

# SSL Labs

testETHZWithSSLLabs() {
Expand Down

0 comments on commit 2b7cccc

Please sign in to comment.