cleaning up some dirty code and warnings from RED 43/32743/1
authorDR695H <dr695h@att.com>
Fri, 23 Feb 2018 23:33:19 +0000 (18:33 -0500)
committerDR695H <dr695h@att.com>
Fri, 23 Feb 2018 23:33:50 +0000 (18:33 -0500)
Issue-ID: TEST-79

Change-Id: Iadfe17079c4cf1aa4483464c748d2ab31244df63
Signed-off-by: DR695H <dr695h@att.com>
robot/resources/aai/create_complex.robot
robot/resources/appc_interface.robot
robot/resources/json_templater.robot
robot/resources/mso_interface.robot
robot/resources/openstack/keystone_interface.robot
robot/resources/test_templates/vnf_orchestration_test_template.robot

index e1cc227..185d44d 100644 (file)
@@ -60,12 +60,7 @@ Get Complex
 
 Get Complexes
     [Documentation]   Return all complexes
-    [Arguments]
        ${resp}=    Run A&AI Get Request     ${COMPLEX_INDEX_PATH}${ROOT_COMPLEXES_PATH}
     Should Be Equal As Strings         ${resp.status_code}     200
     Log    ${resp.json()}
-       [Return]  ${resp.json()}
-
-
-
-
+       [Return]  ${resp.json()}
\ No newline at end of file
index 520737d..5c3d863 100644 (file)
@@ -52,5 +52,5 @@ Create Mount Point In APPC
     ${template}=    OperatingSystem.Get File    ${APPC_MOUNT_XML}
     ${data}=    Template String    ${template}    ${dict}
     ${resp}=    Run APPC Put Request     ${APPC_INDEX PATH}${APPC_CREATE_MOUNTPOINT_PATH}${nodeid}     ${data}
-    Should Be True 200    <= ${resp.status_code} < 300
+    Should Be True     200    <= ${resp.status_code} < 300
     [Return]     ${resp}
index 4788fe5..6a5ca17 100644 (file)
@@ -18,11 +18,4 @@ Fill JSON Template File
     [Arguments]    ${json_file}    ${arguments}
     ${json}=    OperatingSystem.Get File    ${json_file}
     ${returned_json}=  Fill JSON Template    ${json}    ${arguments}
-    [Return]    ${returned_json}
-
-Encode String
-   [Documentation]    Encodes String
-   [Arguments]    ${json}
-   ${returned_string}=    string encoder    ${json}
-   log    ${returned_string}
-   [Return]    ${returned_string}
\ No newline at end of file
+    [Return]    ${returned_json}
\ No newline at end of file
index db776d4..49965c8 100644 (file)
@@ -66,15 +66,11 @@ Run MSO Post request
 Run MSO Delete request
     [Documentation]    Runs an MSO Delete request
     [Arguments]  ${data_path}  ${data}
-    sleep    2
     ${auth}=    Create List    ${GLOBAL_MSO_USERNAME}    ${GLOBAL_MSO_PASSWORD}
     Log    Creating session ${MSO_ENDPOINT}
     ${session}=    Create Session    mso    ${MSO_ENDPOINT}    auth=${auth}
     ${uuid}=    Generate UUID
     ${headers}=    Create Dictionary    Accept=application/json    Content-Type=application/json    X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid}    X-FromAppId=${GLOBAL_APPLICATION_ID}
-    log    ${data}
-    ${data1}    Encode String    ${data}
-    log    ${data1}
-    ${resp}=    Delete Request    mso    ${data_path}    ${data1}    headers=${headers}
+    ${resp}=    Delete Request    mso    ${data_path}    ${data}    headers=${headers}
     Log    Received response from mso ${resp.text}
     [Return]    ${resp}
index e51e3db..4749eb0 100644 (file)
@@ -58,7 +58,7 @@ Get Openstack Credentials
 
 Get Keystone Url And Path
     [Documentation]    Handle arbitrary keystone identiit url. Add v2.0 if not present.
-    ${pieces}=   URL Parse   ${GLOBAL_INJECTED_KEYSTONE}
+    ${pieces}=   Url Parse   ${GLOBAL_INJECTED_KEYSTONE}
     ${url}=      Catenate   ${pieces.scheme}://${pieces.netloc}
     ${version}=  Evaluate   ''
     ${version}=  Set Variable If   '${OPENSTACK_KEYSTONE_API_VERSION}' not in '${pieces.path}'   ${OPENSTACK_KEYSTONE_API_VERSION}   ${version}
index 807647d..38e3c5f 100644 (file)
@@ -22,6 +22,7 @@ Library         OpenstackLibrary
 Library            ExtendedSelenium2Library
 Library                UUID
 Library                Collections
+Library         JSONUtils