diff options
author | Taseer Ahmed <taseer94@gmail.com> | 2017-08-24 20:07:16 +0500 |
---|---|---|
committer | Taseer Ahmed <taseer94@gmail.com> | 2017-08-28 19:14:56 +0500 |
commit | fa5e8b4d5a0f3fda560c6667e944bfb989c73fb4 (patch) | |
tree | 0bec5b591170a81063792d94d85715df90b596f7 | |
parent | 0339379381aca3e0234125945c5dabbe895b5039 (diff) |
Update SFC testcases according to new Tacker API
- Create VNFFG Descriptors for testcases
JIRA: SFC-102
Change-Id: Ib51364d98c58942fec1f54b1f149bb0e8ffedc43
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
-rw-r--r-- | sfc/tests/functest/vnffgd-templates/test-vnffgd.yaml | 42 | ||||
-rw-r--r-- | sfc/tests/functest/vnffgd-templates/test2-vnffgd1.yaml | 42 | ||||
-rw-r--r-- | sfc/tests/functest/vnffgd-templates/test2-vnffgd2.yaml | 42 |
3 files changed, 126 insertions, 0 deletions
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 |