Change longevity job duration from 24h to 23h 66/59066/3
authorPeter Gubka <pgubka@cisco.com>
Fri, 16 Jun 2017 09:33:04 +0000 (11:33 +0200)
committerVratko Polák <vrpolak@cisco.com>
Tue, 20 Jun 2017 09:41:40 +0000 (09:41 +0000)
It is because releng contains a script which may kill VMs with a day
granularity.

Change-Id: Ice44f01246792f5e49318b8205499eb5979e1a79
Signed-off-by: Peter Gubka <pgubka@cisco.com>
csit/suites/bgpcep/bgpclustering/singlepeer_pc_shm_300kroutes_longevity.robot
csit/suites/controller/cluster_singleton/chasing_the_leader_longevity.robot
csit/suites/controller/cluster_singleton/partition_and_heal_longevity.robot
csit/suites/controller/dom_data_broker/explicit_leader_movement_longevity.robot
csit/suites/controller/dom_notification_broker/noloss_rate_longevity_1node.robot
csit/suites/controller/dom_rpc_broker/rpc_provider_partition_and_heal_longevity.robot
csit/suites/controller/dom_rpc_broker/rpc_provider_precedence_longevity.robot

index ede5835088da1c2c4eb882a384b5526d04bcba56..5c7d5da743515d0ddddd3255a9263ced30fe9947 100644 (file)
@@ -35,7 +35,8 @@ Resource          ${CURDIR}/PrefixcountKeywords.robot
 
 *** Variables ***
 ${COUNT}          300000
-${DURATION_24_HOURS_IN_SECONDS}    86400
+# TODO: change back to 24h when releng has more granular steps to kill VMs than days; now 23h=82800s
+${LONGEVITY_TEST_DURATION_IN_SECS}    82800
 
 *** Test Cases ***
 Configure_Prefixes_Longevity
@@ -50,7 +51,7 @@ Configure_Prefixes_Longevity
     BuiltIn.Set_Suite_Variable    ${config_session}    ${session}
     # TODO: Either define BGP_VARIABLES_FOLDER in this file, or create a Resource with the definition and wrapping keywords
     TemplatedRequests.Put_As_Json_Templated    ${BGP_VARIABLES_FOLDER}    mapping=${mapping}    session=${session}
-    WaitForFailure.Verify_Keyword_Does_Not_Fail_Within_Timeout    ${DURATION_24_HOURS_IN_SECONDS}    1s    Test_Scenario    ${rib_owner}
+    WaitForFailure.Verify_Keyword_Does_Not_Fail_Within_Timeout    ${LONGEVITY_TEST_DURATION_IN_SECS}    1s    Test_Scenario    ${rib_owner}
     TemplatedRequests.Delete_Templated    ${BGP_VARIABLES_FOLDER}    mapping=${mapping}    session=${session}
 
 *** Keywords ***
index e0bacd65d5d6537eeb9eb4d2904219e15b541f6b..498f932ce5f841ee70187ce264b70501a99c2f02 100644 (file)
@@ -20,7 +20,8 @@ Resource          ${CURDIR}/../../../libraries/CompareStream.robot
 Resource          ${CURDIR}/../../../libraries/SetupUtils.robot
 
 *** Variables ***
-${TEST_DURATION}    24h
+TODO: change back to 24h when jenkins has more granular steps to abort jobs than days; now 23h
+${TEST_DURATION}    23h
 ${ACCEPTED_PER_SEC_RATE}    100
 ${ACCEPTED_PER_SEC_RATE_CARBON}    5
 
index 8e82bb4aced10db9be3f51658c6cdb654db05254..5ac029245ad09c78614c6e49ac6adf6379b29d22 100644 (file)
@@ -26,7 +26,8 @@ Resource          ${CURDIR}/../../../libraries/SetupUtils.robot
 Resource          ${CURDIR}/../../../libraries/WaitForFailure.robot
 
 *** Variables ***
-${DURATION_24_HOURS_IN_SECONDS}    86400
+# TODO: change back to 24h when releng has more granular steps to kill VMs than days; now 23h=82800s
+${LONGEVITY_TEST_DURATION_IN_SECS}    82800
 ${STABILITY_TIMEOUT_ISOLATED}    120s
 ${STABILITY_TIMEOUT_REJOINED}    60s
 @{STATUS_ISOLATED}    ${501}
@@ -35,7 +36,7 @@ ${STABILITY_TIMEOUT_REJOINED}    60s
 CS_Pertition_And_Heal
     [Documentation]    24h lasting suite for isolating the cluster singleton leader repeatedly.
     CsCommon.Register_Singleton_Constant_On_Nodes    ${cs_all_indices}
-    WaitForFailure.Verify_Keyword_Does_Not_Fail_Within_Timeout    ${DURATION_24_HOURS_IN_SECONDS}    3s    Test_Scenario
+    WaitForFailure.Verify_Keyword_Does_Not_Fail_Within_Timeout    ${LONGEVITY_TEST_DURATION_IN_SECS}    3s    Test_Scenario
     CsCommon.Unregister_Singleton_Constant_On_Nodes    ${cs_all_indices}
 
 *** Keywords ***
