From: Barry Jaspan Date: Thu, 7 Nov 1996 19:13:39 +0000 (+0000) Subject: * api.2/init-v2.exp: update tests for new init error codes and X-Git-Tag: krb5-1.0-freeze1~96 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4fa87aea7c803eaa592e25a22d3da2566a654244;p=krb5.git * api.2/init-v2.exp: update tests for new init error codes and get_config_params behavior when KDC_PROFILE does not exist git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9329 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/kadm5/unit-test/ChangeLog b/src/lib/kadm5/unit-test/ChangeLog index 74cfaf2f0..e0ce4491a 100644 --- a/src/lib/kadm5/unit-test/ChangeLog +++ b/src/lib/kadm5/unit-test/ChangeLog @@ -1,5 +1,8 @@ Thu Nov 7 13:02:28 1996 Barry Jaspan + * api.2/init-v2.exp: update tests for new init error codes and + get_config_params behavior when KDC_PROFILE does not exist + * api.2/mod-principal-v2.exp: provide finer-grained test numbers in case of failure diff --git a/src/lib/kadm5/unit-test/api.2/init-v2.exp b/src/lib/kadm5/unit-test/api.2/init-v2.exp index 8927e6b5b..bf1a7df49 100644 --- a/src/lib/kadm5/unit-test/api.2/init-v2.exp +++ b/src/lib/kadm5/unit-test/api.2/init-v2.exp @@ -15,7 +15,7 @@ proc test100 {} { [config_params {KADM5_CONFIG_PROFILE} /does-not-exist] \ $KADM5_STRUCT_VERSION $KADM5_API_VERSION_2 \ server_handle - } "BADFORMAT" + } "MISSING_CONF_PARAMS" } if {$RPC} test100 @@ -49,7 +49,7 @@ proc test102 {} { [config_params {KADM5_CONFIG_ADMIN_SERVER} does.not.exist] \ $KADM5_STRUCT_VERSION $KADM5_API_VERSION_2 \ server_handle - } "CONFIG_BADFORMAT" + } "BAD_SERVER_NAME" } if {$RPC} test102 @@ -571,4 +571,23 @@ proc test153 {} { } if {$RPC} test153 +test "init 154" +proc test154 {} { + global test env + + set orig $env(KRB5_KDC_PROFILE) + set env(KRB5_KDC_PROFILE) /does-not-exist + api_exit; api_start + set env(KRB5_KDC_PROFILE) $orig + + one_line_fail_test { + kadm5_init admin admin $KADM5_ADMIN_SERVICE null \ + $KADM5_STRUCT_VERSION $KADM5_API_VERSION_2 \ + server_handle + } "ENOENT" + + api_exit; lib_start_api +} +if {! $RPC} test154 + return ""