bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone
Blob Blame History Raw
#!/bin/sh
# Author: Athmane Madjoudj <athmanem@gmail.com>

t_Log "Running $0 - check that jwhois can connect to whois server and get the info."

# Dummy whois server
echo 'tf_jwhois_test_response' | nc -l 43 &
sleep 1

whois -h 127.0.0.1 domain.tld | grep -q 'tf_jwhois_test_response'

t_CheckExitStatus $?