_acs-authentication__auth_password_recover (private)
_acs-authentication__auth_password_recover
Defined in packages/acs-authentication/tcl/test/acs-authentication-procs.tcl
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: set _aa_export {} set body_count 1 foreach testcase_body {{ auth::test::get_password_vars -array_name test_vars # Stub get_forgotten_url to avoid the redirect aa_stub auth::password::get_forgotten_url { return "" } # We don't want email to go out aa_stub auth::password::email_password { return } aa_run_with_teardown -rollback -test_code { aa_log [list auth::password::recover_password -authority_id $test_vars(authority_id) -username $test_vars(username)] aa_silence_log_entries -severities error { # # Handle case without errors, when mail is not configured. # array set password_result [auth::password::recover_password -authority_id $test_vars(authority_id) -username $test_vars(username)] } if {[::acs_mail_lite::configured_p]} { aa_equals "status ok" $password_result(password_status) "ok" } else { aa_equals "SMTP host not configured" $password_result(password_status) "failed_to_connect" } aa_true "nonempty message" {$password_result(password_message) ne ""} } }} { aa_log "Running testcase body $body_count" set ::__aa_test_indent [info level] set catch_val [catch $testcase_body msg] if {$catch_val != 0 && $catch_val != 2} { aa_log_result "fail" "auth_password_recover (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo" } incr body_count }XQL Not present: Generic, PostgreSQL, Oracle