ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 1 | import {Requirement} from "../../app/models/requirement"; |
| 2 | |
| 3 | export const requirementMock = [ |
| 4 | {"name": "dependency", "capability": "tosca.capabilities.Node", "node": "tosca.nodes.Root", "relationship": "tosca.relationships.DependsOn", "minOccurrences": "0", "maxOccurrences": "UNBOUNDED"}, |
| 5 | {"name": "binding", "capability": "tosca.capabilities.network.Bindable", "node": null, "relationship": "tosca.relationships.network.BindsTo", "minOccurrences": "1", "maxOccurrences": "UNBOUNDED"}, |
| 6 | {"name": "link", "capability": "tosca.capabilities.network.Linkable", "node": null, "relationship": "tosca.relationships.network.LinksTo", "minOccurrences": "1", "maxOccurrences": "UNBOUNDED"} |
| 7 | ]; |
| 8 | |
| 9 | export const capabilitiesMock = [ |
| 10 | {"name": "attachment", "type": "tosca.capabilities.Attachment", "validSourceTypes": ["firstSource", "secondSource"], "minOccurrences": "0", "maxOccurrences": "UNBOUNDED"}, |
| 11 | {"name": "binding", "type": "tosca.capabilities.Node", "validSourceTypes": ["1source"], "minOccurrences": "1", "maxOccurrences": "UNBOUNDED"} |
| 12 | ]; |
| 13 | |
| 14 | const requirement1: Requirement = new Requirement(); |
| 15 | requirement1.name = "dependency"; |
| 16 | requirement1.capability = "tosca.capabilities.Node"; |
| 17 | requirement1.node = "tosca.nodes.Root"; |
| 18 | requirement1.relationship = "tosca.relationships.DependsOn"; |
| 19 | requirement1.minOccurrences = "0"; |
| 20 | requirement1.maxOccurrences = "UNBOUNDED"; |
| 21 | const requirement2: Requirement = new Requirement(); |
| 22 | requirement2.name = "binding"; |
| 23 | requirement2.capability = "tosca.capabilities.network.Bindable"; |
| 24 | requirement2.node = null; |
| 25 | requirement2.relationship = "tosca.relationships.network.BindsTo"; |
| 26 | requirement2.minOccurrences = "1"; |
| 27 | requirement2.maxOccurrences = "UNBOUNDED"; |
| 28 | export const filterRequirmentsMock: Array<Requirement> = [requirement1, requirement2]; |
| 29 | |
| 30 | |