Add disks entry to config.data
Signed-off-by: Ilias Tsitsimpis <iliastsi@grnet.gr>
Fix '_create_instance' in config_unittest
Previously '_create_instance' would initialize the config object everytime it would be called. This causes '_WriteConfig' to fail withConfigurationError: The configuration file has been modified since thelast write. Fix this by passing the config object to '_create_instance'...
Add a method for WConfd context to GanetiContextMock
Signed-off-by: Petr Pudlak <pudlak@google.com>Reviewed-by: Klaus Aehlig <aehlig@google.com>
Move the test for adding/removing certs to config. tests
.. and update it to work with ConfigWriter instead of the 'security'module.
Signed-off-by: Petr Pudlak <pudlak@google.com>Reviewed-by: Helga Velroyen <helgav@google.com>
Extend unittest for gnt-os info changes
Extend unit test ganeti.query_unittest.py, to correspond to thechanges made in the 'gnt-os info' output.
Signed-off-by: Dimitris Bliablias <bl.dimitris@gmail.com>Signed-off-by: Michele Tartara <mtartara@google.com>...
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.
Add tests for (de)serialization of ClientId
.. to test if `readJSON . showJSON = Ok`.
Update tests after merging 'os_get' into 'os_validate'
... namely, unit tests and QA.
Signed-off-by: Jose A. Lopes <jabolopes@google.com>Reviewed-by: Petr Pudlak <pudlak@google.com>
Make mcpu acquire WConfD locks
So far, the mcpu acquires locks that live in memoryof masterd. This design does not fit with our jobs-as-processesgoal. So make mcpu acquire the corresponding locks in WConfDinstead.
Note that this implies changes in various other files that call...
Add a mock for the wconfd module
As our so-called unit tests for the logical units are morelike integration tests, calling the actual LU through an almostlive mcpu, we need a quite involved "mock" for the wconfd module,called indirectly through mcpu. The difficulties arise from the...
View revisions
Also available in: Atom