diff options
author | liamfallon <liam.fallon@ericsson.com> | 2018-06-13 16:50:59 +0100 |
---|---|---|
committer | liamfallon <liam.fallon@ericsson.com> | 2018-06-14 11:22:00 +0100 |
commit | 4fcf04234e5e1b1d4338f12d982a45edf317d795 (patch) | |
tree | a17fb2a9dd70064145312b75c9d1019086cb11c1 /plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources | |
parent | 2e1da7176952e013276ef29638a313f3a1b49c00 (diff) |
Add YAML plugin and cleanup for checkstyle
Bringing in the APEX YAML plugin, allows events with YAML bodies
to be consumed by APEX.
Also clean up of event protocol interface to make it not specific
for JSON.
Also some checkstyle changes on classes impacted by event
protocol interface change.
Change-Id: I7c3867ac508096fd8acad2488e61db87dfa1d6bd
Issue-ID: POLICY-862
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
Diffstat (limited to 'plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources')
31 files changed, 604 insertions, 0 deletions
diff --git a/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Collection0.yaml b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Collection0.yaml new file mode 100644 index 000000000..12519fb48 --- /dev/null +++ b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Collection0.yaml @@ -0,0 +1,3 @@ +- Mark McGwire +- Sammy Sosa +- Ken Griffey
\ No newline at end of file diff --git a/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Collection1.yaml b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Collection1.yaml new file mode 100644 index 000000000..7b7ec948d --- /dev/null +++ b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Collection1.yaml @@ -0,0 +1,3 @@ +hr: 65 # Home runs +avg: 0.278 # Batting average +rbi: 147 # Runs Batted In diff --git a/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Collection2.yaml b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Collection2.yaml new file mode 100644 index 000000000..656d628ec --- /dev/null +++ b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Collection2.yaml @@ -0,0 +1,8 @@ +american: + - Boston Red Sox + - Detroit Tigers + - New York Yankees +national: + - New York Mets + - Chicago Cubs + - Atlanta Braves diff --git a/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Collection3.yaml b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Collection3.yaml new file mode 100644 index 000000000..e60d8a9b3 --- /dev/null +++ b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Collection3.yaml @@ -0,0 +1,8 @@ +- + name: Mark McGwire + hr: 65 + avg: 0.278 +- + name: Sammy Sosa + hr: 63 + avg: 0.288
\ No newline at end of file diff --git a/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Collection4.yaml b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Collection4.yaml new file mode 100644 index 000000000..65da53d6e --- /dev/null +++ b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Collection4.yaml @@ -0,0 +1,3 @@ +- [name , hr, avg ] +- [Mark McGwire, "65", "0.278"] +- [Sammy Sosa , "63", "0.288"]
\ No newline at end of file diff --git a/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Collection5.yaml b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Collection5.yaml new file mode 100644 index 000000000..dfc534fd2 --- /dev/null +++ b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Collection5.yaml @@ -0,0 +1,5 @@ +MarkMcGwire: {hr: 65, avg: 0.278} +SammySosa: { + hr: 63, + avg: 0.288 + }
\ No newline at end of file diff --git a/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Empty0.yaml b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Empty0.yaml new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Empty0.yaml diff --git a/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Empty1.yaml b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Empty1.yaml new file mode 100644 index 000000000..8946d48ba --- /dev/null +++ b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Empty1.yaml @@ -0,0 +1,4 @@ +# Comments line + + +# Comment line
\ No newline at end of file diff --git a/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Structure0.yaml b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Structure0.yaml new file mode 100644 index 000000000..0a47b89d8 --- /dev/null +++ b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Structure0.yaml @@ -0,0 +1,10 @@ +--- +# Ranking of 1998 home runs +- Mark McGwire +- Sammy Sosa +- Ken Griffey + +--- +# Team ranking +- Chicago Cubs +- St Louis Cardinals
\ No newline at end of file diff --git a/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Structure1.yaml b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Structure1.yaml new file mode 100644 index 000000000..05e102d8e --- /dev/null +++ b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Structure1.yaml @@ -0,0 +1,10 @@ +--- +time: 20:03:20 +player: Sammy Sosa +action: strike (miss) +... +--- +time: 20:03:47 +player: Sammy Sosa +action: grand slam +... diff --git a/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Structure2.yaml b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Structure2.yaml new file mode 100644 index 000000000..a3ef726c0 --- /dev/null +++ b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Structure2.yaml @@ -0,0 +1,8 @@ +--- +hr: # 1998 hr ranking + - Mark McGwire + - Sammy Sosa +rbi: + # 1998 rbi ranking + - Sammy Sosa + - Ken Griffey
\ No newline at end of file diff --git a/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Structure3.yaml b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Structure3.yaml new file mode 100644 index 000000000..bf46f753c --- /dev/null +++ b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Structure3.yaml @@ -0,0 +1,8 @@ +--- +hr: + - Mark McGwire + # Following node labeled SS + - &SS Sammy Sosa +rbi: + - *SS # Subsequent occurrence + - Ken Griffey
\ No newline at end of file diff --git a/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Structure4.yaml b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Structure4.yaml new file mode 100644 index 000000000..eb3fd722c --- /dev/null +++ b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Structure4.yaml @@ -0,0 +1,7 @@ +? ChicagoCubs +: + - 2001-07-23 + +? AtlantaBraves +: [ 2001-07-02, 2001-08-12, + 2001-08-14 ]
\ No newline at end of file diff --git a/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Structure5.yaml b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Structure5.yaml new file mode 100644 index 000000000..8a26671ba --- /dev/null +++ b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/Structure5.yaml @@ -0,0 +1,8 @@ +--- +# Products purchased +- item : Super Hoop + quantity: 1 +- item : Basketball + quantity: 4 +- item : Big Shoes + quantity: 1
\ No newline at end of file diff --git a/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/TOSCA0.yaml b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/TOSCA0.yaml new file mode 100644 index 000000000..27977f47f --- /dev/null +++ b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/TOSCA0.yaml @@ -0,0 +1,180 @@ +# https://wiki.onap.org/display/DW/VNFD+example +tosca_definitions_version: tosca_simple_profile_yaml_1_1 +description: the VNFD of MyVnf + +node_types: + MyCompany.MyVnf.1_0.1_0: # node type of MyVnf + derived_from: tosca.nodes.nfv.VNF + properties: + descriptor_id: + type: string + constraints: [ valid_values: [ b1bb0ce7-ebca-4fa7-95ed-4840d70a1177 ] ] + default: b1bb0ce7-ebca-4fa7-95ed-4840d70a1177 + required: true + provider: + type: string + constraints: [ valid_values: [ MyCompany ] ] + default: MyCompany + required: true + product_name: + type: string + constraints: [ valid_values: [ MyVnf ] ] + default: Myvnf + required: true + software_version: + type: string + constraints: [ valid_values: [ '1.0' ] ] + default: '1.0' + required: true + descriptor_version: + type: string + constraints: [ valid_values: [ '1.0' ] ] + default: '1.0' + required: true + flavour_id: + type: string + constraints: [ valid_values: [ simple ] ] #only one and only allowed one DF in this example + default: simple + required: true + flavour_description: + type: string + constraints: [] + default: "" + required: true + vnfm_info: + type: list + constraints: [] + default: "" + required: true + interfaces: + Nfv: + instantiate: + inputs: + parameter_1: + type: string + required: false + default: value_1 + constraints: [] + parameter_2: + type: string + required: false + default: value_2 + constraints: [] + terminate: + implementation: terminate.workbook.mistral.yaml + + +topology_template: + substitution_mappings: + node_type: MyCompany.MyVnf.1_0.1_0 + requirements: + - virtual_link: [ Cp_2, external_virtual_link ] # expose as external CP + - virtual_link: [ Cp_4, external_virtual_link ] # expose as external CP + + node_templates: + VDU_compute_1: + type: tosca.nodes.nfv.Vdu.Compute + properties: + name: .. + description: .. + boot_order: .. + nfvi_constraints: .. + configurable_properties: + additional_vnfc_configurable_properties: {} + vdu_profile: + min_number_of_instances: 1 + max_number_of_instances: 4 + capabilities: + virtual_compute: + properties: + virtual_memory: + virtual_mem_size: 8096 MB + virtual_cpu: + cpu_architecture: x86 + num_virtual_cpu: 2 + virtual_cpu_clock: 1800 MHz + requirements: + - virtual_storage: Storage_1 + + Storage_1: + type: tosca.nodes.nfv.Vdu.VirtualStorage + properties: + type_of_storage: .. + size_of_storage: 100MB + rdma_enabled: .. + + Cp_1: + type: tosca.nodes.nfv.VduCp + properties: + layer_protocol: ipv4 + role: leaf + description: Internal connection point on an VL + requirements: + - virtual_binding: Vdu_1 + - virtual_link: internalVl_1 + + + internalVl_1: + type: tosca.nodes.nfv.VirtualLink + properties: + connectivity_type: + layer_protocol: ipv4 + flow_pattern: mesh + test_access: [] + description: .. + vl_profile: + qos: + maxBitRateRequirements: + minBitRateRequirements: + + + Cp_2: + type: tosca.nodes.nfv.VduCp + properties: + layer_protocol: ipv4 + role: leaf + description: External connection point to access exteranlVl_1 + requirements: + - external_virtual_link: + - virtual_binding: Vdu_1 + + + VDU_compute_2: + type: tosca.nodes.nfv.Vdu.Compute + properties: + name: .. + description: .. + boot_order: .. + nfvi_constraints: .. + configurable_properties: + additional_vnfc_configurable_properties: {} + vdu_profile: + min_number_of_instances: 2 + max_number_of_instances: 6 + capabilities: + virtual_compute: + properties: + virtual_memory: + virtual_mem_size: 8096 MB + virtual_cpu: + cpu_architecture: x86 + num_virtual_cpu: 4 + virtual_cpu_clock: 1800 MHz + Cp_3: + type: tosca.nodes.nfv.VduCp + properties: + layer_protocol: ipv4 + role: leaf + description: Internal connection point on an VL + requirements: + - virtual_binding: Vdu_2 + - virtual_link: internalVl_1 + Cp_4: + type: tosca.nodes.nfv.VduCpd + properties: + layer_protocol: ipv4 + role: leaf + description: External connection point to access exteranlVl_2 + requirements: + - external_virtual_link: + - virtual_binding: Vdu_2
\ No newline at end of file diff --git a/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Collection0_0.yaml b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Collection0_0.yaml new file mode 100644 index 000000000..a40e4262c --- /dev/null +++ b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Collection0_0.yaml @@ -0,0 +1,9 @@ +name: TestEvent1 +version: 0.0.1 +nameSpace: org.onap.policy.apex.plugins.event.protocol.yaml +source: '' +target: '' +yaml_field: +- Mark McGwire +- Sammy Sosa +- Ken Griffey
\ No newline at end of file diff --git a/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Collection1_0.yaml b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Collection1_0.yaml new file mode 100644 index 000000000..6d950321d --- /dev/null +++ b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Collection1_0.yaml @@ -0,0 +1,8 @@ +name: TestEvent2 +version: 0.0.1 +nameSpace: org.onap.policy.apex.plugins.event.protocol.yaml +source: '' +target: '' +avg: 0.278 +hr: 65 +rbi: 147
\ No newline at end of file diff --git a/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Collection2_0.yaml b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Collection2_0.yaml new file mode 100644 index 000000000..b33b14ec9 --- /dev/null +++ b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Collection2_0.yaml @@ -0,0 +1,13 @@ +name: TestEvent3 +version: 0.0.1 +nameSpace: org.onap.policy.apex.plugins.event.protocol.yaml +source: '' +target: '' +american: +- Boston Red Sox +- Detroit Tigers +- New York Yankees +national: +- New York Mets +- Chicago Cubs +- Atlanta Braves
\ No newline at end of file diff --git a/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Collection3_0.yaml b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Collection3_0.yaml new file mode 100644 index 000000000..bc99359ec --- /dev/null +++ b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Collection3_0.yaml @@ -0,0 +1,12 @@ +name: TestEvent4 +version: 0.0.1 +nameSpace: org.onap.policy.apex.plugins.event.protocol.yaml +source: '' +target: '' +yaml_field: +- name: Mark McGwire + hr: 65 + avg: 0.278 +- name: Sammy Sosa + hr: 63 + avg: 0.288
\ No newline at end of file diff --git a/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Collection4_0.yaml b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Collection4_0.yaml new file mode 100644 index 000000000..2d924ff1f --- /dev/null +++ b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Collection4_0.yaml @@ -0,0 +1,15 @@ +name: TestEvent5 +version: 0.0.1 +nameSpace: org.onap.policy.apex.plugins.event.protocol.yaml +source: '' +target: '' +yaml_field: +- - name + - hr + - avg +- - Mark McGwire + - '65' + - '0.278' +- - Sammy Sosa + - '63' + - '0.288'
\ No newline at end of file diff --git a/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Collection5_0.yaml b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Collection5_0.yaml new file mode 100644 index 000000000..e9e586acb --- /dev/null +++ b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Collection5_0.yaml @@ -0,0 +1,11 @@ +name: TestEvent6 +version: 0.0.1 +nameSpace: org.onap.policy.apex.plugins.event.protocol.yaml +source: '' +target: '' +Mark McGwire: + hr: 65 + avg: 0.278 +Sammy Sosa: + hr: 63 + avg: 0.288 diff --git a/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Empty1_0.yaml b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Empty1_0.yaml new file mode 100644 index 000000000..d2546754c --- /dev/null +++ b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Empty1_0.yaml @@ -0,0 +1,5 @@ +name: TestEvent0 +version: 0.0.1 +nameSpace: org.onap.policy.apex.plugins.event.protocol.yaml +source: '' +target: ''
\ No newline at end of file diff --git a/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Structure0_0.yaml b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Structure0_0.yaml new file mode 100644 index 000000000..fa98c2d8e --- /dev/null +++ b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Structure0_0.yaml @@ -0,0 +1,9 @@ +name: TestEvent1 +version: 0.0.1 +nameSpace: org.onap.policy.apex.plugins.event.protocol.yaml +source: '' +target: '' +yaml_field: +- Mark McGwire +- Sammy Sosa +- Ken Griffey diff --git a/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Structure0_1.yaml b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Structure0_1.yaml new file mode 100644 index 000000000..b8be6e580 --- /dev/null +++ b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Structure0_1.yaml @@ -0,0 +1,8 @@ +name: TestEvent1 +version: 0.0.1 +nameSpace: org.onap.policy.apex.plugins.event.protocol.yaml +source: '' +target: '' +yaml_field: +- Chicago Cubs +- St Louis Cardinals
\ No newline at end of file diff --git a/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Structure1_0.yaml b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Structure1_0.yaml new file mode 100644 index 000000000..e81ba58b4 --- /dev/null +++ b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Structure1_0.yaml @@ -0,0 +1,8 @@ +name: TestEvent7 +version: 0.0.1 +nameSpace: org.onap.policy.apex.plugins.event.protocol.yaml +source: '' +target: '' +action: strike (miss) +player: Sammy Sosa +time: 72200
\ No newline at end of file diff --git a/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Structure1_1.yaml b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Structure1_1.yaml new file mode 100644 index 000000000..4e0537e62 --- /dev/null +++ b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Structure1_1.yaml @@ -0,0 +1,8 @@ +name: TestEvent7 +version: 0.0.1 +nameSpace: org.onap.policy.apex.plugins.event.protocol.yaml +source: '' +target: '' +action: grand slam +player: Sammy Sosa +time: 72227
\ No newline at end of file diff --git a/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Structure2_0.yaml b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Structure2_0.yaml new file mode 100644 index 000000000..44b797549 --- /dev/null +++ b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Structure2_0.yaml @@ -0,0 +1,11 @@ +name: TestEvent8 +version: 0.0.1 +nameSpace: org.onap.policy.apex.plugins.event.protocol.yaml +source: '' +target: '' +hr: +- Mark McGwire +- Sammy Sosa +rbi: +- Sammy Sosa +- Ken Griffey
\ No newline at end of file diff --git a/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Structure3_0.yaml b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Structure3_0.yaml new file mode 100644 index 000000000..44b797549 --- /dev/null +++ b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Structure3_0.yaml @@ -0,0 +1,11 @@ +name: TestEvent8 +version: 0.0.1 +nameSpace: org.onap.policy.apex.plugins.event.protocol.yaml +source: '' +target: '' +hr: +- Mark McGwire +- Sammy Sosa +rbi: +- Sammy Sosa +- Ken Griffey
\ No newline at end of file diff --git a/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Structure4_0.yaml b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Structure4_0.yaml new file mode 100644 index 000000000..084ab9941 --- /dev/null +++ b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Structure4_0.yaml @@ -0,0 +1,11 @@ +name: TestEvent9 +version: 0.0.1 +nameSpace: org.onap.policy.apex.plugins.event.protocol.yaml +source: '' +target: '' +AtlantaBraves: +- 2001-07-02T00:00:00Z +- 2001-08-12T00:00:00Z +- 2001-08-14T00:00:00Z +ChicagoCubs: +- 2001-07-23T00:00:00Z
\ No newline at end of file diff --git a/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Structure5_0.yaml b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Structure5_0.yaml new file mode 100644 index 000000000..6ba5143d9 --- /dev/null +++ b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/Structure5_0.yaml @@ -0,0 +1,12 @@ +name: TestEvent10 +version: 0.0.1 +nameSpace: org.onap.policy.apex.plugins.event.protocol.yaml +source: '' +target: '' +yaml_field: +- item: Super Hoop + quantity: 1 +- item: Basketball + quantity: 4 +- item: Big Shoes + quantity: 1 diff --git a/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/TOSCA0_0.yaml b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/TOSCA0_0.yaml new file mode 100644 index 000000000..910811f6e --- /dev/null +++ b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_out/TOSCA0_0.yaml @@ -0,0 +1,188 @@ +name: TestEvent11 +version: 0.0.1 +nameSpace: org.onap.policy.apex.plugins.event.protocol.yaml +source: '' +target: '' +description: the VNFD of MyVnf +node_types: + MyCompany.MyVnf.1_0.1_0: + derived_from: tosca.nodes.nfv.VNF + properties: + descriptor_id: + type: string + constraints: + - valid_values: + - b1bb0ce7-ebca-4fa7-95ed-4840d70a1177 + default: b1bb0ce7-ebca-4fa7-95ed-4840d70a1177 + required: true + provider: + type: string + constraints: + - valid_values: + - MyCompany + default: MyCompany + required: true + product_name: + type: string + constraints: + - valid_values: + - MyVnf + default: Myvnf + required: true + software_version: + type: string + constraints: + - valid_values: + - '1.0' + default: '1.0' + required: true + descriptor_version: + type: string + constraints: + - valid_values: + - '1.0' + default: '1.0' + required: true + flavour_id: + type: string + constraints: + - valid_values: + - simple + default: simple + required: true + flavour_description: + type: string + constraints: [] + default: '' + required: true + vnfm_info: + type: list + constraints: [] + default: '' + required: true + interfaces: + Nfv: + instantiate: + inputs: + parameter_1: + type: string + required: false + default: value_1 + constraints: [] + parameter_2: + type: string + required: false + default: value_2 + constraints: [] + terminate: + implementation: terminate.workbook.mistral.yaml +topology_template: + substitution_mappings: + node_type: MyCompany.MyVnf.1_0.1_0 + requirements: + - virtual_link: + - Cp_2 + - external_virtual_link + - virtual_link: + - Cp_4 + - external_virtual_link + node_templates: + VDU_compute_1: + type: tosca.nodes.nfv.Vdu.Compute + properties: + name: .. + description: .. + boot_order: .. + nfvi_constraints: .. + configurable_properties: + additional_vnfc_configurable_properties: {} + vdu_profile: + min_number_of_instances: 1 + max_number_of_instances: 4 + capabilities: + virtual_compute: + properties: + virtual_memory: + virtual_mem_size: 8096 MB + virtual_cpu: + cpu_architecture: x86 + num_virtual_cpu: 2 + virtual_cpu_clock: 1800 MHz + requirements: + - virtual_storage: Storage_1 + Storage_1: + type: tosca.nodes.nfv.Vdu.VirtualStorage + properties: + type_of_storage: .. + size_of_storage: 100MB + rdma_enabled: .. + Cp_1: + type: tosca.nodes.nfv.VduCp + properties: + layer_protocol: ipv4 + role: leaf + description: Internal connection point on an VL + requirements: + - virtual_binding: Vdu_1 + - virtual_link: internalVl_1 + internalVl_1: + type: tosca.nodes.nfv.VirtualLink + properties: + connectivity_type: + layer_protocol: ipv4 + flow_pattern: mesh + test_access: [] + description: .. + vl_profile: + qos: null + maxBitRateRequirements: null + minBitRateRequirements: null + Cp_2: + type: tosca.nodes.nfv.VduCp + properties: + layer_protocol: ipv4 + role: leaf + description: External connection point to access exteranlVl_1 + requirements: + - external_virtual_link: null + - virtual_binding: Vdu_1 + VDU_compute_2: + type: tosca.nodes.nfv.Vdu.Compute + properties: + name: .. + description: .. + boot_order: .. + nfvi_constraints: .. + configurable_properties: + additional_vnfc_configurable_properties: {} + vdu_profile: + min_number_of_instances: 2 + max_number_of_instances: 6 + capabilities: + virtual_compute: + properties: + virtual_memory: + virtual_mem_size: 8096 MB + virtual_cpu: + cpu_architecture: x86 + num_virtual_cpu: 4 + virtual_cpu_clock: 1800 MHz + Cp_3: + type: tosca.nodes.nfv.VduCp + properties: + layer_protocol: ipv4 + role: leaf + description: Internal connection point on an VL + requirements: + - virtual_binding: Vdu_2 + - virtual_link: internalVl_1 + Cp_4: + type: tosca.nodes.nfv.VduCpd + properties: + layer_protocol: ipv4 + role: leaf + description: External connection point to access exteranlVl_2 + requirements: + - external_virtual_link: null + - virtual_binding: Vdu_2 +tosca_definitions_version: tosca_simple_profile_yaml_1_1
\ No newline at end of file |