Commit Graph

13667 Commits

Author SHA1 Message Date
Ned Batchelder
eb85696347 Tests for safe_exec 2013-05-06 10:55:05 -04:00
Ned Batchelder
5d4b61c7f5 Better configuration for codejail. 2013-05-06 10:55:05 -04:00
Ned Batchelder
30748a06ff Try to find the sandbox in a few places. 2013-05-06 10:55:05 -04:00
Ned Batchelder
716a97ea59 Symbolic response doesn't need to pre-import symmath any more, I think? 2013-05-06 10:55:05 -04:00
Ned Batchelder
e8da1b8f61 Turn off our debugging levers 2013-05-06 10:55:05 -04:00
Ned Batchelder
3316aeb032 Add back the not_safe_exec implementation, for debugging. 2013-05-06 10:55:05 -04:00
Ned Batchelder
ebb2624719 Make jailpy tests more convenient and informative. 2013-05-06 10:55:05 -04:00
Ned Batchelder
7c498be606 Move packages around so we can install packages into the sandbox. 2013-05-06 10:55:05 -04:00
Ned Batchelder
70930c25c1 Remove the unsafe version of safe_exec, and document the safe one. 2013-05-06 10:55:04 -04:00
Ned Batchelder
5db5426e05 Use the real safe_exec; make the seed available in the context. 2013-05-06 10:55:04 -04:00
Ned Batchelder
19e3a0ceb9 Implement safe_exec on top of jailpy (old unsafe safe_exec is still here); Remove some crazy stuff from the context; always pass globals and locals, locals are the things that can be changed. 2013-05-06 10:55:04 -04:00
Ned Batchelder
908f44b9cd snippets aren't used. Remove them. 2013-05-06 10:55:04 -04:00
Ned Batchelder
249ba4be33 Finish the test for computed_answer 2013-05-06 10:55:04 -04:00
Ned Batchelder
248017b4ea No longer need to support <coderesponse> without <codeparam>, so scrap the code. 2013-05-06 10:55:04 -04:00
Ned Batchelder
a6677aa0a8 Computed answers are run through safe_exec. 2013-05-06 10:55:04 -04:00
Ned Batchelder
37ca6bf77e Move our specialization of safe_exec into a new module to avoid circular imports. 2013-05-06 10:55:04 -04:00
Ned Batchelder
6297d64528 Now these can be in the same test class 2013-05-06 10:55:04 -04:00
Ned Batchelder
ff1df569cb Refactor submitting problems so we don't need custom code for each test. 2013-05-06 10:55:04 -04:00
Ned Batchelder
33abe54e0d Work in progress to sandbox the uses of eval in LMS. 2013-05-06 10:55:03 -04:00
Ned Batchelder
0a6761c9a5 Clean up this xml data file. 2013-05-06 10:55:03 -04:00
Ned Batchelder
9249bafd00 Add a test of a bad answer also. 2013-05-06 10:55:03 -04:00
Ned Batchelder
e69a073161 Add a test for the Python in schemaresponse, and refactor the tests while I was in there. 2013-05-06 10:55:03 -04:00
Ned Batchelder
0c47f1e0b9 safe_exec can load modules for you. 2013-05-06 10:55:03 -04:00
Ned Batchelder
9827a0e218 Oops, this line can go too. 2013-05-06 10:55:03 -04:00
Ned Batchelder
4bb5d14f70 Test that we can't write files 2013-05-06 10:55:03 -04:00
Ned Batchelder
9cc43f1d9b Simplify this test setup. 2013-05-06 10:55:03 -04:00
Ned Batchelder
6c609afdb1 LazyModule for lazily proxying module imports. 2013-05-06 10:55:03 -04:00
Ned Batchelder
17f9e4b27d A turd left over from a test 2013-05-06 10:55:03 -04:00
Ned Batchelder
f8c5305352 Add some malware tests 2013-05-06 10:55:02 -04:00
Ned Batchelder
a9979b8aae Killing processes isn't working. 2013-05-06 10:55:02 -04:00
Ned Batchelder
70c37130ac A codejail package to run code securely. 2013-05-06 10:55:02 -04:00
Ned Batchelder
2717360de9 Make this work with non-Django test suites also. 2013-05-06 10:55:02 -04:00
jarv
bf5ac6c263 Merge pull request #1950 from edx/jarv/drupal-new/iframe
Jarv/drupal new/iframe
2013-05-06 07:46:28 -07:00
David Baumgold
234ca0e076 Responding to @jzoldak's comments 2013-05-06 10:29:26 -04:00
David Baumgold
ee6d68e2e0 grammar 2013-05-06 10:29:26 -04:00
David Baumgold
2a09f6bac1 Clarified based on @shnayder's comment 2013-05-06 10:29:26 -04:00
David Baumgold
fa87cccb9b Document old-style rake lms command 2013-05-06 10:29:26 -04:00
David Baumgold
98243b2b53 Document django-admin[update_templates] step 2013-05-06 10:29:26 -04:00
Ned Batchelder
03470fc48e Add a mention of create-dev-env.sh 2013-05-06 10:29:26 -04:00
David Baumgold
06ade12f6a Also need to install Mongo 2013-05-06 10:29:26 -04:00
David Baumgold
fccee7a1e3 Node does virtual environments using npm 2013-05-06 10:29:26 -04:00
David Baumgold
1bda218e17 Clarify purpose of data dir 2013-05-06 10:29:26 -04:00
David Baumgold
a0727ac226 Virtualenv is a tool, and should be surrounded by backticks 2013-05-06 10:29:26 -04:00
David Baumgold
a58f39695a Remove install.txt, because all that information is in the README.md file now 2013-05-06 10:29:25 -04:00
David Baumgold
457b678af7 Wrote a proper README file
So that no one else will have to go through what I went through. Hopefully.
2013-05-06 10:29:25 -04:00
Jay Zoldak
8ef88fa5b0 Fix tests that randomly fail when run in concurrent jobs on jenkins. 2013-05-06 10:24:38 -04:00
David Baumgold
5e288b60ca Merge pull request #1943 from edx/cleanup
One more attempt at making linters happier
2013-05-06 07:15:21 -07:00
Diana Huang
5b3f5a47de Add marketing_link to the Template context dictionary.
Pep8 fixes
2013-05-06 10:03:00 -04:00
cahrens
e44c6b6bf8 Don't reach in to default value. 2013-05-03 17:05:02 -04:00
cahrens
32d67be5f5 Get rid of _computed_default. 2013-05-03 16:42:41 -04:00