Set test_name for suite or test 10/75310/2
authorSam Hague <shague@redhat.com>
Sun, 19 Aug 2018 14:20:12 +0000 (10:20 -0400)
committerSam Hague <shague@redhat.com>
Sun, 19 Aug 2018 14:21:55 +0000 (10:21 -0400)
Change-Id: I1b52f4f7fbb955db648a6b8b96436384d7b908b3
Signed-off-by: Sam Hague <shague@redhat.com>
csit/libraries/Genius.robot
csit/libraries/ODLTools.robot
csit/libraries/OpenStackOperations.robot

index a81e7fbe88aec32edb4ebb31c31c6e1a242efa9b..2483fcc3b80ef7a90189f512d812524c2443ac3b 100644 (file)
@@ -166,7 +166,7 @@ Genius Test Teardown
     OVSDB.Get DumpFlows And Ovsconfig    ${conn_id_2}    BR2
     BuiltIn.Run Keyword And Ignore Error    DataModels.Get Model Dump    ${ODL_SYSTEM_IP}    ${data_models}
     KarafKeywords.Fail If Exceptions Found During Test    ${test_name}    fail=${fail}
-    ODLTools.Get All
+    ODLTools.Get All    test_name=${test_name}
 
 Genius Suite Debugs
     [Arguments]    ${data_models}
index 73521ca2b790d8bd9a1c1840fe5c32205d0ba306..04fdf7240305de5a7109dda3d6b742ec7fa3f34e 100644 (file)
@@ -22,7 +22,7 @@ Get EOS
 
 Get Cluster Info
     [Arguments]    ${port}=${RESTCONFPORT}
-    [Documentation]    Get ODL Cluster related information like transaction counts, commit rates etc
+    [Documentation]    Get ODL Cluster related information like transaction counts, commit rates, etc.
     : FOR    ${i}    IN RANGE    ${NUM_ODL_SYSTEM}
     \    ${cmd} =    BuiltIn.Set Variable    odltools show cluster-info -i ${ODL_SYSTEM_${i+1}_IP} -t ${port} -u ${ODL_RESTCONF_USER} -w ${ODL_RESTCONF_PASSWORD}
     \    ${output} =    OperatingSystem.Run    ${cmd}
@@ -30,7 +30,7 @@ Get Cluster Info
 
 Analyze Tunnels
     [Arguments]    ${node_ip}=${TOOLS_SYSTEM_IP}    ${port}=${RESTCONFPORT}    ${test_name}=${SUITE_NAME}.${TEST_NAME}
-    [Documentation]    Analyze Tunnel Mesh creation for any errorsand log results
+    [Documentation]    Analyze Tunnel Mesh creation for any errors and log results
     ${cmd} =    BuiltIn.Set Variable    odltools analyze tunnels -i ${node_ip} -t ${port} -u ${ODL_RESTCONF_USER} -w ${ODL_RESTCONF_PASSWORD} --path /tmp/${test_name}
     ${rc}    ${output} =    OperatingSystem.Run And Return Rc And Output    ${cmd}
     BuiltIn.Log    rc: ${rc}, output: ${output}
@@ -38,8 +38,8 @@ Analyze Tunnels
     [Return]    ${output}
 
 Get All
-    [Arguments]    ${node_ip}=${TOOLS_SYSTEM_IP}    ${port}=${RESTCONFPORT}
+    [Arguments]    ${node_ip}=${TOOLS_SYSTEM_IP}    ${port}=${RESTCONFPORT}    ${test_name}=${SUITE_NAME}.${TEST_NAME}
     [Documentation]    Get all results provided by ODLTools
     ODLTools.Get Cluster Info
-    BuiltIn.run Keyword And Ignore Error    ODLTools.Get EOS    ${HA_PROXY_IP}
-    BuiltIn.run Keyword And Ignore Error    ODLTools.Analyze Tunnels    ${HA_PROXY_IP}
+    BuiltIn.run Keyword And Ignore Error    ODLTools.Get EOS    ${HA_PROXY_IP}    test_name=${test_name}
+    BuiltIn.run Keyword And Ignore Error    ODLTools.Analyze Tunnels    ${HA_PROXY_IP}    test_name=${test_name}
index 6f8cf1fdcb66e84add3154f79ca2118de530e2a9..b43ee7aeaeb3f990f376a6525a7f9cc837defe9c 100644 (file)
@@ -551,7 +551,7 @@ Get OvsDebugInfo
 
 Get Test Teardown Debugs
     [Arguments]    ${test_name}=${SUITE_NAME}.${TEST_NAME}    ${fail}=${FAIL_ON_EXCEPTIONS}
-    ODLTools.Get All
+    ODLTools.Get All    test_name=${test_name}
     OpenStackOperations.Get OvsDebugInfo
     BuiltIn.Run Keyword And Ignore Error    DataModels.Get Model Dump    ${HA_PROXY_IP}    ${netvirt_data_models}
     KarafKeywords.Fail If Exceptions Found During Test    ${test_name}    fail=${fail}