Let each tenant create named API keys with content and visibility scope.
Deploy Development / deploy (push) Failing after 32s
Test Suite / pytest-backend (push) Failing after 26s
Test Suite / lint-backend (push) Successful in 1s
Test Suite / build-frontend (push) Failing after 6s
Test Suite / k6 /health Baseline (push) Successful in 34s
Test Suite / playwright-tests (push) Canceled after 1m34s
Deploy Development / deploy (push) Failing after 32s
Test Suite / pytest-backend (push) Failing after 26s
Test Suite / lint-backend (push) Successful in 1s
Test Suite / build-frontend (push) Failing after 6s
Test Suite / k6 /health Baseline (push) Successful in 34s
Test Suite / playwright-tests (push) Canceled after 1m34s
Superadmins enable a club for the interface. Club admins and members create the keys. Exercise release lives on its own tab and picks one of those keys. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
fe3633ba8b
commit
1527a430b9
14 files changed
+842
-290
No files matched your search
@@ -24,6 +24,7 @@ from distribution_contract import (
|
||||
encode_cursor,
|
||||
exercise_offerable,
|
||||
package_state,
|
||||
scope_denial,
|
||||
manifest_bytes,
|
||||
official_write_allowed,
|
||||
plan_available,
|
||||
@@ -100,6 +101,15 @@ def test_replay_keeps_release_id_and_explicit_reconfirm_mints_a_new_one() -> Non
|
||||
assert [kind for kind, _ in events] == ["published", "published"]
|
||||
|
||||
|
||||
def test_key_scope_follows_the_role_context() -> None:
|
||||
assert scope_denial("personal", ["exercise"], ["private"]) is None
|
||||
assert scope_denial("personal", ["exercise"], ["official"])
|
||||
assert scope_denial("club", ["exercise", "framework"], ["club", "private"]) is None
|
||||
assert scope_denial("club", ["exercise"], ["official"])
|
||||
assert scope_denial("platform", ["training_plan"], ["official", "private"]) is None
|
||||
assert scope_denial("platform", [], ["official"])
|
||||
|
||||
|
||||
def test_availability_keeps_the_copy_and_stops_new_offers() -> None:
|
||||
assert package_state(fetch_blocked=False, retired=False) == "available"
|
||||
assert package_state(fetch_blocked=False, retired=True) == "retired"
|
||||
|
||||
Reference in new issue
Block a user