Token backend-agnostic rest API testing #31
houkime
commented 2023-01-02 20:11:51 +02:00
Collaborator
- Deduplicate rest testing
- Replace reading json with rest api calls
- Load starting test tokens via abstract token repo interface in conftest.py . This file is common for both APIs.
1. Deduplicate rest testing
2. Replace reading json with rest api calls
3. Load starting test tokens via abstract token repo interface in conftest.py . This file is common for both APIs.
houkime
added 26 commits 2023-01-02 20:11:51 +02:00
d930426f25
test(tokens-repo): make empty_keys fixture (and derived) shareable
1768fe278a
test(tokens-repo): make empty_tokens fixture, even more minimal
40d331d01f
test(tokens-repo): offload empty_keys fixture to json tests
cee0419a52
test(tokens-repo): remove test tokens.json files
c5dc09d5dd
test(tokens-repo): break out assert_original() in rest
5812b57ced
test(tokens-repo): break out rest_get_token_info()
7b5fb4b2df
test(tokens-repo): use rest token info in token deletion test
cb46c5e43b
test(tokens-repo): check refreshed token validity by trying to auth
243f9be225
test(tokens-repo): delete standalone get new device test
51cc35708e
test(tokens-repo): break out getting new device token
8b19c9c013
test(tokens-repo): break out checking token validity
6dd724b682
test(tokens-repo): make new device tests a bit more readable
5bf7e81351
test(tokens-repo): travel in time to check expiration
d55232735d
test(tokens-repo): fix typo in contets
b526e0b6ad
test(tokens-repo): do not read json in generate recovery test
2a577aedb7
test(tokens-repo): break out obtaining recovery tokens
38f9eb825a
test(tokens-repo): break out recovery time operations
b254e40961
test(tokens-repo): break out recovery token use
fc24290f1c
test(tokens-repo): use new recovery functions
406f5ee921
test(tokens-repo): use mock time for recovery tokens expiration test
a252c11e7d
test(tokens-repo): allow ading uses in a helper recovery function
cd1afb8464
test(tokens-repo): refactor the rest of auth tests
2f0a7c35f3
test(tokens-repo): beautify test_auth.py
d3c337853e
fix(tokens-repo): readd gitkeep to services data folder after rebase
7a27af9173
test(tokens-repo): new assert_original(), no more json
91bbc3520b
test(tokens-repo): make shared test token state use token repo api for loading
houkime
added 1 commit 2023-01-02 20:22:34 +02:00
710ad7221b
refactor(tokens-repo): delete a stray comment
inex
approved these changes 2023-01-06 11:42:59 +02:00
inex
merged commit d84b4e9ad6 into redis/connection-pool 2023-01-06 11:43:12 +02:00
inex
referenced this issue from a commit 2023-01-06 11:43:12 +02:00
Merge pull request 'Token backend-agnostic rest API testing' (#31) from redis/rest-tests into redis/connection-pool
No reviewers
Labels
No Label
Bug
Contributions welcome
Did not do
Duplicate
Feature
Module
Backups
Module
GraphQL
Priority
High
Priority
Low
Priority
Medium
Refactor
Severity
High
Severity
Low
Severity
Medium
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: SelfPrivacy/selfprivacy-rest-api#31
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "redis/rest-tests"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?