Skip to content

Commit

Permalink
Updated dns testsuite according real world example.
Browse files Browse the repository at this point in the history
  • Loading branch information
mchf committed May 28, 2013
1 parent edcc24c commit 2dbf8fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions testsuite/tests/dns.ycp
Expand Up @@ -30,6 +30,7 @@ list<string> hostnames = [
"1.1.1.1 1-hostname alias",
"2.2.2.2 hostname-2",
"3.3.3.3 -invalid_hostname-",
"9.114.214.42 9117-mma-1-lp1.pok.stglabs.ibm.com"
];

import "DNS";
Expand All @@ -38,5 +39,6 @@ Assert::Equal( "localhost", DNS::GetHostnameFromGetent( hostnames[ 0]:"") );
Assert::Equal( "1-hostname", DNS::GetHostnameFromGetent( hostnames[ 1]:"") );
Assert::Equal( "hostname-2", DNS::GetHostnameFromGetent( hostnames[ 2]:"") );
Assert::Equal( "", DNS::GetHostnameFromGetent( hostnames[ 3]:"") );
Assert::Equal( "9117-mma-1-lp1.pok.stglabs.ibm.com", DNS::GetHostnameFromGetent( hostnames[ 4]:"") );

} /* EOF */

0 comments on commit 2dbf8fd

Please sign in to comment.