blob: 467f00d491435e9904bc4e96606a0b0bcc14f975 [file] [log] [blame]
ys969316a9fce2020-01-19 13:50:02 +02001import {Requirement} from "../../app/models/requirement";
2
3export 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
9export 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
14const requirement1: Requirement = new Requirement();
15requirement1.name = "dependency";
16requirement1.capability = "tosca.capabilities.Node";
17requirement1.node = "tosca.nodes.Root";
18requirement1.relationship = "tosca.relationships.DependsOn";
19requirement1.minOccurrences = "0";
20requirement1.maxOccurrences = "UNBOUNDED";
21const requirement2: Requirement = new Requirement();
22requirement2.name = "binding";
23requirement2.capability = "tosca.capabilities.network.Bindable";
24requirement2.node = null;
25requirement2.relationship = "tosca.relationships.network.BindsTo";
26requirement2.minOccurrences = "1";
27requirement2.maxOccurrences = "UNBOUNDED";
28export const filterRequirmentsMock: Array<Requirement> = [requirement1, requirement2];
29
30