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

76 commits

Author SHA1 Message Date
34bd96e14a tests: iam tests standardised 2026-06-24 15:41:19 +01:00
1c394e9e23 tests: service tests standardised 2026-06-24 13:50:50 +01:00
71adc3fc6a tests: org tests standardised 2026-06-24 13:27:04 +01:00
ce6a574951 tests: user accept org invite test 2026-06-24 13:20:06 +01:00
28c482d8a9 tests: user tests use standard model
All happy-path tests for the user module have been replaced with the standard test model.
2026-06-24 10:45:17 +01:00
41df580a1a tests: dynamic test standardised
The dynamic test structure should now be able applicable to all endpoints and the bulk of its logic has been split into a new function.
2026-06-24 10:26:28 +01:00
ed01e2515f tests: dynamic test using new fixture 2026-06-24 10:10:29 +01:00
1e438244aa tests: route_data fixture
Gets the actual auth level, expected status code, and expected response model from the route definitions. This can be used to make happy-path tests a standard shape, and with better coverage.

Auth tests can be directly incorporated into this test shape.
2026-06-24 09:47:26 +01:00
7dad2e920e tests: get_testable_routes finds auth level
Checks all dependencies used on each endpoint and determines the highest level of auth applied to each endpoint.

API Key>SU>Root>User>None
2026-06-22 16:45:50 +01:00
4b3ab92d2a fix: fastapi 0.137 router.route changes 2026-06-22 15:15:42 +01:00
fab228bf8f minor: ruff format
Tabs -> spaces
2026-06-22 15:04:11 +01:00
b2921b73b8 fix: conftest match db changes 2026-06-22 15:02:39 +01:00
58e7ae6c5c fix: ty compliant & issues from change to mapped columns 2026-06-22 11:23:24 +01:00
irl
6397bd1316 feat: use Mapped syntax for columns 2026-06-20 18:42:36 +01:00
7804816a1a fix: rn takes org id instead of name 2026-06-17 13:12:59 +01:00
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