enable volume integration tests

enabled integration tests for volumes.  there are two exceptions that still need work because of something not yet implemented.

also, add code to deal with the fact that containers conf appears to set a local volume driver where it used to be simply blank.

Signed-off-by: Brent Baude <bbaude@redhat.com>
This commit is contained in:
Brent Baude
2020-04-27 15:28:01 -05:00
parent f6f7172494
commit e78e66c5b9
8 changed files with 25 additions and 13 deletions

View File

@ -1400,8 +1400,13 @@ func WithVolumeDriver(driver string) VolumeCreateOption {
if volume.valid {
return define.ErrVolumeFinalized
}
// only local driver is possible rn
if driver != define.VolumeDriverLocal {
return define.ErrNotImplemented
return define.ErrNotImplemented
}
volume.config.Driver = define.VolumeDriverLocal
return nil
}
}