82362f7ebc
testing: Use an in-memory sqlite3 database
...
This makes testing *much* faster and removes the need for creating
temporary directories
2017-11-01 21:09:55 -04:00
4963e473aa
testing: Add files and line numbers to logging output
2017-10-31 21:04:03 -04:00
3869f3a3b2
Get all current tests to pass with MySQL
...
This is done by requiring 'parseTime=true' in the MySQL DSN's (required
by github.com/go-sql-driver/mysql when Scan()ing to time.Time's), and
not forcing update counts to match if rows were updated to what they
already were.
2017-10-24 20:57:55 -04:00
85a58c3ff8
go vet, go fmt
2017-10-14 20:38:40 -04:00
3c5e726f93
testing: Error on teardown failures
2017-10-11 05:48:31 -04:00
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
32ac18647b
testing: Add GET, DELETE, PUT helper functions too
2017-10-09 06:00:51 -04:00
2decf765ac
testing: Add common way to POST objects
2017-10-08 21:18:30 -04:00
bd52df65cd
Create framework to automate creation/teardown of test data
2017-10-08 20:29:51 -04:00
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