Add environment containers and system tags
This commit is contained in:
@@ -39,4 +39,13 @@ describe('landscape model', () => {
|
||||
instance.definition!.actions[0].outputs[0].payload = '{"edited":true}'
|
||||
expect(definition.actions[0].outputs[0].payload).not.toBe('{"edited":true}')
|
||||
})
|
||||
it('preserves explicit nested containers and independent system tags', () => {
|
||||
const landscape = demoLandscape()
|
||||
expect(landscape.containers.map((container) => container.name)).toEqual(['Azure', 'Subscription', 'Resource Group'])
|
||||
expect(landscape.containers[2].parentId).toBe(landscape.containers[1].id)
|
||||
expect(landscape.systems.find((system) => system.id === 'crm')?.containerId).toBe('azure-resource-group')
|
||||
expect(landscape.systems.find((system) => system.id === 'crm')?.tags).toEqual(['Production', 'Customer Data'])
|
||||
const imported = validateLandscape(JSON.parse(JSON.stringify(landscape)))
|
||||
expect(imported.containers).toEqual(landscape.containers)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user