_acs-authentication__auth__refresh_login (private)
_acs-authentication__auth__refresh_login
Defined in packages/acs-authentication/tcl/test/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 {{ try { set endpoint_name test__auth__refresh_login ns_register_proc GET $endpoint_name { set auth_level [ns_queryget auth_level] if {$auth_level ne ""} { ad_conn -set auth_level $auth_level } ad_unless_script_abort { set user_id [auth::refresh_login] } { ns_return 200 text/plain $user_id } } set result [acs::test::user::create] set user_id [dict get $result user_id] set d [acs::test::http -user_id $user_id -method GET /$endpoint_name] acs::test::reply_has_status_code $d 200 aa_equals "Response must be the supplied user_id '$user_id'" [dict get $d body] $user_id set d [acs::test::http -user_id $user_id -method GET /$endpoint_name?auth_level=expired] acs::test::reply_has_status_code $d 302 } finally { ns_unregister_op GET $endpoint_name acs_user::delete -user_id $user_id -permanent } }} { 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__refresh_login (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo" } incr body_count }XQL Not present: Generic, PostgreSQL, Oracle