forked from capability-boosters-dev/canvas-lms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refs CNVS-257 when completing an upload by posting to the preflight response' url with preflight params and then pinging success url, etc. do it all through one method that's the source of truth on "how", instead of implementing a bajillion times in a bajillion ways test-plan: [preamble] * except where otherwise noted, test each of these for each configuration of: - local storage (inst-fs disabled and config/file_store.yml set to local); - S3 storage (inst-fs disabled, config/file_store.yml set to s3, and config/amazon_s3.yml present); and - inst-fs storage (inst-fs enabled, service running) * when testing with inst-fs, you'll want the service running with REQUIRE_AUTH=false; the commit that fixes inst-fs auth is dependent on this commit * except where otherwise noted, uploads should be fully functional for each of these categories * these categories should exercise all the modified code, but are not necessarily exhaustive of possible upload sites. if you think of others you want to test, go ahead [course and user files] * go to /files * upload a file * repeat for /courses/x/files [file upload quiz question] * create a quiz with a question with the "File Upload" type * as a student, take the quiz * upload a file as the answer to that question [course image] * enable course images (a feature flag at /accounts/self/settings) * go to /courses/x/settings and * open the course image dialog * upload an image for the course [upload file to module] * go to /courses/x/modules * create a module * open add module item dialog * select "File" as the item type, and then "[ New File ]" * select and upload a file [content migration] * go to /courses/x/content_exports * create and download a course export (a *.imscc file) * go to /courses/x/content_migrations * upload the previously downloaded *.imscc file * NOTE: when attempting with inst-fs the import _job_ will fail. but the upload portion should still work; verify by downloading the file associated with the import. fixing the job is a separate work task (RECNVS-16) [user avatar] * enable user avatars (a checkbox at /accounts/self/settings) * go to /profile/settings * upload a new avatar * NOTE: with inst-fs enabled, local storage or S3 will still be used. this is a separate bug (RECNVS-237) [upload submission] * have an assignment with submission type "File Upload" * as a student, upload a file as a submission to the assignment * NOTE: with inst-fs enabled, local storage or S3 will still be used. this is a separate bug (RECNVS-237) Change-Id: Iad52879add953326880aabf3c75657e32f8d3e8e Reviewed-on: https://gerrit.instructure.com/138068 Reviewed-by: Andrew Huff <[email protected]> Reviewed-by: Clay Diffrient <[email protected]> Tested-by: Jenkins QA-Review: Collin Parrish <[email protected]> Product-Review: Jacob Fugal <[email protected]>
- Loading branch information
Showing
16 changed files
with
323 additions
and
360 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.