J. King
a75fad53ca
Adapt the rest of the test series
6 years ago
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
6 years ago
J. King
7340d65c0e
Make data clearing in tests static
6 years ago
J. King
39110858b7
Move database function test series as first step in re-organization
6 years ago
J. King
8c20411359
Align statement tests with other database driver tests
6 years ago
J. King
f22e53fdc9
Align result tests with driver tests
6 years ago
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.
6 years ago
J. King
736a8c9d0c
Improved timeout handling for both SQlite and PostgreSQL
6 years ago
J. King
4e444fd86c
Generic database interface creation in tests
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
b5733b070c
Clean up statement tests
PostgreSQL tests are suppressed for now, but most pass.
6 years ago
J. King
976672de5b
Test cleanup
6 years ago
J. King
edfae438fa
Refine pg connection strings
6 years ago
J. King
c4ca9149a1
Move Statement tests
6 years ago
J. King
7e11019e83
Consolidate statement tests
6 years ago
J. King
ea6b4c951e
Skip Result tests when necessary
6 years ago
J. King
a3dbb08da9
Remove obsolete test code
6 years ago
J. King
30d6f6db37
Consolidate Db result test series into single file
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
39134f5f7e
Rest of CLI tests
6 years ago
J. King
4869559fb3
Test NCNv1 user query
6 years ago
J. King
2dd1b45d3e
Cover the Query class with database tests for now
6 years ago
J. King
ba8e208d79
Partial CLI tests
6 years ago
J. King
a8cc9a4780
Tests for internal user driver; closes #50
6 years ago
J. King
d40243a84c
Clean up configuration setting in tests
6 years ago
J. King
1ac85df46b
Last set of tests for User class
6 years ago
J. King
b8f8a617fe
Simply user test data providers
The user manager no longer differentiates between the internal driver
and other drivers, making the duplication unnecessary
6 years ago
J. King
a52b985826
Cover the Query class with database tests for now
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
5959c0672d
Tests for most of the User class
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
e08d82f855
Style fix
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
b4b2b10db3
Cover fatal exception; improves #66
6 years ago
J. King
edbfb12d17
Improve coverage slightly
Improves #66
6 years ago
J. King
cbc9491f75
CS fixes and version bump
6 years ago
J. King
cef061f6cd
Fix tests
6 years ago
J. King
aa57227097
Use PSR-7 for authentication; fixes #53
6 years ago
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).
6 years ago
J. King
90dfeb727a
Implement CORS; fixes #126
6 years ago
J. King
0ec0a5b085
Ensure the request method is always uppercased
6 years ago
J. King
4b53c5e8b3
Tests and fixes for REST class; fixes #53 ; improves #66
6 years ago
J. King
3fa2d38f31
Initial rewrite of REST class; needs more testing, but should be functional
- improves #53
- improves #66
6 years ago
J. King
890f9b07d4
Replace Resquest objects with PSR-7 request messages; improves #53
6 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.
6 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).
6 years ago