dry-run: Use dry-runnable structure

This commit is contained in:
Antoine Pelisse
2018-06-21 08:49:13 -07:00
parent dab04dc6e0
commit 68937c4934
34 changed files with 582 additions and 55 deletions

View File

@@ -114,7 +114,7 @@ func TestDeleteSystemPriorityClass(t *testing.T) {
key := "test/system-node-critical"
ctx := genericapirequest.NewContext()
pc := scheduling.SystemPriorityClasses()[0]
if err := storage.Store.Storage.Create(ctx, key, pc, nil, 0); err != nil {
if err := storage.Store.Storage.Create(ctx, key, pc, nil, 0, false); err != nil {
t.Fatalf("unexpected error: %v", err)
}
if _, _, err := storage.Delete(ctx, pc.Name, nil); err == nil {