Statistics
| Branch: | Tag: | Revision:

root / test / py / cmdlib @ 293e1c1d

Latest revisions

# Date Author Comment
be7ea029 05/12/2014 04:06 pm Petr Pudlak

Remove the unit test for verifying node's DRBD reservations

We'll need to reconstruct a similar test later when we add functions for
manipulating the configuration directly to WConfd.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

560c03ed 05/12/2014 04:06 pm Petr Pudlak

Fix the mocked ConfigWriter to pass DRBD minors methods

.. since for unit tests, we don't have access to WConfd, which now
implements the functionality.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

6426ace9 05/05/2014 02:22 pm Jose A. Lopes

Eliminate local variable

Signed-off-by: Ilias Tsitsimpis <>
Reviewed-by: Jose A. Lopes <>

9a8f9634 05/05/2014 02:22 pm Ilias Tsitsimpis

Fix the broken unittests

Fix the unittest that have been broken when we lifted the Disk objects
from the Instances.

Signed-off-by: Ilias Tsitsimpis <>
Reviewed-by: Jose A. Lopes <>

921fd285 05/05/2014 02:22 pm Ilias Tsitsimpis

Get instance's nodes from config

Use 'GetInstanceNodes' to get the nodes of an instance, instead of the
'all_nodes' Instance property.

Signed-off-by: Ilias Tsitsimpis <>
Reviewed-by: Jose A. Lopes <>

5dc66e15 03/27/2014 04:39 pm Petr Pudlak

Update ConfigWriter unit tests

This involves:

- Updating how a mocked configuration object is set up.
- Adding calls to refresh in-memory objects from the configuration
(because they're not shared any more).
- Adding calls to Update to save modified in-memory objects so that the...

3d97b399 03/26/2014 11:35 am Petr Pudlak

Add a method for WConfd context to GanetiContextMock

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

9c5c80a4 03/18/2014 03:30 pm Petr Pudlak

Fix WConfd mock client after updating the lock

.. because instead of a job ID and a lock file, we now pass a single,
client ID object.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Helga Velroyen <>

13c16b21 03/17/2014 04:07 pm Jose A. Lopes

Update tests after merging 'os_get' into 'os_validate'

... namely, unit tests and QA.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Petr Pudlak <>

87ed6b79 03/13/2014 02:49 pm Klaus Aehlig

Make mcpu acquire WConfD locks

So far, the mcpu acquires locks that live in memory
of masterd. This design does not fit with our jobs-as-processes
goal. So make mcpu acquire the corresponding locks in WConfD
instead.

Note that this implies changes in various other files that call...

View revisions

Also available in: Atom