Check consistency of the class names and OP_ID
authorIustin Pop <iustin@google.com>
Sat, 15 Jan 2011 14:25:24 +0000 (15:25 +0100)
committerIustin Pop <iustin@google.com>
Tue, 18 Jan 2011 11:47:15 +0000 (12:47 +0100)
commitff0d18e6077bd235ef20d9f4599479a071dedd77
treecd7bfcf00ad572925e2bd5da15015c32bda27877
parentb469eb4d7e729a7c27b471797001b932d4644f96
Check consistency of the class names and OP_ID

As the class names should be now consistent with the OP_IDs, we add a
check for wrongly-defined OP_IDs.

However, the future removal of the hand-coded OP_IDs will render this
obsolete, so this check is introduced just to make sure that the
previous renaming patches did the right job, and it will then be
removed.

The consistency checks require renaming the test opcodes, which were
using arbitrary names, depending on test author. They are now all
standardized on OpTest (local scope).

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>
lib/opcodes.py
test/ganeti.cmdlib_unittest.py
test/ganeti.opcodes_unittest.py
test/ganeti.rapi.baserlib_unittest.py