Trevor Basinger and Joe Nelson
e364cbc3ff
Support binary (b64) JWT secrets ( #772 )
2016-12-11 09:01:03 -08:00
dsimunic and Joe Nelson
0d85152e42
Improve test db management ( #747 )
2016-12-01 21:06:10 -08:00
Joe Nelson and GitHub
74e68408e6
Bring packages up to date ( #722 )
...
* Bring packages up to date
* New LTS includes deps now
Use stack to select most versions
* Alphabetize packages
* Strip down packages
Switch tests to protolude
* Appease cabal check with base version constraint
2016-10-19 22:25:58 -07:00
Joe Nelson
9cd65a4033
Avoid calling getPOSIXTime more than necessary
2016-10-03 09:55:28 -07:00
Joe Nelson
62ed9e2c4d
Do not require jwt secret, but die on auth without it
2016-09-24 21:28:08 -07:00
Jacky Hu
1fef1991ef
Add proxy awareness for OpenAPI spec generation
...
Proxy uri from command line options takes precedence over host and port
2016-07-07 19:20:40 +08:00
Joe Nelson
88aad4b1b6
Reload schema definition on SIGHUP ( #570 )
2016-04-26 07:50:23 -07:00
Joe Nelson
31738d745f
Regression test for read/write unicode table names
2016-03-25 15:14:00 -07:00
Joe Nelson
e315ad99b4
Name the main module "Main" as required
2016-02-29 14:50:44 -08:00
Joe Nelson
de772b9246
Modified the concurrent test to illustrate problem with prepared statement
2016-02-22 20:58:44 -08:00
Joe Nelson
c28b26d949
Run QueryLimitedSpec with its own server flags
2016-02-22 19:21:39 -08:00
Joe Nelson
b0974a4e36
Reset db between each test suite
2016-02-22 17:50:00 -08:00
Joe Nelson
17acd134c7
Suppress server logging in test mode
2016-02-22 17:48:33 -08:00
Joe Nelson
d5c1438c6e
Use hasql-transaction
...
Also use hspec before-wrapper
2016-02-21 18:05:25 -08:00
Joe Nelson
d7fe59f0b0
WIP: share server code between tests and program
...
- Share server code in Main
- Switch to hasql-pool
- Use pool in tests
- DRY up test runner
2016-02-21 12:22:18 -08:00
Joe Nelson
52e689b830
Add concurrent test for "transaction in progress"
...
MonadBaseControl wizardry courtesy of @jwiegley
2016-02-20 17:45:55 -08:00
Joe Nelson
ac73e8d77b
Remove connection pooling in test
2016-01-24 18:09:19 -08:00
Joe Nelson
b9fd083c77
It all compiles but all requests give a postgres error
2016-01-24 18:09:19 -08:00
Joe Nelson
fec316b087
WIP: fixing compiler errors in specs
2016-01-24 18:09:19 -08:00
Ruslan Talpa
3cd01f9859
Fix failing test after test structure optimization
2015-12-11 10:23:11 +02:00
Joe Nelson
b3144aee15
Cache schema structure between tests for speed
...
Causes one test to fail
2015-12-10 13:36:28 -08:00
Diogo Biazus
0961524e70
Refactors tests to use new fixtures and remove some haskell functions that wont be necessary anymore
2015-12-08 00:44:49 -05:00
Joe Nelson
e37d5d9b25
Style tweak
2015-02-15 15:59:49 -08:00
Adam C. Baker
c9b960f955
only create schema once
2014-12-29 17:57:31 -08:00
Joe Nelson
5900475460
Reset db between tests rather than using transactions to accomodate Hasql limitation
2014-12-06 17:42:21 -08:00
Joe Nelson
f1ecbec543
Do not quote params in Location header
...
Also treat the enum field in OPTIONS as an array uniformly
2014-12-06 17:42:21 -08:00
Joe Nelson
dc43bcbca9
Silence the database fixture output from stdout
2014-12-06 17:42:21 -08:00
Joe Nelson
21b0b02c03
Temporarily use psql to load schemas
2014-12-06 17:42:20 -08:00
Joe Nelson
d6e3526bff
Use Text for textual data
...
Also upgrade Hasql
2014-12-06 17:42:20 -08:00
Joe Nelson
f6b7b42d75
Feature specs compile
2014-12-06 17:42:20 -08:00
Joe Nelson
dd2adf4daa
Tests compile, run, and fail
...
Temporarily disabled unit tests
2014-12-06 17:42:19 -08:00
Joe Nelson
7e9c224299
Configure roles and permissions suitable for Travis auth feature specs
2014-09-30 22:44:02 -07:00
Adam C. Baker
f203982527
have test fixtures load roles too.
2014-09-26 16:58:55 -07:00
Adam C. Baker
a93065a887
specify schema as a string everywhere in the app.
...
This will make it easier to support semantic API versioning,
and makes code reuse easier right now.
2014-09-26 12:51:36 -07:00
Joe Nelson
036ffa107b
Feature tests pass, unit test does not
2014-08-23 18:08:20 -07:00
Joe Nelson
9df8a7b99b
Add global before/after hspec hook in test/Main.hs
2014-08-17 21:21:47 -07:00