← Về thư mục
tests/test_sandbox_grants.py
- mint · function · L20-L28 — def mint(secret, frame, **kwargs)
- verify · function · L31-L32 — def verify(secret, token, **kwargs)
- test_a_grant_round_trips_the_frame_it_names · function · L35-L38 — def test_a_grant_round_trips_the_frame_it_names()
- test_a_frame_id_survives_characters_that_would_break_the_path · function · L41-L50 — def test_a_frame_id_survives_characters_that_would_break_the_path()
- test_every_tampered_grant_is_refused · function · L65-L69 — def test_every_tampered_grant_is_refused(mangle)
- test_a_grant_minted_by_another_daemon_is_refused · function · L72-L78 — def test_a_grant_minted_by_another_daemon_is_refused()
- test_a_grant_expires · function · L81-L86 — def test_a_grant_expires()
- test_without_a_secret_nothing_mints_and_nothing_verifies · function · L89-L95 — def test_without_a_secret_nothing_mints_and_nothing_verifies()
- test_the_token_leads_the_path_so_relative_links_carry_it · function · L98-L111 — def test_the_token_leads_the_path_so_relative_links_carry_it()
- test_an_identifier_that_would_escape_the_segment_is_quoted · function · L114-L120 — def test_an_identifier_that_would_escape_the_segment_is_quoted()
- test_a_path_without_a_grant_segment_is_refused · function · L127-L129 — def test_a_path_without_a_grant_segment_is_refused(path)
- test_grant_cannot_be_spent_on_another_origin · function · L136-L138 — def test_grant_cannot_be_spent_on_another_origin(origin)
- test_empty_scope_cannot_be_minted · function · L142-L144 — def test_empty_scope_cannot_be_minted(frame)
- test_origin_pair_refuses_ambiguous_or_unsupported_authorities · function · L161-L163 — def test_origin_pair_refuses_ambiguous_or_unsupported_authorities(host)
- test_origin_pair_supports_both_directions_and_default_port · function · L166-L173 — def test_origin_pair_supports_both_directions_and_default_port()
- test_origin_pair_agrees_with_the_rebind_allowlist_on_case · function · L176-L184 — def test_origin_pair_agrees_with_the_rebind_allowlist_on_case()
- test_grant_pins_primary_version_and_mint_origin · function · L187-L194 — def test_grant_pins_primary_version_and_mint_origin()
- test_mint_rejects_anything_but_an_exact_loopback_app_origin · function · L210-L221 — def test_mint_rejects_anything_but_an_exact_loopback_app_origin(app_origin)