Files
kubernetes/test
Patrick Ohly 1cb121d2a9 e2e/storage: introduce TestVolume interface
This increases type safety and makes the code easier to read because
it becomes obvious that the "test resource" passed to some functions
must be the result of a previous CreateVolume.

This makes it possible to remove:
- functions that never did anything (the DeleteVolume methods in
  drivers that never create a volume)
- type casts (in the DeleteVolume implementation)
- the unused DeleteVolume parameters
- the stand-alone DeleteVolume function (which would be just a non-nil
  check)

GetPersistentVolumeSource and GetVolumeSource could also become
methods on more specific interfaces - they don't actually use anything
from TestDriver instance which provides them.

The main motivation however is to reduce the number of methods which
might need an explicit test config parameter.
2019-02-15 08:38:54 +01:00
..
2018-11-10 07:50:31 -05:00
2019-02-11 11:38:25 +08:00
2018-10-09 12:32:27 -07:00
2018-11-10 07:50:31 -05:00
2019-02-08 11:34:02 -08:00
2018-08-22 11:49:14 +08:00