+Wed Nov 6 17:48:49 1996 Barry Jaspan <bjaspan@mit.edu>
+
+ * lib/lib.t: global $test everywhere it is used
+
+ * api.2/mod-principal-v2.exp: init to kadmin/admin, not
+ kadmin/changepw; specify real principal, not null (obviously I
+ never ran these tests via the client library before)
+
Fri Nov 1 13:15:37 1996 Barry Jaspan <bjaspan@mit.edu>
* api.2/get-principal-v2.exp, api.2/mod-principal-v2.exp: update
}
if {! [cmd {
- kadm5_init admin admin $KADM5_CHANGEPW_SERVICE null \
+ kadm5_init admin admin $KADM5_ADMIN_SERVICE null \
$KADM5_STRUCT_VERSION $KADM5_API_VERSION_2 \
server_handle
}]} {
} $test]
# test 101
- one_line_fail_test {
- kadm5_modify_principal $server_handle null \
+ one_line_fail_test [format {
+ kadm5_modify_principal $server_handle [simple_principal "%s/a"] \
{KADM5_LAST_SUCCESS}
- } "BAD_MASK"
+ } $test] "BAD_MASK"
# test 102
- one_line_fail_test {
- kadm5_modify_principal $server_handle null \
+ one_line_fail_test [format {
+ kadm5_modify_principal $server_handle [simple_principal "%s/a"] \
{KADM5_LAST_FAILED}
- } "BAD_MASK"
+ } $test] "BAD_MASK"
# test 103
- one_line_fail_test {
- kadm5_modify_principal $server_handle null \
+ one_line_fail_test [format {
+ kadm5_modify_principal $server_handle [simple_principal "%s/a"] \
{KADM5_FAIL_AUTH_COUNT}
- } "BAD_MASK"
+ } $test] "BAD_MASK"
# test 103.5
- one_line_fail_test {
- kadm5_modify_principal $server_handle null \
+ one_line_fail_test [format {
+ kadm5_modify_principal $server_handle [simple_principal "%s/a"] \
{KADM5_KEY_DATA}
- } "BAD_MASK"
+ } $test] "BAD_MASK"
# test 105
one_line_fail_test [format {
# case.
#
proc lib_start_api {} {
- global spawn_id lib_pid
+ global spawn_id lib_pid test
if {! [api_isrunning $lib_pid]} {
api_exit
}
proc tcl_cmd {command} {
- global prompt
- global spawn_id
+ global prompt spawn_id test
send "[string trim $command]\n"
expect {
}
proc resync {} {
- global prompt
- global spawn_id
+ global prompt spawn_id test
expect {
-re "$prompt$" {}