Refactor volume.Builder.IsReadOnly() to volume.Builder.GetAttributes()
This commit is contained in:
@@ -246,7 +246,7 @@ func TestPersistentClaimReadOnlyFlag(t *testing.T) {
|
||||
pod := &api.Pod{ObjectMeta: api.ObjectMeta{UID: types.UID("poduid")}}
|
||||
builder, _ := plug.NewBuilder(spec, pod, volume.VolumeOptions{})
|
||||
|
||||
if !builder.IsReadOnly() {
|
||||
if !builder.GetAttributes().ReadOnly {
|
||||
t.Errorf("Expected true for builder.IsReadOnly")
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user