Documentation
¶
Overview ¶
Package enginetest provides utilities for testing generic engine implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VolumeTestCase ¶
type VolumeTestCase struct { sync.Mutex Engine string Mountpoint string WriteVolumePayload string CheckVolumePayload string // contains filtered or unexported fields }
A VolumeTestCase holds information necessary to run tests that an engine can create volumes, mount and read/write to volumes.
func (*VolumeTestCase) Test ¶
func (c *VolumeTestCase) Test(t *testing.T)
Test runs all tests on the test case.
func (*VolumeTestCase) TestReadEmptyVolume ¶
func (c *VolumeTestCase) TestReadEmptyVolume(t *testing.T)
TestReadEmptyVolume tests that read from empty volume doesn't work
func (*VolumeTestCase) TestReadToReadOnlyVolume ¶
func (c *VolumeTestCase) TestReadToReadOnlyVolume(t *testing.T)
TestReadToReadOnlyVolume tests that we can read from a read-only volume
func (*VolumeTestCase) TestWriteReadVolume ¶
func (c *VolumeTestCase) TestWriteReadVolume(t *testing.T)
TestWriteReadVolume tests that we can write and read from a volume
func (*VolumeTestCase) TestWriteToReadOnlyVolume ¶
func (c *VolumeTestCase) TestWriteToReadOnlyVolume(t *testing.T)
TestWriteToReadOnlyVolume tests that write doesn't work to a read-only volume
Click to show internal directories.
Click to hide internal directories.