Aaron Lindsay
9b00bc8db1
testing: Add more data
2017-10-23 20:10:00 -04:00
Aaron Lindsay
2246a4bff9
testing: Add more test data
2017-10-23 05:49:26 -04:00
Aaron Lindsay
5d50753bc8
testing: Ensure client CookieJar's aren't shared
2017-10-23 05:48:12 -04:00
Aaron Lindsay
96ede2a503
testing: Add more transactions tests
2017-10-23 05:47:51 -04:00
Aaron Lindsay
41fb459680
testing: Add tests for updating transactions/splits
2017-10-21 06:50:31 -04:00
Aaron Lindsay
2c85975e92
testing: Add test for fetching transactions/splits
2017-10-17 21:28:06 -04:00
Aaron Lindsay
cdba839c66
testing: Add transaction-creation test
2017-10-16 05:39:41 -04:00
Aaron Lindsay
af9371aeb9
Test not allowing users to be re-created with the same username
2017-10-14 20:47:57 -04:00
Aaron Lindsay
85a58c3ff8
go vet, go fmt
2017-10-14 20:38:40 -04:00
Aaron Lindsay
f2ce7adb52
Merge pull request #24 from aclindsa/sql_transaction_updates
...
Sql transaction updates
2017-10-14 20:30:52 -04:00
Aaron Lindsay
2ff1f47432
Remove duplicate *Tx versions of database access methods
...
Simplify naming to remove "Tx" now that all handlers only have access to
transactions anyway, and always use "tx" as the name of the variable
representing the SQL transactions (to make it less likely to cause
confusion with monetary transactions).
2017-10-14 19:41:13 -04:00
Aaron Lindsay
4e53a5e59c
Use SQL transactions for the entirety of every request
2017-10-14 14:20:50 -04:00
Aaron Lindsay
6726d9cb2f
testing: Test fetching all a user's accounts
2017-10-12 22:19:53 -04:00
Aaron Lindsay
c26ce83aa3
testing: Test for and protect against circular accounts
2017-10-12 21:20:13 -04:00
Aaron Lindsay
d5f8d57bf2
testing: Add tests for fetching multiple securities
2017-10-12 20:47:44 -04:00
Aaron Lindsay
a399d75124
testing: Add account tests
2017-10-11 21:19:14 -04:00
Aaron Lindsay
52ee17dae8
testing: Add session deletion test
2017-10-11 05:49:41 -04:00
Aaron Lindsay
e781e9861b
sessions: Return deletion errors to user
2017-10-11 05:49:08 -04:00
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
e239d62034
Merge pull request #22 from aclindsa/first_test
...
First test
2017-10-05 08:22:16 -04:00
Aaron Lindsay
b7ee8cf4df
Add .travis.yml
2017-10-05 08:11:29 -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
ad0d9bf4af
Merge pull request #21 from aclindsa/reorganization
...
First pass at reorganizing go code into sub-packages
2017-10-04 19:36:45 -04:00
Aaron Lindsay
d0a5980b85
First pass at reorganizing go code into sub-packages
2017-10-04 19:35:59 -04:00
Aaron Lindsay
d9ddef250a
Merge pull request #20 from aclindsa/db_updates
...
Db updates
2017-10-04 08:08:12 -04:00
Aaron Lindsay
156b9aaf0c
Pass DB as a closure instead of a global variable
...
This is part of an ongoing attempt to restructure the code to make it
more 'testable'.
2017-10-04 08:05:51 -04:00
Aaron Lindsay
9abafa50b2
Update gorp dialect depending on DB type used
2017-10-03 19:37:58 -04:00
Aaron Lindsay
c1dc6a21e8
Merge pull request #19 from aclindsa/remove_gorilla
...
Remove 'gorilla' framework
2017-10-03 11:27:54 -04:00
Aaron Lindsay
c783e2c1bb
Remove 'gorilla' framework
...
It was being used for session management, but we weren't using any of
the features that differentiated it from using go's cookies directly so
it is hard to justify the additional dependencies.
2017-10-03 11:26:56 -04:00
Aaron Lindsay
22560dd43a
Fix typo for 'base-directory'
2017-10-02 21:01:23 -04:00
Aaron Lindsay
c1f6919245
Merge pull request #18 from aclindsa/database_config
...
Move database configuration into config file
2017-10-02 20:58:40 -04:00
Aaron Lindsay
8ce3ef1bf5
Move database configuration into config file
...
Also support mysql and postgres (at least in name, they haven't been
fully tested yet)
2017-10-02 20:55:26 -04:00
Aaron Lindsay
319b0b147d
Merge pull request #17 from aclindsa/config_file
...
Move to using config file
2017-10-01 21:18:42 -04:00
Aaron Lindsay
f88fed966b
Move to using config file
2017-10-01 21:15:40 -04:00
Aaron Lindsay
debd221796
Update README
2017-10-01 07:44:20 -04:00
Aaron Lindsay
19848ed991
Mention nodejs version dependency
...
This is to address https://github.com/aclindsa/moneygo/issues/2 , where the older npm/nodejs versions on Ubuntu causes errors when installing cldr-data.
2017-09-27 10:35:09 -04:00
Aaron Lindsay
770e86aee8
Add MIT license
2017-09-25 19:44:25 -04:00
Aaron Lindsay
15b9bc8314
OFX imports: Create sub-accounts for sub-account splits
2017-09-21 21:16:23 -04:00
Aaron Lindsay
e38c49a556
Use default currency for top-level 'Trading' account
...
Also add missing transaction.Rollback() calls on early returns in
GetAccountTransactions()
2017-09-21 21:00:30 -04:00
Aaron Lindsay
d0d6ea3a78
OFX imports: Properly import 'trading' transaction splits
2017-09-20 21:30:17 -04:00