Revert "snapshot/storage: namespace snapshot drivers"

This reverts commit b1a70aa335.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
This commit is contained in:
Derek McGowan
2017-06-21 15:49:21 -07:00
parent eedcbc64cc
commit 7ddf411ea8
5 changed files with 12 additions and 57 deletions

View File

@@ -12,7 +12,6 @@ import (
"testing"
"github.com/containerd/containerd/mount"
"github.com/containerd/containerd/namespaces"
"github.com/containerd/containerd/snapshot"
"github.com/containerd/containerd/snapshot/storage"
"github.com/containerd/containerd/snapshot/testsuite"
@@ -34,7 +33,7 @@ func TestOverlay(t *testing.T) {
}
func TestOverlayMounts(t *testing.T) {
ctx := namespaces.WithNamespace(context.Background(), "snapshotter-overlay-test")
ctx := context.TODO()
root, err := ioutil.TempDir("", "overlay")
if err != nil {
t.Fatal(err)
@@ -70,7 +69,7 @@ func TestOverlayMounts(t *testing.T) {
}
func TestOverlayCommit(t *testing.T) {
ctx := namespaces.WithNamespace(context.Background(), "snapshotter-overlay-test")
ctx := context.TODO()
root, err := ioutil.TempDir("", "overlay")
if err != nil {
t.Fatal(err)
@@ -99,7 +98,7 @@ func TestOverlayCommit(t *testing.T) {
}
func TestOverlayOverlayMount(t *testing.T) {
ctx := namespaces.WithNamespace(context.Background(), "snapshotter-overlay-test")
ctx := context.TODO()
root, err := ioutil.TempDir("", "overlay")
if err != nil {
t.Fatal(err)
@@ -187,7 +186,7 @@ func getParents(ctx context.Context, sn snapshot.Snapshotter, root, key string)
func TestOverlayOverlayRead(t *testing.T) {
testutil.RequiresRoot(t)
ctx := namespaces.WithNamespace(context.Background(), "snapshotter-overlay-test")
ctx := context.TODO()
root, err := ioutil.TempDir("", "overlay")
if err != nil {
t.Fatal(err)
@@ -239,7 +238,7 @@ func TestOverlayOverlayRead(t *testing.T) {
}
func TestOverlayView(t *testing.T) {
ctx := namespaces.WithNamespace(context.Background(), "snapshotter-overlay-test")
ctx := context.TODO()
root, err := ioutil.TempDir("", "overlay")
if err != nil {
t.Fatal(err)