index dfb1822baf93058a28fcf904432bbc6721703a5f..1584307ca66ab824a553e94156828ade5475c722 100644 (file)
@@ -22,13 +22,14 @@ Resource          ${CURDIR}/../../../libraries/KarafKeywords.robot
 Resource          ${CURDIR}/../../../libraries/SetupUtils.robot
 
 *** Variables ***
-${DURATION_24_HOURS_IN_SECONDS}    86400
+# TODO: change back to 24h when releng has more granular steps to kill VMs than days; now 23h=82800s
+${LONGEVITY_TEST_DURATION_IN_SECS}    82800
 @{MOVEMENT_DIRECTION_LIST}    remote    local    remote
 
 *** Test Cases ***
 Explicit_Leader_Movement_Test
     [Documentation]    Leader move for 24 hours from one node to another
-    WaitForFailure.Verify_Keyword_Does_Not_Fail_Within_Timeout    ${DURATION_24_HOURS_IN_SECONDS}    5s    Test_Scenario
+    WaitForFailure.Verify_Keyword_Does_Not_Fail_Within_Timeout    ${LONGEVITY_TEST_DURATION_IN_SECS}    5s    Test_Scenario
 
 *** Keywords ***
 Test_Scenario
index 8fd866dac485cdcb2c1f0e5340f0b5a60ad71a66..a025231354595eb1ff0a941a557dbe26160e4985 100644 (file)
@@ -22,9 +22,10 @@ Resource          ${CURDIR}/../../../libraries/controller/DnbCommons.robot
 Resource          ${CURDIR}/../../../libraries/SetupUtils.robot
 
 *** Variables ***
-${DURATION_24_HOURS_IN_SECONDS}    86400
+# TODO: change back to 24h when releng has more granular steps to kill VMs than days; now 23h=82800s
+${LONGEVITY_TEST_DURATION_IN_SECS}    82800
 ${NOTIFICATION_RATE}    ${60000}
 
 *** Test Cases ***
 Notifications_longevity
-    ${NOTIFICATION_RATE}    ${DURATION_24_HOURS_IN_SECONDS}
+    ${NOTIFICATION_RATE}    ${LONGEVITY_TEST_DURATION_IN_SECS}
index 2898d9e147cc07df5d91a515ed22d632576e19ad..e9424b460a7667feab45cf99c452817ae332d927 100644 (file)
@@ -24,13 +24,14 @@ Resource          ${CURDIR}/../../../libraries/WaitForFailure.robot
 @{INSTALLED_RPC_MEMEBER_IDX_LIST}    ${1}    ${2}
 # TODO: Consider unregistering one at random for each iteration, as in the precedence longevity suite.
 ${TESTED_MEMBER_WITHOUT_RPC_IDX}    ${3}
-${DURATION_24_HOURS_IN_SECONDS}    86400
+# TODO: change back to 24h when releng has more granular steps to kill VMs than days; now 23h=82800s
+${LONGEVITY_TEST_DURATION_IN_SECS}    82800
 
 *** Test Cases ***
 Rpc_Provider_Precedence_Longevity
     [Documentation]    Test register rpc on two of three nodes and repeat the tested scenario for 24h.
     DrbCommons.Register_Rpc_On_Nodes    ${INSTALLED_RPC_MEMEBER_IDX_LIST}
-    WaitForFailure.Verify_Keyword_Does_Not_Fail_Within_Timeout    ${DURATION_24_HOURS_IN_SECONDS}    1s    Test_Scenario
+    WaitForFailure.Verify_Keyword_Does_Not_Fail_Within_Timeout    ${LONGEVITY_TEST_DURATION_IN_SECS}    1s    Test_Scenario
     DrbCommons.Unregister_Rpc_On_Nodes    ${INSTALLED_RPC_MEMEBER_IDX_LIST}
 
 *** Keywords ***
index 03b2cab40e4b81d76dd91c0d892e72130b41af5d..def4f14e77281c948167d433a747d483c912bc57 100644 (file)
@@ -21,13 +21,14 @@ Resource          ${CURDIR}/../../../libraries/SetupUtils.robot
 Resource          ${CURDIR}/../../../libraries/WaitForFailure.robot
 
 *** Variables ***
-${DURATION_24_HOURS_IN_SECONDS}    86400
+# TODO: change back to 24h when releng has more granular steps to kill VMs than days; now 23h=82800s
+${LONGEVITY_TEST_DURATION_IN_SECS}    82800
 
 *** Test Cases ***
 Rpc_Provider_Precedence_Longevity
     [Documentation]    Repeat the tested scenario for 24h.
     DrbCommons.Register_Rpc_On_Nodes    ${all_indices}
-    WaitForFailure.Verify_Keyword_Does_Not_Fail_Within_Timeout    ${DURATION_24_HOURS_IN_SECONDS}    1s    Test_Scenario
+    WaitForFailure.Verify_Keyword_Does_Not_Fail_Within_Timeout    ${LONGEVITY_TEST_DURATION_IN_SECS}    1s    Test_Scenario
     DrbCommons.Unregister_Rpc_On_Nodes    ${all_indices}
 
 *** Keywords ***