From 161f397dbcccf6cf824eee00151ea89c12a1436c Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Tue, 11 Sep 2007 01:12:49 +0000 Subject: [PATCH] Before the error-message tests, make sure the host principal exists, so we get consistent errors. Expect the "keytab not found" error, rather than the "principal doesn't exist" error. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19931 dc483132-0cff-0310-8789-dd5450dbe970 --- src/tests/dejagnu/krb-standalone/gssftp.exp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/tests/dejagnu/krb-standalone/gssftp.exp b/src/tests/dejagnu/krb-standalone/gssftp.exp index a66586ac5..53bc26527 100644 --- a/src/tests/dejagnu/krb-standalone/gssftp.exp +++ b/src/tests/dejagnu/krb-standalone/gssftp.exp @@ -180,6 +180,8 @@ proc ftp_test { } { || ![kinit $env(USER) $env(USER)$KEY 0]} { return } + # Force the host key to exist, so we get consistent errors below. + catch "add_random_key host/$hostname 0" # # Save settings of KRB5_KTNAME @@ -224,11 +226,11 @@ proc ftp_test { } { expect "GSSAPI accepted as authentication type" expect -re "Trying to authenticate to " # The ftp client doesn't print the gssapi error except on the last attempt. +# expect "GSSAPI error major: Unspecified GSS failure." +# expect -re "GSSAPI error minor: Key table file '.*' not found" + expect -re "Trying to authenticate to " expect "GSSAPI error major: Unspecified GSS failure." expect -re "GSSAPI error minor: Key table file '.*' not found" -# expect -re "Trying to authenticate to " -# expect "GSSAPI error major: Unspecified GSS failure." -# expect -re "GSSAPI error minor: Server host/.* not found in Kerberos database" expect -re "Name (.*): " close -i $spawn_id wait -i $spawn_id -- 2.26.2