Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 1 | """ |
Jeremy Ronquillo | b27ce4c | 2017-07-17 12:41:28 -0700 | [diff] [blame] | 2 | Copyright 2016 Open Networking Foundation (ONF) |
| 3 | |
| 4 | Please refer questions to either the onos test mailing list at <onos-test@onosproject.org>, |
| 5 | the System Testing Plans and Results wiki page at <https://wiki.onosproject.org/x/voMg>, |
| 6 | or the System Testing Guide page at <https://wiki.onosproject.org/x/WYQg> |
| 7 | |
| 8 | TestON is free software: you can redistribute it and/or modify |
| 9 | it under the terms of the GNU General Public License as published by |
| 10 | the Free Software Foundation, either version 2 of the License, or |
| 11 | (at your option) any later version. |
| 12 | |
| 13 | TestON is distributed in the hope that it will be useful, |
| 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | GNU General Public License for more details. |
| 17 | |
| 18 | You should have received a copy of the GNU General Public License |
| 19 | along with TestON. If not, see <http://www.gnu.org/licenses/>. |
| 20 | """ |
| 21 | |
| 22 | """ |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 23 | Description: This test is to determine if ONOS can handle |
| 24 | dynamic swapping of cluster nodes. |
| 25 | |
| 26 | List of test cases: |
| 27 | CASE1: Compile ONOS and push it to the test machines |
| 28 | CASE2: Assign devices to controllers |
| 29 | CASE21: Assign mastership to controllers |
| 30 | CASE3: Assign intents |
| 31 | CASE4: Ping across added host intents |
| 32 | CASE5: Reading state of ONOS |
| 33 | CASE6: Swap nodes |
| 34 | CASE7: Check state after control plane failure |
| 35 | CASE8: Compare topo |
| 36 | CASE9: Link s3-s28 down |
| 37 | CASE10: Link s3-s28 up |
| 38 | CASE11: Switch down |
| 39 | CASE12: Switch up |
| 40 | CASE13: Clean up |
| 41 | CASE14: start election app on all onos nodes |
| 42 | CASE15: Check that Leadership Election is still functional |
| 43 | CASE16: Install Distributed Primitives app |
| 44 | CASE17: Check for basic functionality with distributed primitives |
| 45 | """ |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 46 | class HAswapNodes: |
| 47 | |
| 48 | def __init__( self ): |
| 49 | self.default = '' |
| 50 | |
| 51 | def CASE1( self, main ): |
| 52 | """ |
| 53 | CASE1 is to compile ONOS and push it to the test machines |
| 54 | |
| 55 | Startup sequence: |
| 56 | cell <name> |
| 57 | onos-verify-cell |
| 58 | NOTE: temporary - onos-remove-raft-logs |
| 59 | onos-uninstall |
| 60 | start mininet |
| 61 | git pull |
| 62 | mvn clean install |
| 63 | onos-package |
| 64 | onos-install -f |
| 65 | onos-wait-for-start |
| 66 | start cli sessions |
| 67 | start tcpdump |
| 68 | """ |
| 69 | import time |
| 70 | import os |
| 71 | import re |
| 72 | main.log.info( "ONOS HA test: Restart all ONOS nodes - " + |
| 73 | "initialization" ) |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 74 | # set global variables |
| 75 | # These are for csv plotting in jenkins |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 76 | main.HAlabels = [] |
| 77 | main.HAdata = [] |
| 78 | try: |
| 79 | from tests.dependencies.ONOSSetup import ONOSSetup |
| 80 | main.testSetUp = ONOSSetup() |
| 81 | except ImportError: |
| 82 | main.log.error( "ONOSSetup not found. exiting the test" ) |
Devin Lim | 4407596 | 2017-08-11 10:56:37 -0700 | [diff] [blame] | 83 | main.cleanAndExit() |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 84 | main.testSetUp.envSetupDescription() |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 85 | try: |
| 86 | from tests.HA.dependencies.HA import HA |
| 87 | main.HA = HA() |
| 88 | from tests.HA.HAswapNodes.dependencies.Server import Server |
| 89 | main.Server = Server() |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 90 | # load some variables from the params file |
| 91 | cellName = main.params[ 'ENV' ][ 'cellName' ] |
| 92 | main.apps = main.params[ 'ENV' ][ 'appString' ] |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 93 | stepResult = main.testSetUp.envSetup() |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 94 | except Exception as e: |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 95 | main.testSetUp.envSetupException( e ) |
| 96 | main.testSetUp.evnSetupConclusion( stepResult ) |
| 97 | main.HA.generateGraph( "HAswapNodes" ) |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 98 | |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 99 | |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 100 | main.testSetUp.ONOSSetUp( main.Mininet1, main.Cluster, cellName=cellName, removeLog=True, |
| 101 | extraApply=[ main.HA.setServerForCluster, |
| 102 | main.HA.swapNodeMetadata, |
| 103 | main.HA.startingMininet, |
Jon Hall | 4f360bc | 2017-09-07 10:19:52 -0700 | [diff] [blame^] | 104 | main.HA.copyBackupConfig, |
| 105 | main.HA.setMetadataUrl ], |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 106 | extraClean=main.HA.cleanUpOnosService, |
| 107 | installMax=True ) |
| 108 | main.HA.initialSetUp() |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 109 | |
| 110 | def CASE2( self, main ): |
| 111 | """ |
| 112 | Assign devices to controllers |
| 113 | """ |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 114 | main.HA.assignDevices( main ) |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 115 | |
| 116 | def CASE21( self, main ): |
| 117 | """ |
| 118 | Assign mastership to controllers |
| 119 | """ |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 120 | main.HA.assignMastership( main ) |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 121 | |
| 122 | def CASE3( self, main ): |
| 123 | """ |
| 124 | Assign intents |
| 125 | """ |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 126 | main.HA.assignIntents( main ) |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 127 | |
| 128 | def CASE4( self, main ): |
| 129 | """ |
| 130 | Ping across added host intents |
| 131 | """ |
Jon Hall | ca31989 | 2017-06-15 15:25:22 -0700 | [diff] [blame] | 132 | main.HA.pingAcrossHostIntent( main ) |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 133 | |
| 134 | def CASE5( self, main ): |
| 135 | """ |
| 136 | Reading state of ONOS |
| 137 | """ |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 138 | main.HA.readingState( main ) |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 139 | |
| 140 | def CASE6( self, main ): |
| 141 | """ |
| 142 | The Scaling case. |
| 143 | """ |
| 144 | import time |
| 145 | import re |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 146 | assert main, "main not defined" |
| 147 | assert utilities.assert_equals, "utilities.assert_equals not defined" |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 148 | try: |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 149 | main.HAlabels |
| 150 | except ( NameError, AttributeError ): |
| 151 | main.log.error( "main.HAlabels not defined, setting to []" ) |
| 152 | main.HAlabels = [] |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 153 | try: |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 154 | main.HAdata |
| 155 | except ( NameError, AttributeError ): |
| 156 | main.log.error( "main.HAdata not defined, setting to []" ) |
| 157 | main.HAdata = [] |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 158 | |
| 159 | main.case( "Swap some of the ONOS nodes" ) |
| 160 | |
| 161 | main.step( "Checking ONOS Logs for errors" ) |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 162 | for ctrl in main.Cluster.active(): |
| 163 | main.log.debug( "Checking logs for errors on " + ctrl.name + ":" ) |
| 164 | main.log.warn( main.ONOSbench.checkLogs( ctrl.ipAddress ) ) |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 165 | |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 166 | activeNodes = main.Cluster.getRunningPos() |
| 167 | # Todo : this could be wrong. need to double check. |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 168 | main.step( "Generate new metadata file" ) |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 169 | old = [ activeNodes[ 1 ], activeNodes[ -2 ] ] |
| 170 | new = range( main.Cluster.maxCtrls )[ -2: ] |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 171 | assert len( old ) == len( new ), "Length of nodes to swap don't match" |
| 172 | handle = main.ONOSbench.handle |
| 173 | for x, y in zip( old, new ): |
| 174 | handle.sendline( "export OC{}=$OC{}".format( x + 1, y + 1 ) ) |
| 175 | handle.expect( "\$" ) # from the variable |
| 176 | ret = handle.before |
| 177 | handle.expect( "\$" ) # From the prompt |
| 178 | ret += handle.before |
| 179 | main.log.debug( ret ) |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 180 | activeNodes.remove( x ) |
| 181 | activeNodes.append( y ) |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 182 | |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 183 | genResult = main.Server.generateFile( main.Cluster.numCtrls ) |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 184 | utilities.assert_equals( expect=main.TRUE, actual=genResult, |
| 185 | onpass="New cluster metadata file generated", |
| 186 | onfail="Failled to generate new metadata file" ) |
| 187 | time.sleep( 5 ) # Give time for nodes to read new file |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 188 | main.Cluster.resetActive() |
| 189 | # Note : done up to this point. |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 190 | main.step( "Start new nodes" ) # OR stop old nodes? |
| 191 | started = main.TRUE |
| 192 | for i in new: |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 193 | started = main.ONOSbench.onosStart( main.Cluster.controllers[ i ].ipAddress ) and main.TRUE |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 194 | utilities.assert_equals( expect=main.TRUE, actual=started, |
| 195 | onpass="ONOS started", |
| 196 | onfail="ONOS start NOT successful" ) |
| 197 | |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 198 | main.Cluster.setRunningNode( activeNodes ) |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 199 | |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 200 | main.testSetUp.setupSsh( main.Cluster ) |
| 201 | main.testSetUp.checkOnosService( main.Cluster ) |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 202 | |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 203 | main.testSetUp.startOnosClis( main.Cluster ) |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 204 | |
| 205 | main.step( "Checking ONOS nodes" ) |
| 206 | nodeResults = utilities.retry( main.HA.nodesCheck, |
| 207 | False, |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 208 | args=[ main.Cluster.active() ], |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 209 | attempts=5 ) |
| 210 | utilities.assert_equals( expect=True, actual=nodeResults, |
| 211 | onpass="Nodes check successful", |
| 212 | onfail="Nodes check NOT successful" ) |
| 213 | |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 214 | ready = utilities.retry( main.Cluster.command, |
| 215 | False, |
| 216 | kwargs={ "function":"summary", "contentCheck":True }, |
| 217 | sleep=30, |
| 218 | attempts=10 ) |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 219 | utilities.assert_equals( expect=True, actual=ready, |
| 220 | onpass="ONOS summary command succeded", |
| 221 | onfail="ONOS summary command failed" ) |
| 222 | if not ready: |
Devin Lim | 4407596 | 2017-08-11 10:56:37 -0700 | [diff] [blame] | 223 | main.cleanAndExit() |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 224 | |
| 225 | # Rerun for election on new nodes |
| 226 | runResults = main.TRUE |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 227 | for ctrl in main.Cluster.active(): |
| 228 | run = ctrl.CLI.electionTestRun() |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 229 | if run != main.TRUE: |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 230 | main.log.error( "Error running for election on " + ctrl.name ) |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 231 | runResults = runResults and run |
| 232 | utilities.assert_equals( expect=main.TRUE, actual=runResults, |
| 233 | onpass="Reran for election", |
| 234 | onfail="Failed to rerun for election" ) |
| 235 | |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 236 | main.HA.commonChecks() |
| 237 | |
| 238 | """ |
| 239 | # Note: Do we really want this? It will revert the changes we have made from this test case. |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 240 | |
| 241 | main.step( "Reapplying cell variable to environment" ) |
| 242 | cellName = main.params[ 'ENV' ][ 'cellName' ] |
| 243 | cellResult = main.ONOSbench.setCell( cellName ) |
| 244 | utilities.assert_equals( expect=main.TRUE, actual=cellResult, |
| 245 | onpass="Set cell successfull", |
| 246 | onfail="Failled to set cell" ) |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 247 | """ |
| 248 | |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 249 | |
| 250 | def CASE7( self, main ): |
| 251 | """ |
| 252 | Check state after ONOS scaling |
| 253 | """ |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 254 | |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 255 | main.HA.checkStateAfterEvent( main, afterWhich=1 ) |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 256 | |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 257 | main.step( "Leadership Election is still functional" ) |
| 258 | # Test of LeadershipElection |
| 259 | leaderList = [] |
| 260 | leaderResult = main.TRUE |
| 261 | |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 262 | for ctrl in main.Cluster.active(): |
| 263 | leaderN = ctrl.CLI.electionTestLeader() |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 264 | leaderList.append( leaderN ) |
| 265 | if leaderN == main.FALSE: |
| 266 | # error in response |
| 267 | main.log.error( "Something is wrong with " + |
| 268 | "electionTestLeader function, check the" + |
| 269 | " error logs" ) |
| 270 | leaderResult = main.FALSE |
| 271 | elif leaderN is None: |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 272 | main.log.error( ctrl.name + |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 273 | " shows no leader for the election-app." ) |
| 274 | leaderResult = main.FALSE |
| 275 | if len( set( leaderList ) ) != 1: |
| 276 | leaderResult = main.FALSE |
| 277 | main.log.error( |
| 278 | "Inconsistent view of leader for the election test app" ) |
| 279 | # TODO: print the list |
| 280 | utilities.assert_equals( |
| 281 | expect=main.TRUE, |
| 282 | actual=leaderResult, |
| 283 | onpass="Leadership election passed", |
| 284 | onfail="Something went wrong with Leadership election" ) |
| 285 | |
| 286 | def CASE8( self, main ): |
| 287 | """ |
| 288 | Compare topo |
| 289 | """ |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 290 | main.HA.compareTopo( main ) |
Jon Hall | d2871c2 | 2016-07-26 11:01:14 -0700 | [diff] [blame] | 291 | |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 292 | def CASE9( self, main ): |
| 293 | """ |
| 294 | Link s3-s28 down |
| 295 | """ |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 296 | main.HA.linkDown( main ) |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 297 | |
| 298 | def CASE10( self, main ): |
| 299 | """ |
| 300 | Link s3-s28 up |
| 301 | """ |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 302 | main.HA.linkUp( main ) |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 303 | |
| 304 | def CASE11( self, main ): |
| 305 | """ |
| 306 | Switch Down |
| 307 | """ |
| 308 | # NOTE: You should probably run a topology check after this |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 309 | main.HA.switchDown( main ) |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 310 | |
| 311 | def CASE12( self, main ): |
| 312 | """ |
| 313 | Switch Up |
| 314 | """ |
| 315 | # NOTE: You should probably run a topology check after this |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 316 | main.HA.switchUp( main ) |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 317 | |
| 318 | def CASE13( self, main ): |
| 319 | """ |
| 320 | Clean up |
| 321 | """ |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 322 | main.HA.cleanUp( main ) |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 323 | |
| 324 | main.step( "Stopping webserver" ) |
Jon Hall | f37d44d | 2017-05-24 10:37:30 -0700 | [diff] [blame] | 325 | status = main.Server.stop() |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 326 | utilities.assert_equals( expect=main.TRUE, actual=status, |
| 327 | onpass="Stop Server", |
| 328 | onfail="Failled to stop SimpleHTTPServer" ) |
| 329 | del main.Server |
| 330 | |
| 331 | def CASE14( self, main ): |
| 332 | """ |
| 333 | start election app on all onos nodes |
| 334 | """ |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 335 | main.HA.startElectionApp( main ) |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 336 | |
| 337 | def CASE15( self, main ): |
| 338 | """ |
| 339 | Check that Leadership Election is still functional |
| 340 | 15.1 Run election on each node |
| 341 | 15.2 Check that each node has the same leaders and candidates |
| 342 | 15.3 Find current leader and withdraw |
| 343 | 15.4 Check that a new node was elected leader |
| 344 | 15.5 Check that that new leader was the candidate of old leader |
| 345 | 15.6 Run for election on old leader |
| 346 | 15.7 Check that oldLeader is a candidate, and leader if only 1 node |
| 347 | 15.8 Make sure that the old leader was added to the candidate list |
| 348 | |
| 349 | old and new variable prefixes refer to data from before vs after |
| 350 | withdrawl and later before withdrawl vs after re-election |
| 351 | """ |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 352 | main.HA.isElectionFunctional( main ) |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 353 | |
| 354 | def CASE16( self, main ): |
| 355 | """ |
| 356 | Install Distributed Primitives app |
| 357 | """ |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 358 | main.HA.installDistributedPrimitiveApp( main ) |
Jon Hall | 69b2b98 | 2016-05-11 12:04:59 -0700 | [diff] [blame] | 359 | |
| 360 | def CASE17( self, main ): |
| 361 | """ |
| 362 | Check for basic functionality with distributed primitives |
| 363 | """ |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 364 | main.HA.checkDistPrimitivesFunc( main ) |