cleaning up some dirty code and warnings from RED

Issue-ID: TEST-79

Change-Id: Iadfe17079c4cf1aa4483464c748d2ab31244df63
Signed-off-by: DR695H <dr695h@att.com>
diff --git a/robot/resources/aai/create_complex.robot b/robot/resources/aai/create_complex.robot
index e1cc227..185d44d 100644
--- a/robot/resources/aai/create_complex.robot
+++ b/robot/resources/aai/create_complex.robot
@@ -60,12 +60,7 @@
 
 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
diff --git a/robot/resources/appc_interface.robot b/robot/resources/appc_interface.robot
index 520737d..5c3d863 100644
--- a/robot/resources/appc_interface.robot
+++ b/robot/resources/appc_interface.robot
@@ -52,5 +52,5 @@
     ${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}
diff --git a/robot/resources/json_templater.robot b/robot/resources/json_templater.robot
index 4788fe5..6a5ca17 100644
--- a/robot/resources/json_templater.robot
+++ b/robot/resources/json_templater.robot
@@ -18,11 +18,4 @@
     [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
diff --git a/robot/resources/mso_interface.robot b/robot/resources/mso_interface.robot
index db776d4..49965c8 100644
--- a/robot/resources/mso_interface.robot
+++ b/robot/resources/mso_interface.robot
@@ -66,15 +66,11 @@
 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}
diff --git a/robot/resources/openstack/keystone_interface.robot b/robot/resources/openstack/keystone_interface.robot
index e51e3db..4749eb0 100644
--- a/robot/resources/openstack/keystone_interface.robot
+++ b/robot/resources/openstack/keystone_interface.robot
@@ -58,7 +58,7 @@
 
 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}
diff --git a/robot/resources/test_templates/vnf_orchestration_test_template.robot b/robot/resources/test_templates/vnf_orchestration_test_template.robot
index 807647d..38e3c5f 100644
--- a/robot/resources/test_templates/vnf_orchestration_test_template.robot
+++ b/robot/resources/test_templates/vnf_orchestration_test_template.robot
@@ -22,6 +22,7 @@
 Library 	    ExtendedSelenium2Library
 Library	        UUID
 Library	        Collections
+Library         JSONUtils