Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
test: Remove fake test for virtio-blk handler
Browse files Browse the repository at this point in the history
This now needs a pci address instead of a file system path.

Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
  • Loading branch information
amshinde committed Apr 30, 2018
1 parent 9090c3f commit fbe3b16
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions mount_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,29 +47,6 @@ func TestVirtio9pStorageHandlerSuccessful(t *testing.T) {
assert.Nil(t, err, "storage9pDriverHandler() failed: %v", err)
}

func TestVirtioBlkStorageHandlerSuccessful(t *testing.T) {
skipUnlessRoot(t)

devPath, err := createFakeDevicePath()
if err != nil {
t.Fatal(err)
}
defer os.RemoveAll(devPath)

storage, err := createSafeAndFakeStorage()
if err != nil {
t.Fatal(err)
}
defer os.RemoveAll(storage.Source)
defer syscall.Unmount(storage.MountPoint, 0)

storage.Fstype = "bind"
storage.Options = []string{"rbind"}

_, err = virtioBlkStorageHandler(storage, &sandbox{})
assert.Nil(t, err, "storageBlockStorageDriverHandler() failed: %v", err)
}

func testAddStoragesSuccessful(t *testing.T, storages []*pb.Storage) {
_, err := addStorages(storages, &sandbox{})
assert.Nil(t, err, "addStorages() failed: %v", err)
Expand Down

0 comments on commit fbe3b16

Please sign in to comment.