Commit 8b74febf authored by Vincent Pelletier's avatar Vincent Pelletier

Add a test file for non-node-specific tests.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@1220 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 96faf1f6
#
# Copyright (C) 2009 Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
import unittest
from neo.tests.functional import NEOCluster
from neo import protocol
class ClusterTests(unittest.TestCase):
def testClusterBreaks(self):
neo = NEOCluster(['test_neo1'], port_base=20000, master_node_count=1)
neoctl = neo.getNEOCTL()
neo.setupDB()
neo.start()
try:
self.assertEqual(neoctl.getClusterState(), protocol.RUNNING)
neo.killStorage()
neo.expectClusterState(protocol.VERIFYING)
finally:
neo.stop()
def test_suite():
return unittest.makeSuite(ClusterTests)
if __name__ == "__main__":
unittest.main(defaultTest="test_suite")
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment