Change http to https in robot test 45/78345/1
authorChenfei Gao <cgao@research.att.com>
Tue, 12 Feb 2019 20:52:37 +0000 (15:52 -0500)
committerChenfei Gao <cgao@research.att.com>
Tue, 12 Feb 2019 20:52:49 +0000 (15:52 -0500)
Changed http to https in robot test since https is enabled for policy-api rest service by default.

Issue-ID: POLICY-1270
Change-Id: Id108c956f2265db0e90b97b7e08371ee0df483c4
Signed-off-by: Chenfei Gao <cgao@research.att.com>
plans/policy/api/setup.sh
tests/policy/api/api-test.robot

index dcfcb9e..5ba95e9 100644 (file)
@@ -28,4 +28,4 @@ for i in {1..10}; do
    sleep $i
 done
 
-ROBOT_VARIABLES="-v POLICY_API_IP:${POLICY_API_IP}"
\ No newline at end of file
+ROBOT_VARIABLES="-v POLICY_API_IP:${POLICY_API_IP}"
index 3753b3d..7ea2473 100644 (file)
@@ -8,8 +8,8 @@ Library     json
 Healthcheck
      [Documentation]    Runs Policy Api Health check
      ${auth}=    Create List    healthcheck    zb!XztG34 
-     Log    Creating session http://${POLICY_API_IP}:6969
-     ${session}=    Create Session      policy  http://${POLICY_API_IP}:6969   auth=${auth}
+     Log    Creating session https://${POLICY_API_IP}:6969
+     ${session}=    Create Session      policy  https://${POLICY_API_IP}:6969   auth=${auth}
      ${headers}=  Create Dictionary     Accept=application/json    Content-Type=application/json
      ${resp}=   Get Request     policy  /healthcheck     headers=${headers}
      Log    Received response from policy ${resp.text}
@@ -19,10 +19,10 @@ Healthcheck
 Statistics
      [Documentation]    Runs Policy Api Statistics
      ${auth}=    Create List    healthcheck    zb!XztG34 
-     Log    Creating session http://${POLICY_API_IP}:6969
-     ${session}=    Create Session      policy  http://${POLICY_API_IP}:6969   auth=${auth}
+     Log    Creating session https://${POLICY_API_IP}:6969
+     ${session}=    Create Session      policy  https://${POLICY_API_IP}:6969   auth=${auth}
      ${headers}=  Create Dictionary     Accept=application/json    Content-Type=application/json
      ${resp}=   Get Request     policy  /statistics     headers=${headers}
      Log    Received response from policy ${resp.text}
      Should Be Equal As Strings    ${resp.status_code}     200
-     Should Be Equal As Strings    ${resp.json()['code']}  200
\ No newline at end of file
+     Should Be Equal As Strings    ${resp.json()['code']}  200