Remove aufs snapshotter (deprecated since v1.5)
				
					
				
			Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
		@@ -39,41 +39,3 @@ func TestGetOverlayPath(t *testing.T) {
 | 
			
		||||
		t.Fatalf("An error is expected")
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func TestGetAufsPath(t *testing.T) {
 | 
			
		||||
	for _, test := range []struct {
 | 
			
		||||
		options   []string
 | 
			
		||||
		expectErr bool
 | 
			
		||||
	}{
 | 
			
		||||
		{
 | 
			
		||||
			options:   []string{"random:option", "br:/test/rw=rw:/test/ro=ro+wh"},
 | 
			
		||||
			expectErr: false,
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			options:   []string{"random:option"},
 | 
			
		||||
			expectErr: true,
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			options:   []string{"br:/test/ro=ro+wh"},
 | 
			
		||||
			expectErr: true,
 | 
			
		||||
		},
 | 
			
		||||
	} {
 | 
			
		||||
		path, parents, err := getAufsPath(test.options)
 | 
			
		||||
		if test.expectErr {
 | 
			
		||||
			if err == nil {
 | 
			
		||||
				t.Fatalf("An error is expected")
 | 
			
		||||
			}
 | 
			
		||||
			continue
 | 
			
		||||
		}
 | 
			
		||||
		if err != nil {
 | 
			
		||||
			t.Fatalf("Get aufs path failed: %v", err)
 | 
			
		||||
		}
 | 
			
		||||
		if path != "/test/rw" {
 | 
			
		||||
			t.Fatalf("Unexpected rw dir: %q", path)
 | 
			
		||||
		}
 | 
			
		||||
		if len(parents) != 1 || parents[0] != "/test/ro" {
 | 
			
		||||
			t.Fatalf("Unexpected parents: %v", parents)
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user