bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone

Blame tests/p_telnet/10-test_telnet.sh

Madhurranjan Mohaan 692517
#!/bin/bash
Madhurranjan Mohaan 692517
Madhurranjan Mohaan 692517
# Author: Madhurranjan Mohaan <madhurranjan.mohaan@gmail.com>
Madhurranjan Mohaan 692517
Madhurranjan Mohaan 692517
t_Log "Running $0 - testing telnet against ssh port"
Madhurranjan Mohaan 692517
t_Log "Making sure port 22 is listening by calling ssh installer"
Madhurranjan Mohaan 692517
Madhurranjan Mohaan 3764b5
t_InstallPackage openssh-server openssh-clients 
Madhurranjan Mohaan 3764b5
t_ServiceControl sshd start
Madhurranjan Mohaan 692517
Madhurranjan Mohaan 692517
telnet_port_22=`telnet 127.0.0.1 22 << EOH
Madhurranjan Mohaan 692517
EOH`
Madhurranjan Mohaan 692517
echo $telnet_port_22 | grep "Escape character is '^]'"
Madhurranjan Mohaan 692517
t_CheckExitStatus $?