Statistics
| Branch: | Tag: | Revision:

root / test / py @ 5470b894

Name Size
  cmdlib
__init__.py 796 Bytes
bash_completion.bash 5.2 kB
cfgupgrade_unittest.py 17.1 kB
check-cert-expired_unittest.bash 1.9 kB
cli-test.bash 196 Bytes
daemon-util_unittest.bash 2.9 kB
docs_unittest.py 10.2 kB
ganeti-cleaner_unittest.bash 5.9 kB
ganeti-cli.test 504 Bytes
ganeti.asyncnotifier_unittest.py 6.7 kB
ganeti.backend_unittest-runasroot.py 2 kB
ganeti.backend_unittest.py 32.7 kB
ganeti.bootstrap_unittest.py 6.5 kB
ganeti.cli_unittest.py 58.3 kB
ganeti.client.gnt_cluster_unittest.py 12.1 kB
ganeti.client.gnt_instance_unittest.py 8.2 kB
ganeti.client.gnt_job_unittest.py 5 kB
ganeti.compat_unittest.py 3.9 kB
ganeti.confd.client_unittest.py 7.1 kB
ganeti.config_unittest.py 24.3 kB
ganeti.constants_unittest.py 6.4 kB
ganeti.daemon_unittest.py 24.3 kB
ganeti.errors_unittest.py 2.9 kB
ganeti.hooks_unittest.py 18.7 kB
ganeti.ht_unittest.py 9.2 kB
ganeti.http_unittest.py 26.2 kB
ganeti.hypervisor.hv_chroot_unittest.py 1.8 kB
ganeti.hypervisor.hv_fake_unittest.py 1.5 kB
ganeti.hypervisor.hv_kvm_unittest.py 14.4 kB
ganeti.hypervisor.hv_lxc_unittest.py 1.7 kB
ganeti.hypervisor.hv_xen_unittest.py 32.3 kB
ganeti.hypervisor_unittest.py 2.6 kB
ganeti.impexpd_unittest.py 8.5 kB
ganeti.jqueue_unittest.py 95.3 kB
ganeti.jstore_unittest.py 3.2 kB
ganeti.locking_unittest.py 92 kB
ganeti.luxi_unittest.py 1 kB
ganeti.masterd.iallocator_unittest.py 8 kB
ganeti.masterd.instance_unittest.py 5.7 kB
ganeti.mcpu_unittest.py 8.5 kB
ganeti.netutils_unittest.py 19.1 kB
ganeti.objects_unittest.py 31.9 kB
ganeti.opcodes_unittest.py 13.9 kB
ganeti.outils_unittest.py 3 kB
ganeti.ovf_unittest.py 30.1 kB
ganeti.qlang_unittest.py 10.2 kB
ganeti.query_unittest.py 76.4 kB
ganeti.rapi.baserlib_unittest.py 5.4 kB
ganeti.rapi.client_unittest.py 58.3 kB
ganeti.rapi.resources_unittest.py 2 kB
ganeti.rapi.rlib2_unittest.py 58.6 kB
ganeti.rapi.testutils_unittest.py 5.4 kB
ganeti.rpc.client_unittest.py 9.1 kB
ganeti.rpc_unittest.py 33.8 kB
ganeti.runtime_unittest.py 6.2 kB
ganeti.serializer_unittest.py 7.5 kB
ganeti.server.rapi_unittest.py 9.1 kB
ganeti.ssconf_unittest.py 8.6 kB
ganeti.ssh_unittest.py 5.1 kB
ganeti.storage.bdev_unittest.py 11.4 kB
ganeti.storage.container_unittest.py 4.5 kB
ganeti.storage.drbd_unittest.py 17.2 kB
ganeti.storage.filestorage_unittest.py 10.3 kB
ganeti.storage.gluster_unittest.py 4.5 kB
ganeti.tools.burnin_unittest.py 1.2 kB
ganeti.tools.ensure_dirs_unittest.py 2.6 kB
ganeti.tools.node_daemon_setup_unittest.py 6.7 kB
ganeti.tools.prepare_node_join_unittest.py 8.7 kB
ganeti.uidpool_unittest.py 3.8 kB
ganeti.utils.algo_unittest.py 12 kB
ganeti.utils.filelock_unittest.py 4.3 kB
ganeti.utils.hash_unittest.py 4.4 kB
ganeti.utils.io_unittest-runasroot.py 4.6 kB
ganeti.utils.io_unittest.py 35.5 kB
ganeti.utils.log_unittest.py 8.3 kB
ganeti.utils.lvm_unittest.py 4 kB
ganeti.utils.mlock_unittest.py 1.5 kB
ganeti.utils.nodesetup_unittest.py 4 kB
ganeti.utils.process_unittest.py 24.7 kB
ganeti.utils.retry_unittest.py 7.1 kB
ganeti.utils.security_unittest.py 2.6 kB
ganeti.utils.storage_unittest.py 4.2 kB
ganeti.utils.text_unittest.py 22.7 kB
ganeti.utils.version_unittest.py 3.8 kB
ganeti.utils.wrapper_unittest.py 5.1 kB
ganeti.utils.x509_unittest.py 13.5 kB
ganeti.utils_unittest.py 12.6 kB
ganeti.vcluster_unittest.py 8.7 kB
ganeti.workerpool_unittest.py 19.5 kB
gnt-cli.test 1.5 kB
import-export_unittest-helper 2.6 kB
import-export_unittest.bash 11.3 kB
lockperf.py 3.5 kB
mocks.py 3.2 kB
pycurl_reset_unittest.py 2.3 kB
qa.qa_config_unittest.py 13.7 kB
tempfile_fork_unittest.py 3.4 kB
testutils.py 6.6 kB

Latest revisions

# Date Author Comment
5470b894 03/26/2014 11:38 am Ilias Tsitsimpis

Fix '_create_instance' in config_unittest

Previously '_create_instance' would initialize the config object every
time it would be called. This causes '_WriteConfig' to fail with
ConfigurationError: The configuration file has been modified since the
last write. Fix this by passing the config object to '_create_instance'...

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 <>

cc0c1197 03/21/2014 05:19 pm Petr Pudlak

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 <>
Reviewed-by: Helga Velroyen <>

92aca8e1 03/21/2014 12:22 pm Dimitris Bliablias

Extend unittest for gnt-os info changes

Extend unit test ganeti.query_unittest.py, to correspond to the
changes made in the 'gnt-os info' output.

Signed-off-by: Dimitris Bliablias <>
Signed-off-by: Michele Tartara <>...

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...

69b139f6 03/13/2014 02:49 pm Klaus Aehlig

Add a mock for the wconfd module

As our so-called unit tests for the logical units are more
like integration tests, calling the actual LU through an almost
live mcpu, we need a quite involved "mock" for the wconfd module,
called indirectly through mcpu. The difficulties arise from the...

cb0269fb 03/13/2014 02:49 pm Klaus Aehlig

Add a mock version of livelocks

...as the will be used by mcpu for lock handling and that will
require tests to be adapted accordingly.

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

1c4910f7 03/11/2014 05:09 pm Jose A. Lopes

OS images in 'LUInstanceCreate' and OS scripts optional

  • Use the empty string in 'ganeti.objects.Instance.os' to signify that
    the instance does not use OS scripts.
  • Make several calls related to OS scripts first test whether OS
    scripts are being used....

View revisions

Also available in: Atom