1
0
Fork 0
forked from sr2/cloud-api
Commit graph

61 commits

Author SHA1 Message Date
662b9c8e26 feat: permission permissions
Orgs can only grant permissions to groups that they themselves have been granted access to.

Super admin bypasses not added, flagged as todos.
2026-06-16 13:51:31 +01:00
dad23733e8 feat: group name unique per org
Instead of group names being wholly unique (enforced by the db), group names are unique within the org (enforced by endpoint logic).
2026-06-15 11:10:02 +01:00
3f7abc5986 tests: preapproval
Issue: #24
2026-06-15 09:34:43 +01:00
2b4c875da3 tests: group invitation 2026-06-15 09:31:36 +01:00
43ed768f66 feat: minimum lengths for names 2026-06-12 15:58:20 +01:00
092e12a892 feat: org status check moved
Accessing endpoints as super admin no longer requires the org to be approved.
2026-06-12 14:50:32 +01:00
a655eaf543 tests: delete_group_perm perm not in group
Issue: #24
2026-06-12 13:17:07 +01:00
fe2171df44 tests: delete group perm status checks
Issue: #24
2026-06-12 13:08:58 +01:00
c0b9763669 tests: caor status checks match new model
Issue: #24
2026-06-12 13:01:04 +01:00
fc9d7f8536 tests: body param generator
Issue: #24
2026-06-12 12:54:48 +01:00
778f1dbece tests: remove db modifications from individual tests
All db seeding now down in conftest
2026-06-12 11:29:42 +01:00
1a6a6ad97d fix: remove trailing slash and plurals in paths 2026-06-11 16:14:22 +01:00
c2e035dede feat: more accurate status codes
403 Forbidden replacing many 401 Unauthorized usages.
2026-06-11 14:58:05 +01:00
bcdef91dd0 feat: user invite response models 2026-06-11 14:14:31 +01:00
0a7f9092c7 feat: questionnaire shape update 2026-06-11 12:24:36 +01:00
c268097306 feat: helper for generating module docstrings 2026-06-11 09:57:34 +01:00
dd0478d5e7 docs: iam router
Issue: #13
2026-06-11 09:36:51 +01:00
61e186a727 docs: iam router (incomplete)
Issue: #13
2026-06-10 16:49:37 +01:00
ec41d1ed05 feat: caor docs and response model 2026-06-10 16:16:56 +01:00
0b521414b3 feat: add group user by id restriction
Adding by ID can only be done for existing org members
2026-06-10 14:48:22 +01:00
294baadcb7 feat: more ids returned on endpoints
Issue: #23
2026-06-10 13:48:59 +01:00
5a433dfe41 tests: dynamic test structure
Issue: #23
2026-06-10 12:29:15 +01:00
bdba903db1 feat: deleted owned org endpoint 2026-06-10 10:15:27 +01:00
3b82025abb feat: get org response mirrors get user orgs structure 2026-06-10 09:49:05 +01:00
939abaefe9 feat: improved caor request model
Issue: #23
2026-06-10 09:32:02 +01:00
f0eaff2073 tests: get self orgs 2026-06-09 16:06:53 +01:00
76e889d836 tests: expanded assertions
New assertions added for new data being delivered (eg IDs on endpoints not previously serving IDs)
2026-06-09 14:43:52 +01:00
607f736453 feat: user ids return on get org users 2026-06-09 14:42:37 +01:00
bace6388aa tests: pytest module markers 2026-06-09 13:58:08 +01:00
e9fe405e06 feat: add org user by id requires su
Part of the "sensical user adding" changes.
2026-06-09 13:07:43 +01:00
62c43ce883 feat: sensical user invitation
Users can now be invited to an org by email.

"Email" for now is "print to stdout"

Resolves #12
2026-06-09 12:22:36 +01:00
c452c6c0d5 feat: delete endpoint queries
Delete endpoints do not fully support bodies. Queries used instead.

Tests added.

Resolves #20
2026-06-09 09:29:14 +01:00
e9b272811f feat: all unique constraints tested 2026-06-08 16:05:20 +01:00
c689ac1e10 minor: ruff formatter
All changes are either:
- Correcting tabs
- Adding/removing line breaks
- Adding trailing commas
2026-06-08 15:31:37 +01:00
b2e5dd2ebb feat: sqlite integrity error handle 2026-06-08 15:24:42 +01:00
fff7ccde12 test: super admin dep override
Test user super admin account added via override rather than assumed present.
2026-06-08 11:10:39 +01:00
903b24d17d ruff: config and initial run 2026-06-08 10:45:38 +01:00
d3d9316741 tests: query generator 2026-06-05 12:17:32 +01:00
29245e5c13 tests: questionnaire submission test
Assertion to verify that None type question answers don't overwrite preexisting answers.
2026-06-05 09:31:56 +01:00
b8b39188f6 tests/minor: rename test functions
`_failure` in name wasn't necessarily an accurate descriptor for parameterized testing with expected statuses. `_status_checks` used instead.
2026-06-05 09:22:44 +01:00
f600664789 tests: improved coverage 2026-06-05 09:10:55 +01:00
c8024daa97 minor: renames and error messages 2026-06-04 14:53:35 +01:00
94cf6c5258 tests: only user auth tests
Resolves #18
2026-06-04 12:13:02 +01:00
c670d8ff51 tests: root user auth tests
Issue: #18
2026-06-04 11:50:16 +01:00
2ec9cca99c feat: super admin handling
The list of super admins now comes from a dependency, allowing it to easily be overrridden during testing.
2026-06-04 11:48:50 +01:00
3460cd76a5 tests: super admin auth tests 2026-06-03 14:36:15 +01:00
1b54918bb4 minor: remove extra decorators
These were duplicates and had no effect.
2026-06-03 14:28:40 +01:00
9d9ca0b907 minor: rename test client
client -> default_client

To allow for different clients. Primarily to allow different overrides for auth testing.
2026-06-03 13:54:30 +01:00
a907506ec1 tests: org approval auth tests
A module of tests which verifies relevant endpoints either do or do not allow unapproved orgs.

Issue: #18
2026-06-03 12:00:21 +01:00
905fcf8814 feat: endpoint list producer 2026-06-03 11:57:18 +01:00