Commit Graph

6 Commits

Author SHA1 Message Date
Luciano Lo Giudice 2a4ad7f74e Fix test for cinder-lvm
Since the charm is now marked stateful, the 'host' attribute
of a volume is mangled differently. This change makes the test
more robust against future changes as well.
2021-10-07 22:07:00 -03:00
Luciano Lo Giudice 839e1a0868 Don't make assumptions about present devices
Instead of using '/dev/vdc' for a test, use a loop device, since
it should always be available and it allows us to set a specific
size for it.
2021-09-20 20:06:37 -03:00
Luciano Lo Giudice 879d35d6fb Cleanup the test file
Instead of introducing a new decorator to temporarily change the
configuration, use the existing infrastructure. Furthermore, avoid
passing the model name in some calls since it's implied already.
2021-09-06 19:16:17 -03:00
Luciano Lo Giudice 5a59742333 Update the functional tests for cinder-lvm.
This brings the changes from the 'cinder-lvm' repo itself, from where
this class will be removed.
2021-08-31 12:24:03 -03:00
Luciano Lo Giudice fef55ec318 PEP8 style fixes 2021-08-25 20:32:50 -03:00
Luciano Lo Giudice f3a38c0c90 Implement the tests for the cinder-lvm charm
The cinder-lvm charm is a subordinate of the cinder charm. The spec
can be found here:
https://github.com/openstack/charm-specs/blob/master/specs/xena/backlog/cinder-lvm.rst
2021-08-25 20:11:10 -03:00