Statistics
| Branch: | Tag: | Revision:

root / test @ 14a31771

Name Size
  autotools
  data
  hs
  py

Latest revisions

# Date Author Comment
14a31771 05/13/2014 11:36 am Hrvoje Ribicic

Forbid the compression tools from being set over RAPI

Although we impose restrictions on what can be input as a compression
tool, someone with RAPI credentials could choose and execute a number
of commands by first setting the custom tools and then executing them....

fe71113e 05/13/2014 11:36 am Hrvoje Ribicic

Add the compression tools parameter

This patch makes the myriad of changes necessary for the compression
tool parameter to be added. The filtering of compression tools for
suspicious entries has been added for this exact purpose.

Signed-off-by: Hrvoje Ribicic <>...

293e1c1d 05/13/2014 11:36 am Hrvoje Ribicic

Make arbitrary compression tools work

We assume that the compression tools the user supplies use stdin and
stdout for handling data, and that a switch is used to distinguish
compression from decompression. This patch introduces these constraints
by adding the invocation of these tools to the import-export daemon....

86012ec2 05/13/2014 11:36 am Hrvoje Ribicic

Disable protections against unknown compression types

Ganeti took care to restrict all possible compression invocations to
the few options that were available. This patch strips away all of
those, but does not allow any interesting and dangerous commands...

8677c3a9 05/13/2014 11:36 am Hrvoje Ribicic

Extend offered compression types

This patch adds a few new types of compression supported by Ganeti:
gzip-fast (gzip -1), gzip-slow (ordinary gzip), and lzop. gzip now
becomes a shorthand for gzip-fast kept for compatibility.

Signed-off-by: Hrvoje Ribicic <>...

821dbb5f 05/13/2014 11:36 am Hrvoje Ribicic

Extend tests in preparation for new compression types

To ensure that later modifications are also noted in tests, this patch
updates the test to account for all compression types known.

Signed-off-by: Hrvoje Ribicic <>
Reviewed-by: Thomas Thrainer <>

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

113b6056 05/12/2014 04:06 pm Petr Pudlak

Test the 'findFirst' function

Also add 'genSublist' which picks a random sublist from a given list.

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

46049766 05/12/2014 12:42 pm Ilias Tsitsimpis

Add DiskParams to Disk object

The 'DiskParams' slot was missing from Haskell's Disk objects.
Since Wconfd is now responsible for writting the config file this was
causing the 'params' slot to not be written in the config file.

Signed-off-by: Ilias Tsitsimpis <>...

View revisions

Also available in: Atom