test(tasks): replace external repo fixture with neutral local slug
This commit is contained in:
parent
1046f91229
commit
0c209e4c21
|
|
@ -5,13 +5,13 @@ describe('resolveTaskImplementationTarget', () => {
|
|||
it('returns explicit implementation target metadata when present', () => {
|
||||
const result = resolveTaskImplementationTarget({
|
||||
metadata: {
|
||||
implementation_repo: 'torreypjones/cloudstack-razor',
|
||||
implementation_repo: 'builderz-labs/mission-control',
|
||||
code_location: '/apps/api',
|
||||
},
|
||||
})
|
||||
|
||||
expect(result).toEqual({
|
||||
implementation_repo: 'torreypjones/cloudstack-razor',
|
||||
implementation_repo: 'builderz-labs/mission-control',
|
||||
code_location: '/apps/api',
|
||||
})
|
||||
})
|
||||
|
|
@ -19,13 +19,13 @@ describe('resolveTaskImplementationTarget', () => {
|
|||
it('supports legacy metadata keys for backward compatibility', () => {
|
||||
const result = resolveTaskImplementationTarget({
|
||||
metadata: {
|
||||
github_repo: 'torreypjones/cloudstack-razor',
|
||||
github_repo: 'builderz-labs/mission-control',
|
||||
path: '/packages/core',
|
||||
},
|
||||
})
|
||||
|
||||
expect(result).toEqual({
|
||||
implementation_repo: 'torreypjones/cloudstack-razor',
|
||||
implementation_repo: 'builderz-labs/mission-control',
|
||||
code_location: '/packages/core',
|
||||
})
|
||||
})
|
||||
|
|
@ -33,7 +33,7 @@ describe('resolveTaskImplementationTarget', () => {
|
|||
it('prefers explicit implementation target metadata over legacy fallback keys', () => {
|
||||
const result = resolveTaskImplementationTarget({
|
||||
metadata: {
|
||||
implementation_repo: 'torreypjones/cloudstack-razor',
|
||||
implementation_repo: 'builderz-labs/mission-control',
|
||||
github_repo: 'legacy/repo',
|
||||
code_location: '/apps/api',
|
||||
path: '/legacy/path',
|
||||
|
|
@ -41,7 +41,7 @@ describe('resolveTaskImplementationTarget', () => {
|
|||
})
|
||||
|
||||
expect(result).toEqual({
|
||||
implementation_repo: 'torreypjones/cloudstack-razor',
|
||||
implementation_repo: 'builderz-labs/mission-control',
|
||||
code_location: '/apps/api',
|
||||
})
|
||||
})
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ describe('createTaskSchema', () => {
|
|||
const result = createTaskSchema.safeParse({
|
||||
title: 'Route this task',
|
||||
metadata: {
|
||||
implementation_repo: 'torreypjones/cloudstack-razor',
|
||||
implementation_repo: 'builderz-labs/mission-control',
|
||||
code_location: '/apps/api',
|
||||
},
|
||||
})
|
||||
|
|
|
|||
|
|
@ -47,14 +47,14 @@ test.describe('Tasks CRUD', () => {
|
|||
test('POST persists implementation target metadata for deterministic repo routing', async ({ request }) => {
|
||||
const { id, res, body } = await createTestTask(request, {
|
||||
metadata: {
|
||||
implementation_repo: 'torreypjones/cloudstack-razor',
|
||||
implementation_repo: 'builderz-labs/mission-control',
|
||||
code_location: '/apps/api',
|
||||
},
|
||||
})
|
||||
cleanup.push(id)
|
||||
|
||||
expect(res.status()).toBe(201)
|
||||
expect(body.task.metadata.implementation_repo).toBe('torreypjones/cloudstack-razor')
|
||||
expect(body.task.metadata.implementation_repo).toBe('builderz-labs/mission-control')
|
||||
expect(body.task.metadata.code_location).toBe('/apps/api')
|
||||
})
|
||||
|
||||
|
|
@ -180,7 +180,7 @@ test.describe('Tasks CRUD', () => {
|
|||
|
||||
test('PUT updates implementation target metadata and GET returns persisted values', async ({ request }) => {
|
||||
const { id } = await createTestTask(request, {
|
||||
metadata: { implementation_repo: 'torreypjones/cloudstack-razor', code_location: '/apps/api' },
|
||||
metadata: { implementation_repo: 'builderz-labs/mission-control', code_location: '/apps/api' },
|
||||
})
|
||||
cleanup.push(id)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue