This allows us to have external tools that let the user pick
content to insert that has a different URL than what the tool
is configured to use. That way you could, for example, more
easily have a Khan Academy tool that let you insert Khan
Academy resources as items in a module, instead of just as
content in the WYSIWYG like you get now.
test plan:
- configure the dummy external tool included in Canvas
("<canvasdomain>/selection_test" is the launch URL,
make sure it's a resource_selection tool -- there's
a template xml in spec/fixtures/selection_test_lti.xml)
- use it to insert the blti module link which will be a link
to example.com instead of <canvasdomain>
- verify that the link launches as an lti tool launch
with the dummy tool's credentials (check the request's
POST parameters)
- configure an external tool without resource selection
- pick it from the list of tools to insert an item into a module
- manually edit the link and change the URL to something different
- verify that when clicking the changed URL, Canvas doesn't
know what to do with it (it should redirect back to the modules
page).
Change-Id: Ic2bf3145fe87e19307b185dd1c437f79d1282a49
Reviewed-on: https://gerrit.instructure.com/9914
Reviewed-by: Bracken Mosbacker <bracken@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>