Skip to content

Commit 54f0d46

Browse files
committed
test(breg): bind credentials for the service-area journey steps
The spatial fixture journeys gained two service-area creates and an area-map bbox read, but the production-executor test still listed credentials for the old steps only, so the credential inventory no longer matched the suite and the PostgreSQL lane refused it. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
1 parent a352c2c commit 54f0d46

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

‎crates/registry-breg/tests/postgres_fixture_journeys.rs‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,6 +1322,21 @@ fn spatial_credential_bindings(
13221322
"create-edge-service-site",
13231323
Zeroizing::new(spatial_admin_token(idp)),
13241324
),
1325+
SchemaTestCredentialBinding::bearer(
1326+
"service-site-source-profile-smoke",
1327+
"create-intersecting-service-area",
1328+
Zeroizing::new(spatial_admin_token(idp)),
1329+
),
1330+
SchemaTestCredentialBinding::bearer(
1331+
"service-site-source-profile-smoke",
1332+
"create-envelope-only-service-area",
1333+
Zeroizing::new(spatial_admin_token(idp)),
1334+
),
1335+
SchemaTestCredentialBinding::bearer(
1336+
"service-site-source-profile-smoke",
1337+
"area-map-reader-bbox-uses-geometry-intersection",
1338+
Zeroizing::new(spatial_public_area_map_token(idp)),
1339+
),
13251340
SchemaTestCredentialBinding::bearer(
13261341
"service-site-source-profile-smoke",
13271342
"public-map-reader-lists-public-point-fields",
@@ -1498,6 +1513,16 @@ fn spatial_public_map_token(idp: &MockIdp) -> String {
14981513
}))
14991514
}
15001515

1516+
fn spatial_public_area_map_token(idp: &MockIdp) -> String {
1517+
idp.mint_token(json!({
1518+
"aud": AUDIENCE,
1519+
"registry_actor_kind": "service",
1520+
"registry_principal": "synthetic-public-area-map",
1521+
"registry_purpose": "service-area-public-map",
1522+
"scope": "service-areas:public:read",
1523+
}))
1524+
}
1525+
15011526
fn spatial_public_directory_token(idp: &MockIdp) -> String {
15021527
idp.mint_token(json!({
15031528
"aud": AUDIENCE,

0 commit comments

Comments
 (0)