Blame tests/0_common/30_dns_works.sh

Karanbir Singh 2dd0be
#!/bin/bash
Karanbir Singh 43deec
Karanbir Singh 2dd0be
t_Log "Running $0 - testing to see if DNS works"
Karanbir Singh 23b6ba
if [ $SKIP_QA_HARNESS -eq 1 ]; then 
Athmane Madjoudj efcaf0
  HOST=www.centos.org
Karanbir Singh 34da5e
else
Karanbir Singh 34da5e
  HOST=repo.centos.qa
Karanbir Singh 34da5e
fi
Karanbir Singh 43deec
Karanbir Singh 43deec
# its important we dont hit a dns record with a wildcard like centos.org
129666
getent hosts $HOST >/dev/null
Karanbir Singh 43deec
Karanbir Singh 2dd0be
t_CheckExitStatus $?
Karanbir Singh 43deec
Karanbir Singh 43deec
# implied results:
Karanbir Singh 43deec
# - network works
Karanbir Singh 43deec
# - default route is really routeable
Karanbir Singh 43deec
# - atleast one network link on the machine is working
ab76b0
# - kernel' ip stack is functional