_acs-authentication__auth__delete_local_account (private)
_acs-authentication__auth__delete_local_account
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 {{ aa_run_with_teardown -rollback -test_code { set authority_id [auth::authority::get_id -short_name "acs_testing"] set result [acs::test::user::create] set user_id [dict get $result user_id] set username [dict get $result username] set account_status [auth::get_local_account_status -user_id $user_id] aa_equals "User '$username' should have local status 'ok'" ok $account_status set registered_p [acs_user::registered_user_p -user_id $user_id] aa_true "User '$username' is currently approved" $registered_p aa_log "Calling auth::delete_local_account on the user" set r [auth::delete_local_account -authority_id $authority_id -username $username] set registered_p [acs_user::registered_user_p -user_id $user_id] aa_false "User '$username' is not approved anymore" $registered_p aa_true "User '$username' still exists" [db_0or1row get_user { select 1 from users where user_id = :user_id }] set account_status [auth::get_local_account_status -user_id $user_id] aa_equals "User '$username' should have local status 'closed'" closed $account_status set not_a_user [acs_magic_object security_context_root] set account_status [auth::get_local_account_status -user_id $not_a_user] aa_equals "Object '$not_a_user' is not an account" no_account $account_status aa_true "Proc returns 'delete_status'" [dict exists $r delete_status] aa_true "Proc returns 'delete_message'" [dict exists $r delete_status] } }} { 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__delete_local_account (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo" } incr body_count }XQL Not present: Generic, PostgreSQL, Oracle