summaryrefslogtreecommitdiffstats
path: root/tests/test_no_admin_token_auth.py
Commit message (Collapse)AuthorAgeFilesLines
* Move temporary test files into tests/tmpJamie Lennox2013-07-111-3/+3
| | | | | | | | | | | | | Add a new folder tests/tmp and move all temporary test artefacts like sqlite dbs into the folder. This has a number of advantages: - clean up .gitignore and tests folder. - common/sql/util.py files didn't really belong in common as they were test only. - by doing ``sudo mount -t tmpfs -o size=16M tmpfs tests/tmp; sudo chown $USER: tests/tmp`` tests speed up about 3x (ext4; credit ayoung's blog). Change-Id: I9b02a5273dd27db963e9a26085b7456f4c5f6a41
* Work without admin_token_auth middlewareBrant Knudson2013-07-031-0/+47
Requests would fail with a 500 Internal Server Error if the admin_token_auth middleware was removed from the paste pipeline. The requests would fail because the code assumed that the context contained an 'is_admin' element, but that element was only in the context if the admin_token_auth middleware was in the pipeline. This change makes it so that if the admin_token_auth middleware isn't in the paste pipeline requests will not fail with a 500 Internal Server Error. Change-Id: Ic064785226ee70ee475d8f72fea3c2ae6971a07f Fixes: bug 1190708