1
0
mirror of https://github.com/enpaul/keyosk.git synced 2024-12-26 17:53:32 +00:00
Commit Graph

72 Commits

Author SHA1 Message Date
f9d93c0880 Add static analysis for tests to toxfile 2020-03-09 00:32:25 -04:00
e3de950147 !fixup fields 2020-03-09 00:31:59 -04:00
430ff8f3f4 Simplify about tests 2020-03-09 00:15:39 -04:00
98089c42d4 Fix bug in epoch field tests 2020-03-09 00:15:10 -04:00
e5b4de799c Update tests to use new database schema layout 2020-03-09 00:14:29 -04:00
ce20868b49 Update toxfile with better optimized settings and task dist
Fix pycache cleanup in makefile
Update makefile to use tox doc env for building documentation
2020-03-08 23:53:52 -04:00
ce3e2e34ab !fixup refactor serializers 2020-03-08 23:41:42 -04:00
b3db6c0b33 !fixup rename fields 2020-03-08 23:41:27 -04:00
9cbe00b93c !fixup rename fields 2020-03-08 23:16:13 -04:00
7d74d8b777 !fixup rename fields 2020-03-08 23:14:47 -04:00
ad7a4ea278 Update serializers to work with new database models 2020-03-08 23:14:17 -04:00
8de4da92ef Refactor database module to have one class per file 2020-03-08 23:04:36 -04:00
440d6e68f4 Refactor database models to better leverage foreign key relationships 2020-03-08 20:36:07 -04:00
d3306120d5 Fix epoch time field to properly use utc 2020-03-08 19:50:59 -04:00
bed608a2a5 Rename fields module to make it part of the internal api 2020-03-08 19:43:31 -04:00
32cd33728d Update domain serializer to improve validation accuracy
Remove extras serializers submodule
Add validation regexes to constants
2020-02-27 00:07:19 -05:00
31845ef7c5 !fixup Add access_list_names property back to domain model 2020-02-27 00:06:50 -05:00
d6265c4797 Revert "Refactor datatypes into submodules"
This reverts commit 07828f0063.
2020-02-26 22:01:25 -05:00
07828f0063 Refactor datatypes into submodules
Gonna do some composition up in here
Add py38 tox env
2020-02-25 22:28:45 -05:00
227f1e7c18 Update toxfile to pin all dependencies to locked versions
Stop-gap until I can figure out how to create a tox env from the lockfile
Add missing pytest-cov dev dependency
Fix py3.6 sqlite compatibility error with pathlib
2020-02-25 00:00:50 -05:00
1fa5747647 Add tests for unique field assurances on domain and account models 2020-02-24 23:54:28 -05:00
822287ad3c !fixup make domain access list names unique 2020-02-24 23:22:49 -05:00
96c595147e Fix sqlite configuration error improperly accessing config object
Add token model import to database init
2020-02-24 23:11:30 -05:00
ae86a5d21c Add tests for account ACL model
Add string repr to account ACL model
2020-02-24 23:09:05 -05:00
54ac7c4141 Add tests for domain model and domain extras models
Add string reprs to domain models
Fix misnamed dict key names on domain model
Fix improper timedelta/int conversions on domain model
2020-02-24 23:03:59 -05:00
e202152fc5 !fixup finish making test database 2020-02-24 22:54:32 -05:00
94b6b84be3 Add tests for account model
Add string repr to account model
2020-02-24 22:38:28 -05:00
7a88b0ddac Add tests for new Epoch and RawMultiType fields
Fix bug with PathString field not dumping NoneType properly
2020-02-24 21:53:10 -05:00
b7596bdd3f Add serializer submodule imports 2020-02-24 21:29:38 -05:00
8c1e0fff0a Add serializers for domain extras
Update domain serializer to properly access extras
2020-02-24 21:29:10 -05:00
f7d93bd68c !fixup account serializer 2020-02-24 21:28:47 -05:00
ac893d9707 Fix hacked permission and access list string names
Update domain access list and domain permission models to be dict-castable
Update domain model to specify dict casting for access list and permission backrefs properly
Remove unnecessary permission_names and access_list_names properties
2020-02-24 21:27:20 -05:00
85a53d061a WIP more serializer stuff 2020-02-24 20:33:44 -05:00
199cad3f43 WIP add initial serializers 2020-02-24 20:33:44 -05:00
733ffa6cd8 Add missing methods for casting account model to dict 2020-02-24 20:33:44 -05:00
ca183d7052 Add passlib to testenv dependencies 2020-02-24 20:33:44 -05:00
cfa63b4201 !fixup fixtures 2020-02-24 20:33:44 -05:00
e4cf37c625 Remove unnecessary infrastructure from token model 2020-02-24 20:33:44 -05:00
129e21a960 Fix typo in coveragerc 2020-02-24 20:33:44 -05:00
4f55053e24 Fix unused import in account model
Fix linting errors in top level config serializer
2020-02-24 20:33:44 -05:00
f6185ba82d Update about file with less sketchy loading system
Remove importlib usage from about file
Add tests to enforce data consistency between pyproject and about
Update sphinx config to use new about file
Remove pyproject from package
2020-02-24 20:33:44 -05:00
1dd27b6169 Fix misnamed domain auth enable fields
Add missing refresh expiration parameter to token model
2020-02-24 20:33:44 -05:00
a21b8dd194 Remove account assignment and domain admin models
Meta domain administration really made no sense, no point including it
No reason to include explicit account-domain assignment when the ACL table exists
2020-02-24 20:33:44 -05:00
e475fd4971 Add database test fixtures
Fix test condition in config tests for possible false pass
2020-02-24 20:33:44 -05:00
0088561fea Add tests for fields submodule
Add marshmallow to test dependencies
Fix namespace issue in config tests
2020-02-24 20:33:44 -05:00
4bc4c34254 Add tests for config module
Add toml test dependency to toxfile
Add missing predump and postload hooks to top-level config serializer
Remove dummy paceholder test
2020-02-24 20:33:44 -05:00
b9e0f08560 Add flag to doc building to force failure on warning 2020-02-24 20:33:44 -05:00
71d6ed4e3c Fix linting and typing errors
Document token model
Fix typo accessing incorrect crypto hash in passlib
Fix cyclical import around domain admin settings
Deprecate unused token usage enum
Document constants module
Fix typing errors in fields module
Fix creation order of database models
Add uuid default factory for uuid field
2020-02-24 20:33:44 -05:00
33325a344e Add token storage model
Document datatypes module
Included initial permissions system in token model, will likely need to update/move it
2020-02-24 20:33:44 -05:00
f1254c4704 Add model for account ACL entries 2020-02-24 20:33:44 -05:00