Add provider and development relationship modeling

This commit is contained in:
2026-11-05 22:52:46 +00:00
parent cac5ef37e5
commit 4318454a7a
5 changed files with 40 additions and 10 deletions
+4 -2
View File
@@ -4,9 +4,11 @@ import { definitionFromCapabilities, demoLandscape, getPreset, systemFromPreset,
describe('landscape model', () => {
it('provides the editable demo landscape', () => {
const landscape = demoLandscape()
expect(landscape.systems).toHaveLength(6)
expect(landscape.scenarios.map((scenario) => scenario.name)).toEqual(expect.arrayContaining(['Place order', 'Register customer', 'Contact enquiry', 'Sample request', 'Commercial order', 'Order retry and recovery']))
expect(landscape.systems).toHaveLength(8)
expect(landscape.scenarios.map((scenario) => scenario.name)).toEqual(expect.arrayContaining(['Place order', 'Register customer', 'Contact enquiry', 'Sample request', 'Commercial order', 'Order retry and recovery', 'Commit, build and deploy']))
expect(landscape.scenarios[0].steps[2].connectionIds).toHaveLength(2)
expect(getPreset('bitbucket')?.category).toBe('development-tool')
expect(landscape.connections.find((connection) => connection.id === 'azure-devops-website')?.connectionType).toBe('deployment')
})
it('round-trips a valid landscape and preserves positions', () => {
const source = demoLandscape(); const imported = validateLandscape(JSON.parse(JSON.stringify(source)))