J. King
8dfedd30ef
Test PostgreSQL schema upgrade
This was in fact buggy due to the schema version check causing an error
6 years ago
J. King
93af381436
Test setting of schema name
6 years ago
J. King
1414f8979c
Fix savepoint handling and locking in PostgreSQL driver
6 years ago
J. King
736a8c9d0c
Improved timeout handling for both SQlite and PostgreSQL
6 years ago
J. King
c0c4810662
Nominally complete PostgreSQL driver
Connection error handling as well as uprade error handling still need
to be implemented.
6 years ago
J. King
84b4cb7465
Enable PostgreSQL statement testing
Tests involving binary data are skipped for now
6 years ago
J. King
d52af6db5a
PostgreSQL fixes
Errors were not correctly throwing exceptions
For the sake of SQLite compatibility booleans should be bound as
integers in PDO
6 years ago
J. King
e2b6cb8360
Remove PicoFeed-related FIXMEs
PicoFeed will never be fixed, so they are not helpful
6 years ago
J. King
b5733b070c
Clean up statement tests
PostgreSQL tests are suppressed for now, but most pass.
6 years ago
J. King
e30d82fbaa
Correct signature
6 years ago
J. King
edfae438fa
Refine pg connection strings
6 years ago
J. King
796315c00c
Basic stub of PDO-base PostgreSQL driver
6 years ago
J. King
c63d24e125
Version bump
6 years ago
J. King
471dad0645
Fix PDO driver initialization
6 years ago
J. King
3b3b810f10
Replicate some unspecified NCNv1 behaviour, and document the rest
See #139 for list
Closes #139
Closes #140
Closes #141
6 years ago
J. King
1dcbb56077
Changelog and documentation updates
6 years ago
J. King
39134f5f7e
Rest of CLI tests
6 years ago
J. King
efac62f0e4
Add missing return type hints where possible
6 years ago
J. King
9e6f0460c2
Ensure the Lang class always exists when throwing exceptions
6 years ago
J. King
ba8e208d79
Partial CLI tests
6 years ago
J. King
1a8acdf03f
Fix early exceptions
6 years ago
J. King
9428d7468a
Add more user management functionality to the CLI
6 years ago
J. King
a8cc9a4780
Tests for internal user driver; closes #50
6 years ago
J. King
5f775bef7a
Appease phpdbg coverage bug
6 years ago
J. King
1ac85df46b
Last set of tests for User class
6 years ago
J. King
ffa7bd5a5d
Fix error in previous commit
6 years ago
J. King
931fe3b585
Move password generation to the User class
This allows user drivers which wish to generate their own passwords to
do so, and those which do not to defer to the built-in generator
6 years ago
J. King
31cdf313a4
Add missing return type hints where possible
6 years ago
J. King
898533bde5
More simplification
Authentication is now used as the primary point of synchronization
between the internal database and any external database
6 years ago
J. King
40d679844b
Ensure the Lang class always exists when throwing exceptions
6 years ago
J. King
27edcddc9b
Simplify NCNv1 userStatus call
6 years ago
J. King
057d72c816
Remove the distinction between internal and external user functionality
6 years ago
J. King
11747c93fd
Strip out unused user management functionality
Tests have been removed as well; new tests are forthcoming
6 years ago
J. King
0be9dcb5a8
Update dependencies
6 years ago
J. King
f64f0c6a22
Whitespace cleanup
6 years ago
J. King
1aa556cf12
Add HTTP authentication support to TTRSS; fixes #133
Also bump version to 0.4.0
6 years ago
J. King
edbfb12d17
Improve coverage slightly
Improves #66
6 years ago
J. King
e4d64424c7
Make new bugfix release
6 years ago
J. King
a92bad1bc8
Correctly load configuration
6 years ago
J. King
c7c5f48066
Fix notice
7 years ago
J. King
cbc9491f75
CS fixes and version bump
7 years ago
J. King
aa57227097
Use PSR-7 for authentication; fixes #53
7 years ago
J. King
90dfeb727a
Implement CORS; fixes #126
7 years ago
J. King
0ec0a5b085
Ensure the request method is always uppercased
7 years ago
J. King
4b53c5e8b3
Tests and fixes for REST class; fixes #53 ; improves #66
7 years ago
J. King
3fa2d38f31
Initial rewrite of REST class; needs more testing, but should be functional
- improves #53
- improves #66
7 years ago
J. King
890f9b07d4
Replace Resquest objects with PSR-7 request messages; improves #53
7 years ago
J. King
9ad0b47201
Add Target class to manipulate request traget URL parts
The query part is not parsed for now because PSR-7 request objects/PHP take care of that parsing for us.
7 years ago
J. King
9eadd602bd
Replace Response objects with PSR-7 response messages; improves #53
While the test suite passes, this commit yields a broken server: replacing ad hoc request objectss with PSR-7 ones is still required, as is emission of PSR-7 responses. Both will come in subsequent commits, with tests
Diactoros was chosen specifically because it includes facilities for emitting responses, something which is awkward to test. The end of this refactoring should see both the Response and Request classes disappear, and the general REST class fully covered (as well as any speculative additions to AbstractHanlder).
7 years ago
J. King
27caf147df
Changes to Date helper class
- Changed 'transform' method to use ValueInfo throughout. This fixes a number of obscure bugs
- Changed the 'add' and 'sub' methods to default to "now" rather than null. This means null passes through rather than being interpreted as the current time, to be consistent with other date tools
- Also changed the 'add' and 'sub' methods so that they operate correctly with invalid date strings
- Added tests for the class; improves #66
- Modified TTRSS tests because the "iso8601" format string in ValueInfo is different from Date's older format
7 years ago