Explicitly use OperatingSystem Library 10/57110/3
authorJamo Luhrsen <jluhrsen@redhat.com>
Mon, 15 May 2017 22:58:35 +0000 (15:58 -0700)
committerLuis Gomez <ecelgp@gmail.com>
Wed, 17 May 2017 17:41:56 +0000 (17:41 +0000)
Change-Id: I282b23c655403869db467feddd576d6d28f16a81
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
csit/libraries/Utils.robot
csit/suites/openstack/tempest/tempest.robot

index 96c76967f7c6ac88eab9eb8bc286adb325178a8b..bd4ecaf64393bd63b85d9fbab5bd5445485a1747 100644 (file)
@@ -7,7 +7,7 @@ Library           DateTime
 Library           Process
 Library           Collections
 Library           RequestsLibrary
-Library           OperatingSystem    WITH NAME    os
+Library           OperatingSystem
 Library           ${CURDIR}/UtilLibrary.py
 Resource          ${CURDIR}/SSHKeywords.robot
 Resource          ${CURDIR}/TemplatedRequests.robot
@@ -494,6 +494,6 @@ Json Parse From String
 Json Parse From File
     [Arguments]    ${json_file}
     [Documentation]    Parse given file content into json (dictionary)
-    ${json_plain_string}    os.Get file    ${json_file}
+    ${json_plain_string}    Get file    ${json_file}
     ${json_data}    Json Parse From String    ${json_plain_string}
     [Return]    ${json_data}
index e6d0e7f547b165cafd2990363c9fb293214e5bd3..6e9f967697319989e21cce82ef4649ed7056db57 100644 (file)
@@ -6,6 +6,7 @@ Suite Teardown    Clean Up After Running Tempest
 Test Setup        SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
 Test Teardown     Run Keywords    Get Test Teardown Debugs
 Test Template     DevstackUtils.Run Tempest Tests
+Library           OperatingSystem
 Library           SSHLibrary
 Resource          ../../../libraries/DevstackUtils.robot
 Resource          ../../../libraries/OpenStackOperations.robot
@@ -129,8 +130,8 @@ Create Blacklist File
     [Documentation]    For each exclusion regex in the required @{${OPENSTACK_BRANCH}_exclusion_regexes} list a new
     ...    line will be created in the required ${blacklist_file} location. This file is pushed to the OS_CONTROL_NODE
     ...    which is assumed to be the tempest executor.
-    Create File    ${blacklist_file}
+    OperatingSystem.Create File    ${blacklist_file}
     : FOR    ${exclusion}    IN    @{${OPENSTACK_BRANCH}_exclusion_regexes}
-    \    Append To File    ${blacklist_file}    ${exclusion}\n
+    \    OperatingSystem.Append To File    ${blacklist_file}    ${exclusion}\n
     Log File    ${blacklist_file}
     SSHKeywords.Copy File To Remote System    ${OS_CONTROL_NODE_IP}    ${blacklist_file}    ${blacklist_file}