J. King
f0d30c2eee
Make munging of queries a generic feature
2018-12-21 12:35:10 -05:00
J. King
24df564045
Mostly successful MySQL database function tests
...
Two failures remain, at least one requiring query munging.
2018-12-21 10:14:26 -05:00
J. King
4ef36643a4
Proof-of-concept PDO MySQL driver
...
- Configuration options were added
- Non-transactional locking was added to the savepoint handlers
- Tests were adjusted for MySQL's reserved words
2018-12-20 18:06:28 -05:00
J. King
2bebdd44cf
Implementation of native PostgreSQL interface
...
Changes to the Database class were required to avoid outputting booleans
2018-12-13 19:47:51 -05:00
J. King
0513b606c2
Merge master
2018-12-07 19:21:44 -05:00
J. King
cf896121b2
Style fixes
2018-12-05 17:28:11 -05:00
J. King
4a1c23ba45
Munge PostgreSQL queries instead of adding explicit casts
...
PDO does not adequately inform PostgreSQL of a parameter's type, so type
casts are required. Rather than adding these to each query manually, the
queries are instead processed to add type hints automatically.
Unfortunately the queries are processed rather naively; question-mark
characters in string constants, identifiers, regex patterns, or geometry
operators will break things spectacularly.
2018-11-29 13:45:37 -05:00
J. King
93af381436
Test setting of schema name
2018-11-27 17:39:39 -05:00
J. King
1414f8979c
Fix savepoint handling and locking in PostgreSQL driver
2018-11-27 17:16:00 -05:00
J. King
8a49202036
Use common cleanup code for all database-related tests
2018-11-27 14:26:33 -05:00
J. King
925560d4ba
Cleanup
2018-11-25 00:06:20 -05:00
J. King
dccd4caede
Convert one database function test series (articles) to a common harness
...
Also revert the dropping of tables in the schema files. This was for the
convenience of tests, but the risk of data loss is too great
2018-11-24 23:18:17 -05:00
J. King
7340d65c0e
Make data clearing in tests static
2018-11-23 10:01:17 -05:00
J. King
39110858b7
Move database function test series as first step in re-organization
2018-11-23 09:29:06 -05:00
J. King
8c20411359
Align statement tests with other database driver tests
2018-11-22 23:18:20 -05:00
J. King
f22e53fdc9
Align result tests with driver tests
2018-11-22 19:55:54 -05:00
J. King
aa1b65b5d4
Take a different tack on shared database tests
...
Tests for different drivers will have their own files, but all derive
from a common prototype test series where applicable, similar to the
existing arrangement for database function tests. However, the prototype
will reside with other test cases rather than in the library path. The
database function test series will hopefully be moved as well in time.
2018-11-22 13:55:57 -05:00
J. King
4e444fd86c
Generic database interface creation in tests
2018-11-21 13:06:01 -05:00
J. King
976672de5b
Test cleanup
2018-11-16 21:32:27 -05:00
J. King
30d6f6db37
Consolidate Db result test series into single file
2018-11-08 14:50:58 -05:00
J. King
63ae6fb703
Merge remote-tracking branch 'remotes/origin/user-rewrite'
2018-11-06 16:36:50 -05:00
J. King
ba8e208d79
Partial CLI tests
2018-11-06 12:32:28 -05:00
J. King
d40243a84c
Clean up configuration setting in tests
2018-11-04 09:16:34 -05:00
J. King
ffa7bd5a5d
Fix error in previous commit
2018-11-02 12:01:03 -04:00
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
2018-11-02 11:52:55 -04:00
J. King
11747c93fd
Strip out unused user management functionality
...
Tests have been removed as well; new tests are forthcoming
2018-10-28 10:59:17 -04:00
J. King
f64f0c6a22
Whitespace cleanup
2018-10-26 14:58:04 -04:00
J. King
1aa556cf12
Add HTTP authentication support to TTRSS; fixes #133
...
Also bump version to 0.4.0
2018-10-26 14:40:20 -04:00
J. King
cbc9491f75
CS fixes and version bump
2018-01-12 09:48:33 -05:00
J. King
34b508171b
Merge CORS branch
2018-01-12 09:41:13 -05:00
J. King
1a4989e1e0
Merge PDO branch
2018-01-12 09:28:58 -05:00
J. King
aa57227097
Use PSR-7 for authentication; fixes #53
2018-01-11 15:48:29 -05:00
J. King
daea0ceb27
Make HTTP message testing generic
...
assertMessage will test the method and target URL of requests, attributes of server requests, as well as the existing testing of a response's status code. All messages' bodies and header fields are tested for equivalence (with a special case for JSON response bodies).
2018-01-11 11:09:25 -05:00
J. King
90dfeb727a
Implement CORS; fixes #126
2018-01-09 12:31:40 -05:00
J. King
3fa2d38f31
Initial rewrite of REST class; needs more testing, but should be functional
...
- improves #53
- improves #66
2018-01-06 12:02:45 -05:00
J. King
890f9b07d4
Replace Resquest objects with PSR-7 request messages; improves #53
2018-01-04 23:08:53 -05:00
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).
2018-01-03 23:13:08 -05:00
J. King
ddf55e0665
Change session lifetimes to more closely match TTRSS
...
At least some clients seem to expect the default timeout of one day.
2018-01-01 12:31:42 -05:00
J. King
65b08d1735
Tweak
2017-12-31 17:30:30 -05:00
J. King
bc9ffa0e17
Rewrite SQLite 3 type binding tests
2017-12-30 15:59:45 -05:00
J. King
39cad91b78
CS fixes
2017-12-22 11:51:58 -05:00
J. King
a5318d1b12
Part 2
2017-12-22 11:45:24 -05:00
J. King
095fe10aec
Reorganize PDO tests into namespaces
2017-12-22 11:41:54 -05:00
J. King
0785f832de
CS fixes
2017-12-19 22:19:42 -05:00
J. King
4bada691e9
PDO tests and fixes; improves #72
2017-12-19 19:08:08 -05:00
J. King
183718204d
Grouped slow tests; improves #113
2017-12-16 20:03:04 -05:00
J. King
dd7d6e44b9
Further fixes for test timezone assumptions
2017-12-16 19:37:30 -05:00
J. King
3f65625090
Ensure tests do not rely in UTC default timezone
...
Six tests failed if the default timezone was not UTC. These were all due to faulty expectations, however, not faulty output.
2017-12-16 18:30:45 -05:00
J. King
3e42fbdddf
Munge off-by-one dates in tests; fixes #112
2017-12-08 16:00:23 -05:00
J. King
3a07156259
Fix broken test
2017-12-07 19:39:32 -05:00