From fa5e8b4d5a0f3fda560c6667e944bfb989c73fb4 Mon Sep 17 00:00:00 2001 From: Taseer Ahmed Date: Thu, 24 Aug 2017 20:07:16 +0500 Subject: Update SFC testcases according to new Tacker API - Create VNFFG Descriptors for testcases JIRA: SFC-102 Change-Id: Ib51364d98c58942fec1f54b1f149bb0e8ffedc43 Signed-off-by: Taseer Ahmed --- .../functest/vnffgd-templates/test-vnffgd.yaml | 42 ++++++++++++++++++++++ .../functest/vnffgd-templates/test2-vnffgd1.yaml | 42 ++++++++++++++++++++++ .../functest/vnffgd-templates/test2-vnffgd2.yaml | 42 ++++++++++++++++++++++ 3 files changed, 126 insertions(+) create mode 100644 sfc/tests/functest/vnffgd-templates/test-vnffgd.yaml create mode 100644 sfc/tests/functest/vnffgd-templates/test2-vnffgd1.yaml create mode 100644 sfc/tests/functest/vnffgd-templates/test2-vnffgd2.yaml diff --git a/sfc/tests/functest/vnffgd-templates/test-vnffgd.yaml b/sfc/tests/functest/vnffgd-templates/test-vnffgd.yaml new file mode 100644 index 00000000..43cded97 --- /dev/null +++ b/sfc/tests/functest/vnffgd-templates/test-vnffgd.yaml @@ -0,0 +1,42 @@ +tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0 +description: test-case1 + +topology_template: + description: topology-template-test1 + inputs: + net_src_id: + type: string + ip_dst: + type: string + + node_templates: + Forwarding_path1: + type: tosca.nodes.nfv.FP.Tacker + description: creates path + properties: + id: 1 + policy: + type: ACL + criteria: + - network_src_port_id: { get_input: net_src_id } + - destination_port_range: 80-80 + - ip_proto: 6 + - ip_dst_prefix: { get_input: ip_dst } + path: + - forwarder: VNFD1 + capability: CP1 + - forwarder: VNFD2 + capability: CP1 + + groups: + VNFFG1: + type: tosca.groups.nfv.VNFFG + description: creates chain + properties: + vendor: tacker + version: 1.0 + number_of_endpoints: 2 + dependent_virtual_link: [VL1,VL1] + connection_point: [CP1,CP1] + constituent_vnfs: [VNFD1,VNFD2] + members: [Forwarding_path1] \ No newline at end of file diff --git a/sfc/tests/functest/vnffgd-templates/test2-vnffgd1.yaml b/sfc/tests/functest/vnffgd-templates/test2-vnffgd1.yaml new file mode 100644 index 00000000..ba2d8ebf --- /dev/null +++ b/sfc/tests/functest/vnffgd-templates/test2-vnffgd1.yaml @@ -0,0 +1,42 @@ +tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0 +description: test-case2: HTTP Test + +topology_template: + description: topology-template-test2 + inputs: + net_src_id: + type: string + ip_dst: + type: string + + node_templates: + Forwarding_path1: + type: tosca.nodes.nfv.FP.Tacker + description: creates path + properties: + id: 1 + policy: + type: ACL + criteria: + - network_src_port_id: { get_input: net_src_id } + - destination_port_range: 80-80 + - ip_proto: 6 + - ip_dst_prefix: { get_input: ip_dst } + path: + - forwarder: VNFD1 + capability: CP1 + - forwarder: VNFD2 + capability: CP1 + + groups: + VNFFG1: + type: tosca.groups.nfv.VNFFG + description: creates chain + properties: + vendor: tacker + version: 1.0 + number_of_endpoints: 2 + dependent_virtual_link: [VL1,VL1] + connection_point: [CP1,CP1] + constituent_vnfs: [VNFD1,VNFD2] + members: [Forwarding_path1] \ No newline at end of file diff --git a/sfc/tests/functest/vnffgd-templates/test2-vnffgd2.yaml b/sfc/tests/functest/vnffgd-templates/test2-vnffgd2.yaml new file mode 100644 index 00000000..5d46d24b --- /dev/null +++ b/sfc/tests/functest/vnffgd-templates/test2-vnffgd2.yaml @@ -0,0 +1,42 @@ +tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0 +description: test-case2: SSH Test + +topology_template: + description: topology-template-test2 + inputs: + net_src_id: + type: string + ip_dst: + type: string + + node_templates: + Forwarding_path1: + type: tosca.nodes.nfv.FP.Tacker + description: creates path + properties: + id: 2 + policy: + type: ACL + criteria: + - network_src_port_id: { get_input: net_src_id } + - destination_port_range: 22-22 + - ip_proto: 6 + - ip_dst_prefix: { get_input: ip_dst } + path: + - forwarder: VNFD1 + capability: CP1 + - forwarder: VNFD2 + capability: CP1 + + groups: + VNFFG1: + type: tosca.groups.nfv.VNFFG + description: creates chain + properties: + vendor: tacker + version: 1.0 + number_of_endpoints: 2 + dependent_virtual_link: [VL1,VL1] + connection_point: [CP1,CP1] + constituent_vnfs: [VNFD1,VNFD2] + members: [Forwarding_path1] \ No newline at end of file -- cgit 1.2.3-korg