file_storage::twt::delete_url (private)

 file_storage::twt::delete_url url_title

Defined in packages/file-storage/tcl/test/tclwebtest-procs.tcl

Deletes a URL from the UI.

Parameters:
url_title

Partial Call Graph (max 5 caller/called nodes):
%3 aa_error aa_error (public) aa_log aa_log (public) file_storage::twt::delete_url file_storage::twt::delete_url file_storage::twt::delete_url->aa_error file_storage::twt::delete_url->aa_log

Testcases:
No testcase defined.
Source code:

    set response 0

    tclwebtest::link follow {properties}

    # Follow the Delete URL link
    tclwebtest::link follow {delete}

    set response_url [tclwebtest::response url]

    if { [string match  "*/dotlrn/file-storage/\?folder*id*" $response_url] } {

        if {![catch {tclwebtest::link find $url_title} errmsg]} {
            aa_error "file_storage::twt::delete_url $errmsg : Didn't delete a URL"
        } else {
            aa_log "a URL deleted"
            set response 1
        }

    } else {
        aa_error "file_storage::twt::delete_url  failed, bad response url : $response_url"
    }

    return $response
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: