Commit Graph

113 Commits

Author SHA1 Message Date
Aaron Lindsay 3c5e726f93 testing: Error on teardown failures 2017-10-11 05:48:31 -04:00
Aaron Lindsay 14b0839b41 Add security tests 2017-10-09 21:11:50 -04:00
Aaron Lindsay 4953063286 testing: Make handlers.Error obey the standard 'error' interface
And return these types from test helper functions
2017-10-09 21:11:50 -04:00
Aaron Lindsay 32ac18647b testing: Add GET, DELETE, PUT helper functions too 2017-10-09 06:00:51 -04:00
Aaron Lindsay 2decf765ac testing: Add common way to POST objects 2017-10-08 21:18:30 -04:00
Aaron Lindsay bd52df65cd Create framework to automate creation/teardown of test data 2017-10-08 20:29:51 -04:00
Aaron Lindsay 3c6b5528f9 Delete everything when we delete a user 2017-10-07 21:04:59 -04:00
Aaron Lindsay 6e620fe713 Fix user deletion 2017-10-07 06:29:25 -04:00
Aaron Lindsay 8f0f64ae53 Add tests for users and sessions
Split out common test infrastructure from security_templates_test, make
tests HTTPS, use the http.Client provided by httptest
2017-10-07 06:21:05 -04:00
Aaron Lindsay 2fe25cbb77 Add negative security handler tests 2017-10-05 21:08:17 -04:00
Aaron Lindsay a6e2b33dd0 Add a test for limiting security templates returned 2017-10-05 08:42:19 -04:00
Aaron Lindsay e0ce1576cd Add first test
This tests only querying security templates, and not very exhaustively,
but it's a test!
2017-10-05 08:06:08 -04:00
Aaron Lindsay d0a5980b85 First pass at reorganizing go code into sub-packages 2017-10-04 19:35:59 -04:00