[ONOS-7985]: Refactor list of tests used in TestON Jenkins Pipelines

Change-Id: Ic3d67fd0b0b0eb4a74f9f0c198dc5a868c5afa95
diff --git a/TestON/JenkinsFile/dependencies/JenkinsCommonFuncs.groovy b/TestON/JenkinsFile/dependencies/JenkinsCommonFuncs.groovy
index 68d75e9..d64f12e 100644
--- a/TestON/JenkinsFile/dependencies/JenkinsCommonFuncs.groovy
+++ b/TestON/JenkinsFile/dependencies/JenkinsCommonFuncs.groovy
@@ -26,8 +26,10 @@
 
 generalFuncs = evaluate readTrusted( 'TestON/JenkinsFile/dependencies/GeneralFuncs.groovy' )
 fileRelated = evaluate readTrusted( 'TestON/JenkinsFile/dependencies/JenkinsPathAndFiles.groovy' )
+test_list = evaluate readTrusted( 'TestON/JenkinsFile/dependencies/JenkinsTestONTests.groovy' )
 
 fileRelated.init()
+test_list.init()
 
 def initializeTrend( machine ){
     // For initializing any trend graph jobs
@@ -495,22 +497,6 @@
     }
 }
 
-def makeTestList( list, commaNeeded ){
-    // make the list of the test in to a string.
-    // list : list of the test
-    // commaNeeded : if comma is needed for the string
-
-    return generalFuncs.getTestList( list ) + ( commaNeeded ? "," : "" )
-}
-
-def createStatsList( testCategory, list, semiNeeded ){
-    // make the list for stats
-    // testCategory : category of the test
-    // list : list of the test
-    // semiNeeded: if semi colon is needed
-
-    return testCategory + "-" + generalFuncs.getTestList( list ) + ( semiNeeded ? ";" : "" )
-}
 
 def generateOverallGraph( prop, testCategory, graph_saved_directory ){
     // generate the overall graph for the test
@@ -567,18 +553,24 @@
     done '''
 }
 
-def generateStatGraph( testMachineOn, onos_branch, AllTheTests, stat_graph_generator_file, pie_graph_generator_file,
+def generateStatGraph( testMachineOn, onos_branch, stat_graph_generator_file, pie_graph_generator_file,
                        graph_saved_directory ){
-    // Will generate the stats graph.
 
-    testListPart = createStatsList( "FUNC", AllTheTests[ "FUNC" ], true ) +
-                   createStatsList( "HA", AllTheTests[ "HA" ], true ) +
-                   createStatsList( "USECASE", AllTheTests[ "USECASE" ], false )
-    pieTestList = makeTestList( AllTheTests[ "FUNC" ], true ) +
-                  makeTestList( AllTheTests[ "HA" ], true ) +
-                  makeTestList( AllTheTests[ "USECASE" ], false )
+    // Will generate the stats graph.
+    FUNCtestsStr = test_list.getTestListAsString( test_list.getTestsFromCategory( "FUNC" ) )
+    HAtestsStr = test_list.getTestListAsString( test_list.getTestsFromCategory( "HA" ) )
+    USECASEtestsStr = test_list.getTestListAsString( test_list.getTestsFromCategory( "USECASE" ) )
+
+    testListParam = "FUNC-"     + FUNCtestsStr + ";" +
+                    "HA-"       + HAtestsStr   + ";" +
+                    "USECASE-"  + USECASEtestsStr
+
+    pieTestListParam = FUNCtestsStr + "," +
+                       HAtestsStr   + "," +
+                       USECASEtestsStr
+
     generateCategoryStatsGraph( testMachineOn, "false", "true", stat_graph_generator_file, pie_graph_generator_file,
-                                "ALL", onos_branch, testListPart, graph_saved_directory, pieTestList )
+                                "ALL", onos_branch, testListParam, graph_saved_directory, pieTestListParam )
 }
 
 def branchWithPrefix( branch ){
diff --git a/TestON/JenkinsFile/dependencies/JenkinsTestONTests.groovy b/TestON/JenkinsFile/dependencies/JenkinsTestONTests.groovy
index 0fcec01..e4690c3 100644
--- a/TestON/JenkinsFile/dependencies/JenkinsTestONTests.groovy
+++ b/TestON/JenkinsFile/dependencies/JenkinsTestONTests.groovy
@@ -1,6 +1,6 @@
 #!groovy
 
-// Copyright 2017 Open Networking Foundation (ONF)
+// Copyright 2019 Open Networking Foundation (ONF)
 //
 // Please refer questions to either the onos test mailing list at <onos-test@onosproject.org>,
 // the System Testing Plans and Results wiki page at <https://wiki.onosproject.org/x/voMg>,
@@ -19,589 +19,86 @@
 //     You should have received a copy of the GNU General Public License
 //     along with TestON.  If not, see <http://www.gnu.org/licenses/>.
 
-// This is the dependency Jenkins script.
-// This will provide the basic information for the tests for scheduling.
-// Any new test to be added should be added here.
+import groovy.json.*
 
+allTests = [:]
+schedules = [:]
 
-def getAllTheTests( wikiPrefix ){
-    // This contains the dictionary of the test and the category of them
-    // wikiPrefix : master, 2.1, 1.15 ...
+def init(){
+    def jsonSlurper = new JsonSlurper()
+    def tests_buffer = new BufferedReader( new InputStreamReader( new FileInputStream( "tests.json" ),"UTF-8" ) )
+    def schedules_buffer = new BufferedReader( new InputStreamReader( new FileInputStream( "schedule.json" ),"UTF-8" ) )
+    allTests = jsonSlurper.parse( tests_buffer )
+    schedules = jsonSlurper.parse( schedules_buffer )
+}
 
-    // category: it will be used to distinguish which category to be run on which days ( basic,extra_A, extra_B ... )
-    // day: it will be used to display the schedule of the test to be run to the slack. It is empty in the first place but will be
-    //     filled out every monday.
-    // wiki_link : link of the wiki page that will be used to publish to confluence later on. SCPF tests don't need one.
+def getAllTests(){
+    return allTests
+}
 
-    return [
-            "FUNC": [
-                    "FUNCipv6Intent": [
-                            "basic": true,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "FUNCipv6Intent",
-                            wiki_file: "FUNCipv6IntentWiki.txt" ],
-                    "FUNCoptical": [
-                            "basic": true,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "FUNCoptical",
-                            wiki_file: "FUNCopticalWiki.txt" ],
-                    "FUNCflow": [
-                            "basic": true,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "FUNCflow",
-                            wiki_file: "FUNCflowWiki.txt" ],
-                    "FUNCnetCfg": [
-                            "basic": true,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "FUNCnetCfg",
-                            wiki_file: "FUNCnetCfgWiki.txt" ],
-                    "FUNCovsdbtest": [
-                            "basic": true,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "FUNCovsdbtest",
-                            wiki_file: "FUNCovsdbtestWiki.txt" ],
-                    "FUNCnetconf": [
-                            "basic": true,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "FUNCnetconf",
-                            wiki_file: "FUNCnetconfWiki.txt" ],
-                    "FUNCgroup": [
-                            "basic": true,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "FUNCgroup",
-                            wiki_file: "FUNCgroupWiki.txt" ],
-                    "FUNCintent": [
-                            "basic": false,
-                            "extra_A": true,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "FUNCintent",
-                            wiki_file: "FUNCintentWiki.txt" ],
-                    "FUNCintentRest": [
-                            "basic": false,
-                            "extra_A": false,
-                            "extra_B": true,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "FUNCintentRest",
-                            wiki_file: "FUNCintentRestWiki.txt" ],
-                    "FUNCformCluster": [
-                            "basic": true,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "FUNCformCluster",
-                            wiki_file: "FUNCformClusterWiki.txt" ]
-            ],
-            "HA": [
-                    "HAsanity": [
-                            "basic": true,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "HA Sanity",
-                            wiki_file: "HAsanityWiki.txt" ],
-                    "HAclusterRestart": [
-                            "basic": true,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "HA Cluster Restart",
-                            wiki_file: "HAclusterRestartWiki.txt" ],
-                    "HAsingleInstanceRestart": [
-                            "basic": true,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "HA Single Instance Restart",
-                            wiki_file: "HAsingleInstanceRestartWiki.txt" ],
-                    "HAstopNodes": [
-                            "basic": false,
-                            "extra_A": true,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "HA Stop Nodes",
-                            wiki_file: "HAstopNodes.txt" ],
-                    "HAfullNetPartition": [
-                            "basic": false,
-                            "extra_A": true,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "HA Full Network Partition",
-                            wiki_file: "HAfullNetPartitionWiki.txt" ],
-                    "HAswapNodes": [
-                            "basic": false,
-                            "extra_A": false,
-                            "extra_B": true,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "HA Swap Nodes",
-                            wiki_file: "HAswapNodesWiki.txt" ],
-                    "HAscaling": [
-                            "basic": false,
-                            "extra_A": false,
-                            "extra_B": true,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "HA Scaling",
-                            wiki_file: "HAscalingWiki.txt" ],
-                    "HAkillNodes": [
-                            "basic": false,
-                            "extra_A": false,
-                            "extra_B": true,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "HA Kill Nodes",
-                            wiki_file: "HAkillNodes.txt" ],
-                    "HAbackupRecover": [
-                            "basic": false,
-                            "extra_A": false,
-                            "extra_B": true,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "HA Backup Recover",
-                            wiki_file: "HAbackupRecoverWiki.txt" ],
-                    "HAupgrade": [
-                            "basic": false,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "HA Upgrade",
-                            wiki_file: "HAupgradeWiki.txt" ],
-                    "HAupgradeRollback": [
-                            "basic": false,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "HA Upgrade Rollback",
-                            wiki_file: "HAupgradeRollbackWiki.txt" ]
-            ],
-            "SCPF": [
-                    "SCPFswitchLat": [
-                            "basic": true,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "extra_C": false,
-                            "extra_D": false,
-                            "new_Test": false,
-                            "day": "" ],
-                    "SCPFcbench": [
-                            "basic": true,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "extra_C": false,
-                            "extra_D": false,
-                            "new_Test": false,
-                            "day": " " ],
-                    "SCPFportLat": [
-                            "basic": true,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "extra_C": false,
-                            "extra_D": false,
-                            "new_Test": false,
-                            "day": " " ],
-                    "SCPFflowTp1g": [
-                            "basic": true,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "extra_C": false,
-                            "extra_D": false,
-                            "new_Test": false,
-                            "day": " " ],
-                    "SCPFintentEventTp": [
-                            "basic": true,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "extra_C": false,
-                            "extra_D": false,
-                            "new_Test": false,
-                            "day": " " ],
-                    "SCPFhostLat": [
-                            "basic": false,
-                            "extra_A": true,
-                            "extra_B": false,
-                            "extra_C": false,
-                            "extra_D": false,
-                            "new_Test": false,
-                            "day": " " ],
-                    "SCPFbatchFlowResp": [
-                            "basic": false,
-                            "extra_A": true,
-                            "extra_B": false,
-                            "extra_C": false,
-                            "extra_D": false,
-                            "new_Test": false,
-                            "day": " " ],
-                    "SCPFintentRerouteLat": [
-                            "basic": false,
-                            "extra_A": true,
-                            "extra_B": false,
-                            "extra_C": false,
-                            "extra_D": false,
-                            "new_Test": false,
-                            "day": " " ],
-                    "SCPFintentInstallWithdrawLat": [
-                            "basic": false,
-                            "extra_A": true,
-                            "extra_B": false,
-                            "extra_C": false,
-                            "extra_D": false,
-                            "new_Test": false,
-                            "day": " " ],
-                    "SCPFflowTp1gWithFlowObj": [
-                            "basic": false,
-                            "extra_A": false,
-                            "extra_B": true,
-                            "extra_C": false,
-                            "extra_D": false,
-                            "new_Test": false,
-                            "day": " " ],
-                    "SCPFintentEventTpWithFlowObj": [
-                            "basic": false,
-                            "extra_A": false,
-                            "extra_B": true,
-                            "extra_C": false,
-                            "extra_D": false,
-                            "new_Test": false,
-                            "day": " " ],
-                    "SCPFintentRerouteLatWithFlowObj": [
-                            "basic": false,
-                            "extra_A": false,
-                            "extra_B": true,
-                            "extra_C": false,
-                            "extra_D": false,
-                            "new_Test": false,
-                            "day": " " ],
-                    "SCPFscalingMaxIntentsWithFlowObj": [
-                            "basic": false,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "extra_C": false,
-                            "extra_D": false,
-                            "new_Test": false,
-                            "day": " " ],
-                    "SCPFintentInstallWithdrawLatWithFlowObj": [
-                            "basic": false,
-                            "extra_A": false,
-                            "extra_B": true,
-                            "extra_C": false,
-                            "extra_D": false,
-                            "new_Test": false,
-                            "day": " " ],
-                    "SCPFscaleTopo": [
-                            "basic": false,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "extra_C": true,
-                            "extra_D": false,
-                            "new_Test": false,
-                            "day": " " ],
-                    "SCPFscalingMaxIntents": [
-                            "basic": false,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "extra_C": false,
-                            "extra_D": false,
-                            "new_Test": false,
-                            "day": " " ],
-                    "SCPFmastershipFailoverLat": [
-                            "basic": false,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "extra_C": false,
-                            "extra_D": true,
-                            "new_Test": false,
-                            "day": " " ]
-            ],
-            "USECASE": [
-                    "FUNCvirNetNB": [
-                            "basic": true,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "FUNCvirNetNB",
-                            wiki_file: "FUNCvirNetNBWiki.txt" ],
-                    "FUNCbgpls": [
-                            "basic": true,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "FUNCbgpls",
-                            wiki_file: "FUNCbgplsWiki.txt" ],
-                    "VPLSBasic": [
-                            "basic": true,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "VPLSBasic",
-                            wiki_file: "VPLSBasicWiki.txt" ],
-                    "VPLSfailsafe": [
-                            "basic": true,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "VPLSfailsafe",
-                            wiki_file: "VPLSfailsafeWiki.txt" ],
-                    "USECASE_SdnipFunction": [
-                            "basic": true,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "SDNIP Function",
-                            wiki_file: "USECASE_SdnipFunctionWiki.txt" ],
-                    "USECASE_SdnipFunctionCluster": [
-                            "basic": true,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "SDNIP Function Cluster",
-                            wiki_file: "USECASE_SdnipFunctionClusterWiki.txt" ],
-                    "PLATdockertest": [
-                            "basic": false,
-                            "extra_A": true,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: "Docker Images sanity test",
-                            wiki_file: "PLATdockertestTableWiki.txt" ]
-            ],
-            "SR": [
-                    "SRBridging": [
-                            "basic": true,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "SR Bridging",
-                            wiki_file: "SRBridgingWiki.txt" ],
-                    "SRRouting": [
-                            "basic": true,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "SR Routing",
-                            wiki_file: "SRRoutingWiki.txt" ],
-                    "SRDhcprelay": [
-                            "basic": true,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "SR Dhcp Relay",
-                            wiki_file: "SRDhcprelayWiki.txt" ],
-                    "SRDynamicConf": [
-                            "basic": true,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "SR Dynamic Config",
-                            wiki_file: "SRDynamicConfWiki.txt" ],
-                    "SRMulticast": [
-                            "basic": true,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "SR Multi Cast",
-                            wiki_file: "SRMulticastWiki.txt" ],
-                    "SRSanity": [
-                            "basic": false,
-                            "extra_A": true,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "SR Sanity",
-                            wiki_file: "SRSanityWiki.txt" ],
-                    "SRSwitchFailure": [
-                            "basic": false,
-                            "extra_A": true,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "SR Switch Failure",
-                            wiki_file: "SRSwitchFailureWiki.txt" ],
-                    "SRLinkFailure": [
-                            "basic": false,
-                            "extra_A": true,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "SR Link Failure",
-                            wiki_file: "SRLinkFailureWiki.txt" ],
-                    "SROnosFailure": [
-                            "basic": false,
-                            "extra_A": true,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "SR Onos node Failure",
-                            wiki_file: "SROnosFailureWiki.txt" ],
-                    "SRClusterRestart": [
-                            "basic": false,
-                            "extra_A": false,
-                            "extra_B": true,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "SR Cluster Restart",
-                            wiki_file: "SRClusterRestartWiki.txt" ],
-                    "SRDynamic": [
-                            "basic": false,
-                            "extra_A": false,
-                            "extra_B": true,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "SR Dynamic",
-                            wiki_file: "SRDynamicWiki.txt" ],
-                    "SRHighAvailability": [
-                            "basic": false,
-                            "extra_A": false,
-                            "extra_B": true,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "SR High Availability",
-                            wiki_file: "SRHighAvailabilityWiki.txt" ]
-            ],
-            "SRHA": [
-                    "SRHAsanity": [
-                            "test": "HAsanity --params-file HAsanity.params.fabric",
-                            "basic": true,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "SR HA Sanity",
-                            wiki_file: "HAsanityWiki.txt" ],
-                    "SRHAclusterRestart": [
-                            "test": "HAclusterRestart --params-file HAclusterRestart.params.fabric",
-                            "basic": true,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "SR HA Cluster Restart",
-                            wiki_file: "HAclusterRestartWiki.txt" ],
-                    "SRHAsingleInstanceRestart": [
-                            "test": "HAsingleInstanceRestart --params-file HAsingleInstanceRestart.params.fabric",
-                            "basic": true,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "SR HA Single Instance Restart",
-                            wiki_file: "HAsingleInstanceRestartWiki.txt" ],
-                    "SRHAstopNodes": [
-                            "test": "HAstopNodes --params-file HAstopNodes.params.fabric",
-                            "basic": true,
-                            "extra_A": true,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "SR HA Stop Nodes",
-                            wiki_file: "HAstopNodes.txt" ],
-                    "SRHAfullNetPartition": [
-                            "test": "HAfullNetPartition --params-file HAfullNetPartition.params.fabric",
-                            "basic": false,
-                            "extra_A": true,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "SR HA Full Network Partition",
-                            wiki_file: "HAfullNetPartitionWiki.txt" ],
-                    "SRHAswapNodes": [
-                            "test": "HAswapNodes --params-file HAswapNodes.params.fabric",
-                            "basic": false,
-                            "extra_A": false,
-                            "extra_B": true,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "SR HA Swap Nodes",
-                            wiki_file: "HAswapNodesWiki.txt" ],
-                    "SRHAscaling": [
-                            "test": "HAscaling --params-file HAscaling.params.fabric",
-                            "basic": false,
-                            "extra_A": false,
-                            "extra_B": true,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "SR HA Scaling",
-                            wiki_file: "HAscalingWiki.txt" ],
-                    "SRHAkillNodes": [
-                            "test": "HAkillNodes --params-file HAkillNodes.params.fabric",
-                            "basic": true,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "SR HA Kill Nodes",
-                            wiki_file: "HAkillNodes.txt" ],
-                    "SRHAbackupRecover": [
-                            "test": "HAbackupRecover --params-file HAbackupRecover.params.fabric",
-                            "basic": true,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "SR HA Backup Recover",
-                            wiki_file: "HAbackupRecoverWiki.txt" ],
-                    "SRHAupgrade": [
-                            "test": "HAupgrade --params-file HAupgrade.params.fabric",
-                            "basic": false,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "SR HA Upgrade",
-                            wiki_file: "HAupgradeWiki.txt" ],
-                    "SRHAupgradeRollback": [
-                            "test": "HAupgradeRollback --params-file HAupgradeRollback.params.fabric",
-                            "basic": false,
-                            "extra_A": false,
-                            "extra_B": false,
-                            "new_Test": false,
-                            "day": "",
-                            wiki_link: wikiPrefix + "-" + "SR HA Upgrade Rollback",
-                            wiki_file: "HAupgradeRollbackWiki.txt" ]
-            ]
-    ]
+def getSchedules(){
+    return schedules
+}
+
+def getTestsFromCategory( category, tests=[:] ){
+    result = [:]
+    if ( tests == [:] ){
+        tests = allTests
+    }
+    for ( String key in tests.keySet() ){
+        if ( tests[ key ][ "category" ] == category ){
+            result.put( key, tests[ key ] )
+        }
+    }
+    return result
+}
+
+def getTestsFromDay( day, branch, tests=[:] ){
+    result = [:]
+    if ( tests == [:] ){
+        tests = allTests
+    }
+    validSchedules = []
+    for ( String key in schedules.keySet() ){
+        if ( schedules[ key ].contains( day ) ){
+            validSchedules += key
+        }
+    }
+    echo validSchedules.toString()
+    for ( String key in tests.keySet() ){
+        schedule = tests[ key ][ "schedule" ][ branch ]
+        if ( validSchedules.contains( schedule ) ){
+            result.put( key, tests[ key ] )
+        }
+    }
+    return result
+}
+
+def getTestsFromNodeLabel( nodeLabel, tests=[:] ){
+    if ( tests == [:] ){
+        tests = allTests
+    }
+    for ( String key in tests.keySet() ){
+        if ( tests[ key ][ "nodeLabel" ] == nodeLabel ){
+            result.put( key, tests[ key ] )
+        }
+    }
+}
+
+def getTestListAsString( tests ){
+    result = ""
+    for ( String key in tests.keySet() ){
+        result += test + ","
+    }
+    return result[ 0..-2 ]
+}
+
+def getTestSchedule( test ){
+    return allTests[ test ][ "schedule" ]
+}
+
+def convertScheduleKeyToDays( sch ){
+    return schedules[ sch ]
 }
 
 return this
diff --git a/TestON/JenkinsFile/dependencies/TriggerFuncs.groovy b/TestON/JenkinsFile/dependencies/TriggerFuncs.groovy
index effc766..c35a94e 100644
--- a/TestON/JenkinsFile/dependencies/TriggerFuncs.groovy
+++ b/TestON/JenkinsFile/dependencies/TriggerFuncs.groovy
@@ -23,6 +23,8 @@
 // This will provide the portion that will set up the environment of the machine
 //      and trigger the corresponding jobs.
 
+test_list = evaluate readTrusted( 'TestON/JenkinsFile/dependencies/JenkinsTestONTests.groovy' )
+test_list.init()
 
 def init( commonFuncs ){
     funcs = commonFuncs
@@ -37,17 +39,20 @@
     return str
 }
 
-def printDaysForTest( AllTheTests ){
+def printDaysForTest(){
     // Print the days for what test has.
+    AllTheTests = test_list.getAllTests()
 
     result = ""
     for ( String test in AllTheTests.keySet() ){
-        result += test + " : \n"
-        for ( String each in AllTheTests[ test ].keySet() ){
-            AllTheTests[ test ][ each ][ "day" ] = lastCommaRemover( AllTheTests[ test ][ each ][ "day" ] )
-            result += "    " + each + ":[" + AllTheTests[ test ][ each ][ "day" ] + "]\n"
+        result += test + ": ["
+        test_schedule = test_list.getTestSchedule( test )
+        for ( String sch in test_schedule.keySet() ){
+            for ( String day in convertScheduleKeyToDays( sch ) ){
+                result += day + " "
+            }
         }
-        result += "\n"
+        result += "]\n"
     }
     return result
 }
diff --git a/TestON/JenkinsFile/dependencies/schedule.json b/TestON/JenkinsFile/dependencies/schedule.json
new file mode 100644
index 0000000..a82daa2
--- /dev/null
+++ b/TestON/JenkinsFile/dependencies/schedule.json
@@ -0,0 +1,19 @@
+{
+    "everyday": [ "sun", "mon", "tue", "wed", "thu", "fri", "sat" ],
+    "weekdays": [ "mon", "tue", "wed", "thu", "fri" ],
+    "weekends": [ "sun", "sat" ],
+    "mon_wed_fri": [ "mon", "wed", "fri" ],
+    "tue_thu": [ "tue", "thu" ],
+    "wed_fri": [ "wed", "fri" ],
+    "mon_thu": [ "mon", "thu" ],
+    "sun": [ "sun" ],
+    "mon": [ "mon" ],
+    "tue": [ "tue" ],
+    "wed": [ "wed" ],
+    "thu": [ "thu" ],
+    "fri": [ "fri" ],
+    "sat": [ "sat" ],
+    "onos-1.x_schedule": [ "sat" ],
+    "onos-2.x_schedule": [ "sun" ],
+    "USECASE_master": [ "tue" ]
+}
diff --git a/TestON/JenkinsFile/dependencies/tests.json b/TestON/JenkinsFile/dependencies/tests.json
new file mode 100644
index 0000000..89927de
--- /dev/null
+++ b/TestON/JenkinsFile/dependencies/tests.json
@@ -0,0 +1,790 @@
+{
+    "FUNCflow": {
+        "wikiName": "FUNCflow",
+        "wikiFile": "FUNCflowWiki.txt",
+        "schedule": {
+            "master": "weekdays",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "FUNC",
+        "nodeLabel": "VM",
+        "supportedBranches": [ "all" ]
+    },
+    "FUNCintent": {
+        "wikiName": "FUNCintent",
+        "wikiFile": "FUNCintentWiki.txt",
+        "schedule": {
+            "master": "mon_wed_fri",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "FUNC",
+        "nodeLabel": "VM",
+        "supportedBranches": [ "all" ]
+    },
+    "FUNCintentRest": {
+        "wikiName": "FUNCintentRest",
+        "wikiFile": "FUNCintentRestWiki.txt",
+        "schedule": {
+            "master": "tue_thu",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "FUNC",
+        "nodeLabel": "VM",
+        "supportedBranches": [ "all" ]
+    },
+    "FUNCipv6Intent": {
+        "wikiName": "FUNCipv6Intent",
+        "wikiFile": "FUNCipv6IntentWiki.txt",
+        "schedule": {
+            "master": "weekdays",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "FUNC",
+        "nodeLabel": "VM",
+        "supportedBranches": [ "all" ]
+    },
+    "FUNCnetCfg": {
+        "wikiName": "FUNCnetCfg",
+        "wikiFile": "FUNCnetCfgWiki.txt",
+        "schedule": {
+            "master": "weekdays",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "FUNC",
+        "nodeLabel": "VM",
+        "supportedBranches": [ "all" ]
+    },
+    "FUNCnetconf": {
+        "wikiName": "FUNCnetconf",
+        "wikiFile": "FUNCnetconfWiki.txt",
+        "schedule": {
+            "master": "weekdays",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "FUNC",
+        "nodeLabel": "VM",
+        "supportedBranches": [ "all" ]
+    },
+    "FUNCoptical": {
+        "wikiName": "FUNCoptical",
+        "wikiFile": "FUNCopticalWiki.txt",
+        "schedule": {
+            "master": "weekdays",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "FUNC",
+        "nodeLabel": "VM",
+        "supportedBranches": [ "all" ]
+    },
+    "FUNCovsdbtest": {
+        "wikiName": "FUNCovsdbtest",
+        "wikiFile": "FUNCovsdbtestWiki.txt",
+        "schedule": {
+            "master": "weekdays",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "FUNC",
+        "nodeLabel": "VM",
+        "supportedBranches": [ "all" ]
+    },
+    "FUNCgroup": {
+        "wikiName": "FUNCgroup",
+        "wikiFile": "FUNCgroupWiki.txt",
+        "schedule": {
+            "master": "weekdays",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "FUNC",
+        "nodeLabel": "VM",
+        "supportedBranches": [ "all" ]
+    },
+    "FUNCformCluster": {
+        "wikiName": "FUNCformCluster",
+        "wikiFile": "FUNCformClusterWiki.txt",
+        "schedule": {
+            "master": "weekdays",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "FUNC",
+        "nodeLabel": "VM",
+        "supportedBranches": [ "all" ]
+    },
+    "HAsanity": {
+        "wikiName": "HA Sanity",
+        "wikiFile": "HAsanityWiki.txt",
+        "schedule": {
+            "master": "weekdays",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "HA",
+        "nodeLabel": "VM",
+        "supportedBranches": [ "all" ]
+    },
+    "HAsingleInstanceRestart": {
+        "wikiName": "HA Single Instance Restart",
+        "wikiFile": "HAsingleInstanceRestartWiki.txt",
+        "schedule": {
+            "master": "weekdays",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "HA",
+        "nodeLabel": "VM",
+        "supportedBranches": [ "all" ]
+    },
+    "HAclusterRestart": {
+        "wikiName": "HA Cluster Restart",
+        "wikiFile": "HAclusterRestart.txt",
+        "schedule": {
+            "master": "weekdays",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "HA",
+        "nodeLabel": "VM",
+        "supportedBranches": [ "all" ]
+    },
+    "HAkillNodes": {
+        "wikiName": "HA Kill Nodes",
+        "wikiFile": "HAkillNodes.txt",
+        "schedule": {
+            "master": "tue_thu",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "HA",
+        "nodeLabel": "VM",
+        "supportedBranches": [ "all" ]
+    },
+    "HAstopNodes": {
+        "wikiName": "HA Stop Nodes",
+        "wikiFile": "HAstopNodes.txt",
+        "schedule": {
+            "master": "mon_wed_fri",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "HA",
+        "nodeLabel": "VM",
+        "supportedBranches": [ "all" ]
+    },
+    "HAfullNetPartition": {
+        "wikiName": "HA Full Network Partition",
+        "wikiFile": "HAfullNetPartitionWiki.txt",
+        "schedule": {
+            "master": "mon_wed_fri",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "HA",
+        "nodeLabel": "VM",
+        "supportedBranches": [ "all" ]
+    },
+    "HAscaling": {
+        "wikiName": "HA Scaling",
+        "wikiFile": "HAscalingWiki.txt",
+        "schedule": {
+            "master": "tue_thu",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "HA",
+        "nodeLabel": "VM",
+        "supportedBranches": [ "all" ]
+    },
+    "HAswapNodes": {
+        "wikiName": "HA Swap Nodes",
+        "wikiFile": "HAswapNodesWiki.txt",
+        "schedule": {
+            "master": "tue_thu",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "HA",
+        "nodeLabel": "VM",
+        "supportedBranches": [ "all" ]
+    },
+    "HAupgrade": {
+        "wikiName": "HA Upgrade",
+        "wikiFile": "HAupgradeWiki.txt",
+        "schedule": {
+
+        },
+        "category": "HA",
+        "nodeLabel": "VM",
+        "supportedBranches": [ "all" ]
+    },
+    "HAupgradeRollback": {
+        "wikiName": "HA Upgrade Rollback",
+        "wikiFile": "HAupgradeRollbackWiki.txt",
+        "schedule": {
+
+        },
+        "category": "HA",
+        "nodeLabel": "VM",
+        "supportedBranches": [ "all" ]
+    },
+    "HAbackupRecover": {
+        "wikiName": "HA Backup Recover",
+        "wikiFile": "HAbackupRecoverWiki.txt",
+        "schedule": {
+            "master": "tue_thu",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "HA",
+        "nodeLabel": "VM",
+        "supportedBranches": [ "all" ]
+    },
+    "SCPFswitchLat": {
+        "schedule": {
+            "master": "weekdays",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "SCPF",
+        "nodeLabel": "BM",
+        "supportedBranches": [ "all" ]
+    },
+    "SCPFportLat": {
+        "schedule": {
+            "master": "weekdays",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "SCPF",
+        "nodeLabel": "BM",
+        "supportedBranches": [ "all" ]
+    },
+    "SCPFintentInstallWithdrawLat": {
+        "schedule": {
+            "master": "wed_fri",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "SCPF",
+        "nodeLabel": "BM",
+        "supportedBranches": [ "all" ]
+    },
+    "SCPFintentInstallWithdrawLatWithFlowObj": {
+        "schedule": {
+            "master": "mon_thu",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "SCPF",
+        "nodeLabel": "BM",
+        "supportedBranches": [ "all" ]
+    },
+    "SCPFintentRerouteLat": {
+        "schedule": {
+            "master": "wed_fri",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "SCPF",
+        "nodeLabel": "BM",
+        "supportedBranches": [ "all" ]
+    },
+    "SCPFintentRerouteLatWithFlowObj": {
+        "schedule": {
+            "master": "mon_thu",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "SCPF",
+        "nodeLabel": "BM",
+        "supportedBranches": [ "all" ]
+    },
+    "SCPFintentEventTp": {
+        "schedule": {
+            "master": "weekdays",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "SCPF",
+        "nodeLabel": "BM",
+        "supportedBranches": [ "all" ]
+    },
+    "SCPFintentEventTpWithFlowObj": {
+        "schedule": {
+            "master": "mon_thu",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "SCPF",
+        "nodeLabel": "BM",
+        "supportedBranches": [ "all" ]
+    },
+    "SCPFscaleTopo": {
+        "schedule": {
+            "master": "tue",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "SCPF",
+        "nodeLabel": "BM",
+        "supportedBranches": [ "all" ]
+    },
+    "SCPFflowTp1g": {
+        "schedule": {
+            "master": "weekdays",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "SCPF",
+        "nodeLabel": "BM",
+        "supportedBranches": [ "all" ]
+    },
+    "SCPFflowTp1gWithFlowObj": {
+        "schedule": {
+            "master": "mon_thu",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "SCPF",
+        "nodeLabel": "BM",
+        "supportedBranches": [ "all" ]
+    },
+    "SCPFcbench": {
+        "schedule": {
+            "master": "weekdays",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "SCPF",
+        "nodeLabel": "BM",
+        "supportedBranches": [ "all" ]
+    },
+    "SCPFscalingMaxIntents": {
+        "schedule": {
+
+        },
+        "category": "SCPF",
+        "nodeLabel": "BM",
+        "supportedBranches": [ "all" ]
+    },
+    "SCPFscalingMaxIntentsWithFlowObj": {
+        "schedule": {
+
+        },
+        "category": "SCPF",
+        "nodeLabel": "BM",
+        "supportedBranches": [ "all" ]
+    },
+    "SCPFbatchFlowResp": {
+        "schedule": {
+            "master": "wed_fri",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "SCPF",
+        "nodeLabel": "BM",
+        "supportedBranches": [ "all" ]
+    },
+    "SCPFhostLat": {
+        "schedule": {
+            "master": "wed_fri",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "SCPF",
+        "nodeLabel": "BM",
+        "supportedBranches": [ "all" ]
+    },
+    "SCPFmastershipFailoverLat": {
+        "schedule": {
+            "master": "fri",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "SCPF",
+        "nodeLabel": "BM",
+        "supportedBranches": [ "all" ]
+    },
+    "SRBridging": {
+        "wikiName": "SR Bridging",
+        "wikiFile": "SRBridgingWiki.txt",
+        "schedule": {
+            "master": "weekdays",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "SR",
+        "nodeLabel": "Fabric",
+        "supportedBranches": [ "all" ]
+    },
+    "SRRouting": {
+        "wikiName": "SR Routing",
+        "wikiFile": "SRRoutingWiki.txt",
+        "schedule": {
+            "master": "weekdays",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+
+        },
+        "category": "SR",
+        "nodeLabel": "Fabric",
+        "supportedBranches": [ "all" ]
+    },
+    "SRDhcprelay": {
+        "wikiName": "SR Dhcp Relay",
+        "wikiFile": "SRDhcprelayWiki.txt",
+        "schedule": {
+            "master": "weekdays",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+
+        },
+        "category": "SR",
+        "nodeLabel": "Fabric",
+        "supportedBranches": [ "all" ]
+    },
+    "SRDynamicConf": {
+        "wikiName": "SR Dynamic Config",
+        "wikiFile": "SRDynamicConfWiki.txt",
+        "schedule": {
+            "master": "weekdays",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+
+        },
+        "category": "SR",
+        "nodeLabel": "Fabric",
+        "supportedBranches": [ "all" ]
+    },
+    "SRMulticast": {
+        "wikiName": "SR Multi Cast",
+        "wikiFile": "SRMulticastWiki.txt",
+        "schedule": {
+            "master": "weekdays",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+
+        },
+        "category": "SR",
+        "nodeLabel": "Fabric",
+        "supportedBranches": [ "all" ]
+    },
+    "SRSanity": {
+        "wikiName": "SR Sanity",
+        "wikiFile": "SRSanityWiki.txt",
+        "schedule": {
+            "master": "fri",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+
+        },
+        "category": "SR",
+        "nodeLabel": "Fabric",
+        "supportedBranches": [ "all" ]
+    },
+    "SRSwitchFailure": {
+        "wikiName": "SR Switch Failure",
+        "wikiFile": "SRSwitchFailureWiki.txt",
+        "schedule": {
+            "master": "fri",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+
+        },
+        "category": "SR",
+        "nodeLabel": "Fabric",
+        "supportedBranches": [ "all" ]
+    },
+    "SRLinkFailure": {
+        "wikiName": "SR Link Failure",
+        "wikiFile": "SRLinkFailureWiki.txt",
+        "schedule": {
+            "master": "fri",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+
+        },
+        "category": "SR",
+        "nodeLabel": "Fabric",
+        "supportedBranches": [ "all" ]
+    },
+    "SROnosFailure": {
+        "wikiName": "SR Onos node Failure",
+        "wikiFile": "SROnosFailureWiki.txt",
+        "schedule": {
+            "master": "fri",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+
+        },
+        "category": "SR",
+        "nodeLabel": "Fabric",
+        "supportedBranches": [ "all" ]
+    },
+    "SRClusterRestart": {
+        "wikiName": "SR Cluster Restart",
+        "wikiFile": "SRClusterRestartWiki.txt",
+        "schedule": {
+            "master": "sat",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+
+        },
+        "category": "SR",
+        "nodeLabel": "Fabric",
+        "supportedBranches": [ "all" ]
+    },
+    "SRDynamic": {
+        "wikiName": "SR Dynamic",
+        "wikiFile": "SRDynamicWiki.txt",
+        "schedule": {
+            "master": "sat",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+
+        },
+        "category": "SR",
+        "nodeLabel": "Fabric",
+        "supportedBranches": [ "all" ]
+    },
+    "SRHighAvailability": {
+        "wikiName": "SR High Availability",
+        "wikiFile": "SRHighAvailabilityWiki.txt",
+        "schedule": {
+            "master": "sat",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+
+        },
+        "category": "SR",
+        "nodeLabel": "Fabric",
+        "supportedBranches": [ "all" ]
+    },
+    "SRHAsanity": {
+        "test": "HAsanity --params-file HAsanity.params.fabric",
+        "wikiName": "SR HA Sanity",
+        "wikiFile": "HAsanityWiki.txt",
+        "schedule": {
+            "master": "weekdays",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+
+        },
+        "category": "SR",
+        "nodeLabel": "Fabric",
+        "supportedBranches": [ "all" ]
+    },
+    "SRHAclusterRestart": {
+        "test": "HAclusterRestart --params-file HAclusterRestart.params.fabric",
+        "schedule": {
+            "master": "weekdays",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+
+        },
+        "category": "SR",
+        "nodeLabel": "Fabric",
+        "supportedBranches": [ "all" ]
+    },
+    "SRHAsingleInstanceRestart": {
+        "test": "HAsingleInstanceRestart --params-file HAsingleInstanceRestart.params.fabric",
+        "wikiName": "SR HA Single Instance Restart",
+        "wikiFile": "HAsingleInstanceRestartWiki.txt",
+        "schedule": {
+            "master": "weekdays",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+
+        },
+        "category": "SR",
+        "nodeLabel": "Fabric",
+        "supportedBranches": [ "all" ]
+    },
+    "SRHAstopNodes": {
+        "test": "HAstopNodes --params-file HAstopNodes.params.fabric",
+        "wikiName": "SR HA Stop Nodes",
+        "wikiFile": "HAstopNodes.txt",
+        "schedule": {
+            "master": "weekdays",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+
+        },
+        "category": "SR",
+        "nodeLabel": "Fabric",
+        "supportedBranches": [ "all" ]
+    },
+    "SRHAfullNetPartition": {
+        "test": "HAfullNetPartition --params-file HAfullNetPartition.params.fabric",
+        "wikiName": "SR HA Full Network Partition",
+        "wikiFile": "HAfullNetPartitionWiki.txt",
+        "schedule": {
+            "master": "fri"
+        },
+        "category": "SR",
+        "nodeLabel": "Fabric",
+        "supportedBranches": [ "all" ]
+    },
+    "SRHAswapNodes": {
+        "test": "HAswapNodes --params-file HAswapNodes.params.fabric",
+        "wikiName": "SR HA Swap Nodes",
+        "wikiFile": "HAswapNodesWiki.txt",
+        "schedule": {
+            "master": "sat"
+        },
+        "category": "SR",
+        "nodeLabel": "Fabric",
+        "supportedBranches": [ "all" ]
+    },
+    "SRHAscaling": {
+        "test": "HAscaling --params-file HAscaling.params.fabric",
+        "wikiName": "SR HA Scaling",
+        "wikiFile": "HAscalingWiki.txt",
+        "schedule": {
+            "master": "sat"
+        },
+        "category": "SR",
+        "nodeLabel": "Fabric",
+        "supportedBranches": [ "all" ]
+    },
+    "SRHAkillNodes": {
+        "test": "HAkillNodes --params-file HAkillNodes.params.fabric",
+        "wikiName": "SR HA Kill Nodes",
+        "wikiFile": "HAkillNodes.txt",
+        "schedule": {
+            "master": "weekdays",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+
+        },
+        "category": "SR",
+        "nodeLabel": "Fabric",
+        "supportedBranches": [ "all" ]
+    },
+    "SRHAbackupRecover": {
+        "test": "HAbackupRecover --params-file HAbackupRecover.params.fabric",
+        "wikiName": "SR HA Backup Recover",
+        "wikiFile": "HAbackupRecoverWiki.txt",
+        "schedule": {
+            "master": "weekdays",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+
+        },
+        "category": "SR",
+        "nodeLabel": "Fabric",
+        "supportedBranches": [ "all" ]
+    },
+    "SRHAupgrade": {
+        "test": "HAupgrade --params-file HAupgrade.params.fabric",
+        "wikiName": "SR HA Upgrade",
+        "wikiFile": "HAupgradeWiki.txt",
+        "schedule": {
+        },
+        "category": "SR",
+        "nodeLabel": "Fabric",
+        "supportedBranches": [ "all" ]
+    },
+    "SRHAupgradeRollback": {
+        "test": "HAupgradeRollback --params-file HAupgradeRollback.params.fabric",
+        "wikiName": "SR HA Upgrade Rollback",
+        "wikiFile": "HAupgradeRollbackWiki.txt",
+        "schedule": {
+        },
+        "category": "SR",
+        "nodeLabel": "Fabric",
+        "supportedBranches": [ "all" ]
+    },
+    "FUNCvirNetNB": {
+        "wikiName": "FUNCvirNetNB",
+        "wikiFile": "FUNCvirNetNBWiki.txt",
+        "schedule": {
+            "master": "USECASE_master",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "USECASE",
+        "nodeLabel": "BM",
+        "supportedBranches": [ "all" ]
+    },
+    "FUNCbgpls": {
+        "wikiName": "FUNCbgpls",
+        "wikiFile": "FUNCbgplsWiki.txt",
+        "schedule": {
+            "master": "USECASE_master",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "USECASE",
+        "nodeLabel": "BM",
+        "supportedBranches": [ "all" ]
+    },
+    "VPLSBasic": {
+        "wikiName": "VPLSBasic",
+        "wikiFile": "VPLSBasicWiki.txt",
+        "schedule": {
+            "master": "USECASE_master",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "USECASE",
+        "nodeLabel": "BM",
+        "supportedBranches": [ "all" ]
+    },
+    "VPLSfailsafe": {
+        "wikiName": "VPLSfailsafe",
+        "wikiFile": "VPLSfailsafeWiki.txt",
+        "schedule": {
+            "master": "USECASE_master",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "USECASE",
+        "nodeLabel": "BM",
+        "supportedBranches": [ "all" ]
+    },
+    "USECASE_SdnipFunction": {
+        "wikiName": "SDNIP Function",
+        "wikiFile": "USECASE_SdnipFunctionWiki.txt",
+        "schedule": {
+            "master": "USECASE_master",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "USECASE",
+        "nodeLabel": "BM",
+        "supportedBranches": [ "all" ]
+    },
+    "USECASE_SdnipFunctionCluster": {
+        "wikiName": "SDNIP Function Cluster",
+        "wikiFile": "USECASE_SdnipFunctionClusterWiki.txt",
+        "schedule": {
+            "master": "USECASE_master",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "USECASE",
+        "nodeLabel": "BM",
+        "supportedBranches": [ "all" ]
+    },
+    "PLATdockertest": {
+        "wikiName": "Docker Images sanity test",
+        "wikiFile": "PLATdockertestTableWiki.txt",
+        "schedule": {
+            "master": "USECASE_master",
+            "onos-1.x": "onos-1.x_schedule",
+            "onos-2.x": "onos-2.x_schedule"
+        },
+        "category": "USECASE",
+        "nodeLabel": "BM",
+        "supportedBranches": [ "all" ]
+    }
+}