aboutsummaryrefslogtreecommitdiffstats
path: root/robot/resources/policy_interface.robot
diff options
context:
space:
mode:
authorDR695H <dr695h@att.com>2019-07-15 13:32:20 -0400
committerDR695H <dr695h@att.com>2019-07-15 15:32:44 -0400
commit97fec22483d9410037714505b954ff80a0d15a0c (patch)
tree9b7b2662b5997be787a55597b5f14092a298bec6 /robot/resources/policy_interface.robot
parent3148028e8f2e1a9cbd85d11002d3a78bfc620ba8 (diff)
use the public key directly
using it from the property file rather than a file allows it to be set by someon with no code change in robot Issue-ID: TEST-167 Change-Id: If081282af993d5c55bf5d2a4eff9878cb0bb463f Signed-off-by: DR695H <dr695h@att.com>
Diffstat (limited to 'robot/resources/policy_interface.robot')
-rw-r--r--robot/resources/policy_interface.robot31
1 files changed, 0 insertions, 31 deletions
diff --git a/robot/resources/policy_interface.robot b/robot/resources/policy_interface.robot
index 06d9e0f8..65698a1a 100644
--- a/robot/resources/policy_interface.robot
+++ b/robot/resources/policy_interface.robot
@@ -138,22 +138,6 @@ Run Policy Get Configs Request
Log Received response from policy ${resp.text}
[Return] ${resp}
-Update vVFWCL Policy Old
- [Arguments] ${resource_id}
- Run Keyword and Ignore Error Delete vFWCL Policy
- Sleep 20s
- Log Create vFWCL Policy
- Create vFWCL Policy ${resource_id}
- Sleep 5s
- Log Push vFWCL Policy
- Push vFWCL Policy
- Sleep 20s
- Log Reboot Drools
- Reboot Drools
- Sleep 20s
- Log Validate vFWCL Policy
- Validate the vFWCL Policy Old
-
Update vVFWCL Policy
[Arguments] ${resource_id}
Log Create vFWCL Monitoring Policy
@@ -191,21 +175,6 @@ Push vFWCL Policy
${resp}= Run Policy Put Request /pdp/api/pushPolicy ${data}
Should Be Equal As Strings ${resp.status_code} 200
-Reboot Drools
- ${stop}= Catenate docker exec -t -u policy drools bash -c "source /opt/app/policy/etc/profile.d/env.sh; policy stop"
- ${start}= Catenate docker exec -t -u policy drools bash -c "source /opt/app/policy/etc/profile.d/env.sh; policy start"
- Wait Until Keyword Succeeds 120 5 sec Open Connection And Log In ${GLOBAL_INJECTED_POLICY_IP_ADDR} root ${GLOBAL_VM_PRIVATE_KEY}
- Write ${stop}
- ${status} ${stdout}= Run Keyword And Ignore Error SSHLibrary.Read Until Regexp has stopped
- Log ${status}: stdout=${stdout}
- ${ctrlc}= Evaluate '\x03'
- Run Keyword If '${status}' == 'FAIL' Write ${ctrlc}
- Sleep 5s
- Write ${start}
- ${stdout}= SSHLibrary.Read Until Regexp is running
- Log stdout=${stdout}
- Should Contain ${stdout} is running
-
Validate the vFWCL Policy Old
${resp}= Run Drools Get Request /policy/pdp/engine/controllers/amsterdam/drools
Should Be Equal As Strings ${resp.status_code} 200