Skip to content

Commit 45e669b

Browse files
ekremneyclaude
andcommitted
test(data-access): bump mysticat image to v1.29.0, fix IT fixture org refs
- Bump MYSTICAT_DATA_SERVICE_TAG default to v1.29.0 so IT suites for SiteImsOrgAccess and AccessGrantLog run against a schema that has the site_ims_org_accesses and access_grant_logs tables (no longer skipped) - Fix site-ims-org-accesses fixture: org 0 was referenced in both FK columns (ON DELETE RESTRICT), blocking the Organization IT remove test. Redesigned to use only org 1 and org 2 (site1→org1, site2→org2). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent d57c39c commit 45e669b

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

packages/spacecat-shared-data-access/test/fixtures/site-ims-org-accesses.fixture.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,27 @@
1010
* governing permissions and limitations under the License.
1111
*/
1212

13-
// Site 0 belongs to Org 0; delegate = Org 1, target = Org 0 (site-owning org)
13+
// Org 0 (4854e75e) is intentionally not referenced in any FK column here.
14+
// The Organization IT test removes organizations[0]; both org FK columns have ON DELETE RESTRICT,
15+
// so any fixture row referencing org 0 would block that test.
1416
// Site 1 belongs to Org 1; delegate = Org 2, target = Org 1 (site-owning org)
17+
// Site 2 belongs to Org 2; delegate = Org 1, target = Org 2 (site-owning org)
1518
const siteImsOrgAccesses = [
1619
{
1720
siteImsOrgAccessId: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
18-
siteId: '5d6d4439-6659-46c2-b646-92d110fa5a52',
19-
organizationId: '757ceb98-05c8-4e07-bb23-bc722115b2b0',
20-
targetOrganizationId: '4854e75e-894b-4a74-92bf-d674abad1423',
21+
siteId: '78fec9c7-2141-4600-b7b1-ea5c78752b91',
22+
organizationId: '5d42bdf8-b65d-4de8-b849-a4f28ebc93cd',
23+
targetOrganizationId: '757ceb98-05c8-4e07-bb23-bc722115b2b0',
2124
productCode: 'LLMO',
2225
role: 'agency',
2326
grantedBy: 'ims:user123',
2427
expiresAt: '2026-12-31T23:59:59.000Z',
2528
},
2629
{
2730
siteImsOrgAccessId: 'b2c3d4e5-f6a7-8901-bcde-f12345678901',
28-
siteId: '78fec9c7-2141-4600-b7b1-ea5c78752b91',
29-
organizationId: '5d42bdf8-b65d-4de8-b849-a4f28ebc93cd',
30-
targetOrganizationId: '757ceb98-05c8-4e07-bb23-bc722115b2b0',
31+
siteId: '56a691db-d32e-4308-ac99-a21de0580557',
32+
organizationId: '757ceb98-05c8-4e07-bb23-bc722115b2b0',
33+
targetOrganizationId: '5d42bdf8-b65d-4de8-b849-a4f28ebc93cd',
3134
productCode: 'ASO',
3235
role: 'collaborator',
3336
grantedBy: 'slack:U12345',

packages/spacecat-shared-data-access/test/it/postgrest/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ services:
1717

1818
data-service:
1919
platform: ${MYSTICAT_DATA_SERVICE_PLATFORM:-linux/amd64}
20-
image: ${MYSTICAT_DATA_SERVICE_REPOSITORY:-682033462621.dkr.ecr.us-east-1.amazonaws.com/mysticat-data-service}:${MYSTICAT_DATA_SERVICE_TAG:-v1.19.0}
20+
image: ${MYSTICAT_DATA_SERVICE_REPOSITORY:-682033462621.dkr.ecr.us-east-1.amazonaws.com/mysticat-data-service}:${MYSTICAT_DATA_SERVICE_TAG:-v1.29.0}
2121
depends_on:
2222
db:
2323
condition: service_healthy

0 commit comments

Comments
 (0)