diff options
author | Brian Freeman <bf1936@att.com> | 2018-07-26 13:55:28 -0500 |
---|---|---|
committer | Brian Freeman <bf1936@att.com> | 2018-07-26 13:55:38 -0500 |
commit | 20f11e42fb38e94ea7639c8ee69356ca7292e8ab (patch) | |
tree | b7a432abbea228319ceff662d227eac8ab18fe3d /robot | |
parent | d65e2aac6f3108659db14c83736933c53065b9bc (diff) |
Create Robot Test of Closed Loop
Issue-ID: INT-584
Change-Id: I09dd8efd3e6c8c23fd9d90178c17b47d0f4553bb
Signed-off-by: Brian Freeman <bf1936@att.com>
Diffstat (limited to 'robot')
-rw-r--r-- | robot/resources/test_templates/closedloop_test_template.robot | 31 | ||||
-rw-r--r-- | robot/testsuites/closed-loop.robot | 4 |
2 files changed, 34 insertions, 1 deletions
diff --git a/robot/resources/test_templates/closedloop_test_template.robot b/robot/resources/test_templates/closedloop_test_template.robot index 0a0a8950..f83ce5b1 100644 --- a/robot/resources/test_templates/closedloop_test_template.robot +++ b/robot/resources/test_templates/closedloop_test_template.robot @@ -1,9 +1,11 @@ *** Settings *** Documentation Policy Closed Loop Test cases -Resource ../policy_interface.robot +Resource ../policy_interface.robot Resource ../stack_validation/policy_check_vfw.robot +Resource ../stack_validation/packet_generator_interface.robot Resource vnf_orchestration_test_template.robot + Library String Library HttpLibrary.HTTP LIbrary Process @@ -201,3 +203,30 @@ Orchestrate VNF vFW closedloop Setup Orchestrate VNF ${GLOBAL_AAI_CLOUD_OWNER} SharedNode OwnerType v1 CloudZone ${stack_name} ${service}= Orchestrate VNF ETE_CLP vLB vLB ${TENANT_NAME} [Return] ${stack_name} + +VFWCL High Test + [Documentation] Test Control Loop for High Traffic + [Arguments] ${pkg_host} + Enable Streams ${pkg_host} 10 + :FOR ${i} IN RANGE 8 + \ Sleep 15s + \ ${resp}= Get List Of Enabled Streams ${pkg_host} + \ ${stream_count}= Evaluate len(${resp['sample-plugin']['pg-streams']['pg-stream']}) + \ Log To Console Number of steam: ${stream_count} + \ Exit For Loop If '${stream_count}'=='5' + Should Be Equal As Integers ${stream_count} 5 + +VFWCL Low Test + [Documentation] Test Control Loop for Low Traffic + [Arguments] ${pkg_host} + Enable Streams ${pkg_host} 1 + Get List Of Enabled Streams ${pkg_host} + :FOR ${i} IN RANGE 8 + \ Sleep 15s + \ ${resp}= Get List Of Enabled Streams ${pkg_host} + \ ${stream_count}= Evaluate len(${resp['sample-plugin']['pg-streams']['pg-stream']}) + \ Log To Console Number of steam: ${stream_count} + \ Exit For Loop If '${stream_count}'=='5' + Should Be Equal As Integers ${stream_count} 5 + + diff --git a/robot/testsuites/closed-loop.robot b/robot/testsuites/closed-loop.robot index 8f580da8..7e193010 100644 --- a/robot/testsuites/closed-loop.robot +++ b/robot/testsuites/closed-loop.robot @@ -13,3 +13,7 @@ VFW Closed Loop Test VDNS Closed Loop Test [TAGS] ete closedloop VDNS Policy +VFWCL Closed Loop Test + [TAGS] vfwclosedloop + VFWCL High Test ${pkg_host} + VFWCL Low Test ${pkg_host} |