_acs-authentication__auth_driver_get_parameter_values (private)
_acs-authentication__auth_driver_get_parameter_values
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 {{ aa_run_with_teardown -rollback -test_code { auth::authority::get -authority_id [auth::authority::local] -array authority set sync_retrieve_impl_id [acs_sc::impl::get_id -owner acs-authentication -name HTTPGet] array set parameters_array [auth::driver::get_parameters -impl_id $sync_retrieve_impl_id] set parameters [array names parameters_array] aa_true "List of parameters is not empty" {[llength $parameters] != 0} array set values [list] # Set the values foreach parameter $parameters { set value($parameter) [ad_generate_random_string] # Set a parameter value auth::driver::set_parameter_value -authority_id $authority(authority_id) -impl_id $sync_retrieve_impl_id -parameter $parameter -value $value($parameter) } # Get and verify values array set retrieved_value [auth::driver::get_parameter_values -authority_id $authority(authority_id) -impl_id $sync_retrieve_impl_id] foreach parameter $parameters { if { [aa_true "Parameter $parameter exists" [info exists retrieved_value($parameter)]] } { aa_equals "Parameter value retrieved is the one we set" $retrieved_value($parameter) $value($parameter) } array unset retrieved_value $parameter } aa_true "Only the right parameters were retrieved" {[array size retrieved_value] == 0} } }} { 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_driver_get_parameter_values (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo" } incr body_count }XQL Not present: Generic, PostgreSQL, Oracle