Commit Graph

79 Commits

Author SHA1 Message Date
Ethan Paul eb113d8d0b Merge static and static-tests tox envs 2020-03-14 12:22:09 -04:00
Ethan Paul f8357c76f1 Update dependencies
Alphabetize dependencies in pyproject
Update pylint version and unpin astroid
2020-03-14 12:15:41 -04:00
Ethan Paul 9e40ace1f1 Update project metadata 2020-03-12 23:08:52 -04:00
Ethan Paul a302d69c7a Add tests for account serializer
Fix bugs with account scope de/serializing
Fix bugs with domain serializer tests
Fix bugs with database account tests
2020-03-12 22:58:33 -04:00
Ethan Paul f59afcccf7 Add basic roundtrip test for domain serializer
Fix dumping and loading compatibility of domain model
Fix (untested) dumping and loading compatibility of account model
Loosen simple name regex requirements
2020-03-10 23:29:05 -04:00
Ethan Paul bc9f1166d5 !fixup makefile 2020-03-09 00:42:07 -04:00
Ethan Paul dc479bad75 Upate CI to split out different python versions by container 2020-03-09 00:36:08 -04:00
Ethan Paul f9d93c0880 Add static analysis for tests to toxfile 2020-03-09 00:32:25 -04:00
Ethan Paul e3de950147 !fixup fields 2020-03-09 00:31:59 -04:00
Ethan Paul 430ff8f3f4 Simplify about tests 2020-03-09 00:15:39 -04:00
Ethan Paul 98089c42d4 Fix bug in epoch field tests 2020-03-09 00:15:10 -04:00
Ethan Paul e5b4de799c Update tests to use new database schema layout 2020-03-09 00:14:29 -04:00
Ethan Paul 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
Ethan Paul ce3e2e34ab !fixup refactor serializers 2020-03-08 23:41:42 -04:00
Ethan Paul b3db6c0b33 !fixup rename fields 2020-03-08 23:41:27 -04:00
Ethan Paul 9cbe00b93c !fixup rename fields 2020-03-08 23:16:13 -04:00
Ethan Paul 7d74d8b777 !fixup rename fields 2020-03-08 23:14:47 -04:00
Ethan Paul ad7a4ea278 Update serializers to work with new database models 2020-03-08 23:14:17 -04:00
Ethan Paul 8de4da92ef Refactor database module to have one class per file 2020-03-08 23:04:36 -04:00
Ethan Paul 440d6e68f4 Refactor database models to better leverage foreign key relationships 2020-03-08 20:36:07 -04:00
Ethan Paul d3306120d5 Fix epoch time field to properly use utc 2020-03-08 19:50:59 -04:00
Ethan Paul bed608a2a5 Rename fields module to make it part of the internal api 2020-03-08 19:43:31 -04:00
Ethan Paul 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
Ethan Paul 31845ef7c5 !fixup Add access_list_names property back to domain model 2020-02-27 00:06:50 -05:00
Ethan Paul d6265c4797 Revert "Refactor datatypes into submodules"
This reverts commit 07828f0063.
2020-02-26 22:01:25 -05:00
Ethan Paul 07828f0063 Refactor datatypes into submodules
Gonna do some composition up in here
Add py38 tox env
2020-02-25 22:28:45 -05:00
Ethan Paul 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
Ethan Paul 1fa5747647 Add tests for unique field assurances on domain and account models 2020-02-24 23:54:28 -05:00
Ethan Paul 822287ad3c !fixup make domain access list names unique 2020-02-24 23:22:49 -05:00
Ethan Paul 96c595147e Fix sqlite configuration error improperly accessing config object
Add token model import to database init
2020-02-24 23:11:30 -05:00
Ethan Paul ae86a5d21c Add tests for account ACL model
Add string repr to account ACL model
2020-02-24 23:09:05 -05:00
Ethan Paul 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
Ethan Paul e202152fc5 !fixup finish making test database 2020-02-24 22:54:32 -05:00
Ethan Paul 94b6b84be3 Add tests for account model
Add string repr to account model
2020-02-24 22:38:28 -05:00
Ethan Paul 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
Ethan Paul b7596bdd3f Add serializer submodule imports 2020-02-24 21:29:38 -05:00
Ethan Paul 8c1e0fff0a Add serializers for domain extras
Update domain serializer to properly access extras
2020-02-24 21:29:10 -05:00
Ethan Paul f7d93bd68c !fixup account serializer 2020-02-24 21:28:47 -05:00
Ethan Paul 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
Ethan Paul 85a53d061a WIP more serializer stuff 2020-02-24 20:33:44 -05:00
Ethan Paul 199cad3f43 WIP add initial serializers 2020-02-24 20:33:44 -05:00
Ethan Paul 733ffa6cd8 Add missing methods for casting account model to dict 2020-02-24 20:33:44 -05:00
Ethan Paul ca183d7052 Add passlib to testenv dependencies 2020-02-24 20:33:44 -05:00
Ethan Paul cfa63b4201 !fixup fixtures 2020-02-24 20:33:44 -05:00
Ethan Paul e4cf37c625 Remove unnecessary infrastructure from token model 2020-02-24 20:33:44 -05:00
Ethan Paul 129e21a960 Fix typo in coveragerc 2020-02-24 20:33:44 -05:00
Ethan Paul 4f55053e24 Fix unused import in account model
Fix linting errors in top level config serializer
2020-02-24 20:33:44 -05:00
Ethan Paul 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
Ethan Paul 1dd27b6169 Fix misnamed domain auth enable fields
Add missing refresh expiration parameter to token model
2020-02-24 20:33:44 -05:00
Ethan Paul 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