diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2018-03-22 13:25:49 -0700 |
---|---|---|
committer | Gary Wu <gary.i.wu@huawei.com> | 2018-03-26 13:13:32 -0700 |
commit | 25bce945a15c340c20e776623c24131723c5987b (patch) | |
tree | 67994a9187e1556a96be2b5598e547bd8f949821 /robot/resources/policy_interface.robot | |
parent | 89dfca0b86f7c3d72b838fd1c3eaa7ecf2770ba4 (diff) |
Fix vFW Closed Loop robot test case
Issued addressed by this change:
* Send the invariantUUID of VPKTG to Policy instead of VFW
* Extraneous single quote characters in the policy yaml
* Policy update wouldn’t “stick” until I added in the delays
in between the various Policy API calls
* Had to ignore the VID teardown errors; not sure if this is
necessary to pass the closed loop test
Change-Id: Ie504736484df78c46f564ee21bbd0c22d494af1f
Issue-ID: INT-406
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'robot/resources/policy_interface.robot')
-rw-r--r-- | robot/resources/policy_interface.robot | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/robot/resources/policy_interface.robot b/robot/resources/policy_interface.robot index 1918b48d..7ac3f760 100644 --- a/robot/resources/policy_interface.robot +++ b/robot/resources/policy_interface.robot @@ -82,9 +82,13 @@ Run Policy Get Configs Request Update vVFWCL Policy [Arguments] ${resource_id} Delete vFWCL Policy + Sleep 20s Create vFWCL Policy ${resource_id} + Sleep 5s Push vFWCL Policy + Sleep 20s Reboot Drools + Sleep 20s Validate the vFWCL Policy Delete vFWCL Policy @@ -100,7 +104,8 @@ Create vFWCL Policy Should Be Equal As Strings ${resp.status_code} 200 Push vFWCL Policy - ${data}= OperatingSystem.Get File ${POLICY_TEMPLATES}/FirewallPolicy_push.template + ${dict}= Create Dictionary + ${data}= Fill JSON Template File ${POLICY_TEMPLATES}/FirewallPolicy_push.template ${dict} ${resp}= Run Policy Put Request /pdp/api/pushPolicy ${data} Should Be Equal As Strings ${resp.status_code} 200 |