canvas-lms/gems/canvas_http
Jeremy Stanley 4326bd8460 enhance course link validator
this commit includes the following enhancements:
 * broken course card images are detected
 * deleted flickr images (redirects to image_unavailable.png)
   are treated as broken
 * the type and icon for each resource that has broken links
   are included in the list
 * broken links in each resource are grouped by the type of
   brokenness, with explanatory text
 * broken external URL items in modules are grouped by module
 * link text for bad links is shown, rather than just
   the URL

test plan:
 - add the following to various objects in a course:
   - a flickr image (that isn't deleted or broken)
   - a flickr image where the name part of the URL has been changed
     (so it redirects to an "image_unavailable.png")
   - an image with an invalid hostname
     (so it is unreachable)
   - a broken image of some sort as the course card image
   - links to an unpublished item
   - some external URL module items in multiple modules
     with broken URLs
 - run the Course Link Validator (from Course Settings, right sidebar;
   ensure jobs are running)
 - make sure the good flickr image isn't reported as broken
 - make sure the broken flickr image is
 - make sure the results include the course card image
 - make sure the unpublished item appears
   when the "Show links to unpublished content" is checked
 - make sure the broken external URL module items appear
   under their corresponding modules

closes ADMIN-2280

Change-Id: Ia30d128eb19244cca34f64dc716d7c6f5ef1cdf8
Reviewed-on: https://gerrit.instructure.com/173440
Reviewed-by: Carl Kibler <ckibler@instructure.com>
Tested-by: Jenkins
QA-Review: Anju Reddy <areddy@instructure.com>
Product-Review: Christi Wruck
2018-12-07 20:23:21 +00:00
..
lib enhance course link validator 2018-12-07 20:23:21 +00:00
spec spec: skip prepended class method stubbings for ruby 2.5.1 2018-09-27 12:29:22 +00:00
Gemfile restore and fix "stream inst-fs direct uploads" 2018-08-30 18:37:07 +00:00
Rakefile Extract canvas_http into seperate gem. 2014-04-02 17:22:38 +00:00
canvas_http.gemspec restore and fix "stream inst-fs direct uploads" 2018-08-30 18:37:07 +00:00
test.sh simplify gem test harnesses 2016-01-19 17:52:58 +00:00