diff options
author | shiria <shiri.amichai@amdocs.com> | 2018-09-20 12:51:32 +0300 |
---|---|---|
committer | Oren Kleks <orenkle@amdocs.com> | 2018-10-08 12:04:27 +0000 |
commit | 48528e9da9e241c59f1628ffda9020a981f939f6 (patch) | |
tree | 16644ddacf5b4be4dc56c1e8639f2934a5503d3b /common/onap-tosca-datatype/src/test/resources | |
parent | 90943911394d3672e714d2b743c143a2dd4408cc (diff) |
Add support of interface in TOSCA datatypes
Move all interface functionality from DataModelUtil class to TOSCA datatype relevant class
Change-Id: Ifea22b60e9a71fe024e87f9987a749e9d56aad82
Issue-ID: SDC-1781
Signed-off-by: shiria <shiri.amichai@amdocs.com>
Diffstat (limited to 'common/onap-tosca-datatype/src/test/resources')
5 files changed, 147 insertions, 0 deletions
diff --git a/common/onap-tosca-datatype/src/test/resources/mock/nodeTemplate/interfaceDefinitionForUpd.yaml b/common/onap-tosca-datatype/src/test/resources/mock/nodeTemplate/interfaceDefinitionForUpd.yaml new file mode 100644 index 0000000000..95b01e7d16 --- /dev/null +++ b/common/onap-tosca-datatype/src/test/resources/mock/nodeTemplate/interfaceDefinitionForUpd.yaml @@ -0,0 +1,37 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 + +node_types: + amdocs.nodes.nodeInterface: + derived_from: tosca.nodes.Root + properties: + prop1: + type: string + required: true + interfaces: + Standard: + type: tosca.interfaces.node.lifecycle.Standard + inputs: + url_path: + type: string + create: + inputs: + name: + type: string + +topology_template: + description: topology template descroption + node_templates: + nodeWithInterface: + type: amdocs.nodes.nodeInterface + properties: + prop1: abcd + interfaces: + Standard: + inputs: + url_path: { get_property: [ SELF, prop1 ] } + create: + implementation: + primary: Artifacts/Deployment/WORKFLOW/nodeCreateWorkFlow.json + inputs: + name: myName + last: ["a","b"] diff --git a/common/onap-tosca-datatype/src/test/resources/mock/nodeTemplate/interfaceDefinitionForUpdResult.yaml b/common/onap-tosca-datatype/src/test/resources/mock/nodeTemplate/interfaceDefinitionForUpdResult.yaml new file mode 100644 index 0000000000..2782a44a0b --- /dev/null +++ b/common/onap-tosca-datatype/src/test/resources/mock/nodeTemplate/interfaceDefinitionForUpdResult.yaml @@ -0,0 +1,43 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 + +node_types: + amdocs.nodes.nodeInterface: + derived_from: tosca.nodes.Root + properties: + prop1: + type: string + required: true + interfaces: + Standard: + type: tosca.interfaces.node.lifecycle.Standard + inputs: + url_path: + type: string + create: + inputs: + name: + type: string + +topology_template: + description: topology template descroption + node_templates: + nodeWithInterface: + type: amdocs.nodes.nodeInterface + properties: + prop1: abcd + interfaces: + Standard: + inputs: + url_path: { get_property: [ SELF, prop1 ] } + create: + implementation: + primary: Artifacts/Deployment/WORKFLOW/nodeCreateWorkFlow.json + inputs: + name: myName + last: ["a","b"] + newInterface: + inputs: + newInput: myVal + oper1: + implementation: + primary: myWf.json diff --git a/common/onap-tosca-datatype/src/test/resources/mock/nodeTemplate/normalizeInterfaceDefinition.yaml b/common/onap-tosca-datatype/src/test/resources/mock/nodeTemplate/normalizeInterfaceDefinition.yaml new file mode 100644 index 0000000000..5f91e1e39f --- /dev/null +++ b/common/onap-tosca-datatype/src/test/resources/mock/nodeTemplate/normalizeInterfaceDefinition.yaml @@ -0,0 +1,37 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 + +node_types: + amdocs.nodes.nodeInterface: + derived_from: tosca.nodes.Root + properties: + prop1: + type: string + required: true + interfaces: + Standard: + type: tosca.interfaces.node.lifecycle.Standard + inputs: + url_path: + type: string + create: + inputs: + name: + type: string + +topology_template: + description: topology template descroption + node_templates: + nodeWithInterface: + type: amdocs.nodes.nodeInterface + properties: + prop1: abcd + interfaces: + Standard: + inputs: + url_path: { get_property: [ SELF, prop1 ] } + create: + implementation: + primary: Artifacts/Deployment/WORKFLOW/nodeCreateWorkFlow.json + inputs: + name: myName + last: ["a","b"]
\ No newline at end of file diff --git a/common/onap-tosca-datatype/src/test/resources/mock/nodeType/normalizeInterfaceDefinition.yaml b/common/onap-tosca-datatype/src/test/resources/mock/nodeType/normalizeInterfaceDefinition.yaml new file mode 100644 index 0000000000..c5997c8762 --- /dev/null +++ b/common/onap-tosca-datatype/src/test/resources/mock/nodeType/normalizeInterfaceDefinition.yaml @@ -0,0 +1,19 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 + +node_types: + amdocs.nodes.nodeWithInterface: + derived_from: tosca.nodes.Root + properties: + prop1: + type: string + required: true + interfaces: + Standard: + type: tosca.interfaces.node.lifecycle.Standard + inputs: + url_path: + type: string + create: + inputs: + name: + type: string
\ No newline at end of file diff --git a/common/onap-tosca-datatype/src/test/resources/mock/serviceTemplate/normalizeInterfaceType.yaml b/common/onap-tosca-datatype/src/test/resources/mock/serviceTemplate/normalizeInterfaceType.yaml new file mode 100644 index 0000000000..360f52cb6e --- /dev/null +++ b/common/onap-tosca-datatype/src/test/resources/mock/serviceTemplate/normalizeInterfaceType.yaml @@ -0,0 +1,11 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 + +interface_types: + amdocs.interfaces.interfaceNoOper: + derived_from: tosca.interfaces.node.lifecycle.Standard + + amdocs.interfaces.interfaceWithOper: + derived_from: tosca.interfaces.node.lifecycle.Standard + newOper1: + newOper2: + description: new operation2
\ No newline at end of file |