@@ -483,7 +483,7 @@ func TestPreFilterPlugin(t *testing.T) {
483
483
// Create the master and the scheduler with the test plugin set.
484
484
context := initTestSchedulerForFrameworkTest (t , initTestMaster (t , "prefilter-plugin" , nil ), 2 ,
485
485
scheduler .WithFrameworkPlugins (plugins ),
486
- scheduler .WithFrameworkDefaultRegistry (registry ))
486
+ scheduler .WithFrameworkInTreeRegistry (registry ))
487
487
defer cleanupTest (t , context )
488
488
489
489
tests := []struct {
@@ -554,7 +554,7 @@ func TestScorePlugin(t *testing.T) {
554
554
555
555
context := initTestSchedulerForFrameworkTest (t , initTestMaster (t , "score-plugin" , nil ), 10 ,
556
556
scheduler .WithFrameworkPlugins (plugins ),
557
- scheduler .WithFrameworkDefaultRegistry (registry ))
557
+ scheduler .WithFrameworkInTreeRegistry (registry ))
558
558
defer cleanupTest (t , context )
559
559
560
560
for i , fail := range []bool {false , true } {
@@ -612,7 +612,7 @@ func TestNormalizeScorePlugin(t *testing.T) {
612
612
}
613
613
context := initTestSchedulerForFrameworkTest (t , initTestMaster (t , "score-plugin" , nil ), 10 ,
614
614
scheduler .WithFrameworkPlugins (plugins ),
615
- scheduler .WithFrameworkDefaultRegistry (registry ))
615
+ scheduler .WithFrameworkInTreeRegistry (registry ))
616
616
617
617
defer cleanupTest (t , context )
618
618
@@ -657,7 +657,7 @@ func TestReservePlugin(t *testing.T) {
657
657
// Create the master and the scheduler with the test plugin set.
658
658
context := initTestSchedulerForFrameworkTest (t , initTestMaster (t , "reserve-plugin" , nil ), 2 ,
659
659
scheduler .WithFrameworkPlugins (plugins ),
660
- scheduler .WithFrameworkDefaultRegistry (registry ))
660
+ scheduler .WithFrameworkInTreeRegistry (registry ))
661
661
defer cleanupTest (t , context )
662
662
663
663
for _ , fail := range []bool {false , true } {
@@ -709,7 +709,7 @@ func TestPrebindPlugin(t *testing.T) {
709
709
// Create the master and the scheduler with the test plugin set.
710
710
context := initTestSchedulerForFrameworkTest (t , initTestMaster (t , "prebind-plugin" , nil ), 2 ,
711
711
scheduler .WithFrameworkPlugins (plugins ),
712
- scheduler .WithFrameworkDefaultRegistry (registry ))
712
+ scheduler .WithFrameworkInTreeRegistry (registry ))
713
713
defer cleanupTest (t , context )
714
714
715
715
tests := []struct {
@@ -792,7 +792,7 @@ func TestUnreservePlugin(t *testing.T) {
792
792
// Create the master and the scheduler with the test plugin set.
793
793
context := initTestSchedulerForFrameworkTest (t , initTestMaster (t , "unreserve-plugin" , nil ), 2 ,
794
794
scheduler .WithFrameworkPlugins (plugins ),
795
- scheduler .WithFrameworkDefaultRegistry (registry ))
795
+ scheduler .WithFrameworkInTreeRegistry (registry ))
796
796
defer cleanupTest (t , context )
797
797
798
798
tests := []struct {
@@ -882,7 +882,7 @@ func TestBindPlugin(t *testing.T) {
882
882
// Create the master and the scheduler with the test plugin set.
883
883
context := initTestSchedulerWithOptions (t , testContext , false , nil , time .Second ,
884
884
scheduler .WithFrameworkPlugins (plugins ),
885
- scheduler .WithFrameworkDefaultRegistry (registry ),
885
+ scheduler .WithFrameworkInTreeRegistry (registry ),
886
886
scheduler .WithFrameworkConfigProducerRegistry (nil ))
887
887
defer cleanupTest (t , context )
888
888
@@ -1043,7 +1043,7 @@ func TestPostBindPlugin(t *testing.T) {
1043
1043
// Create the master and the scheduler with the test plugin set.
1044
1044
context := initTestSchedulerForFrameworkTest (t , initTestMaster (t , "postbind-plugin" , nil ), 2 ,
1045
1045
scheduler .WithFrameworkPlugins (plugins ),
1046
- scheduler .WithFrameworkDefaultRegistry (registry ))
1046
+ scheduler .WithFrameworkInTreeRegistry (registry ))
1047
1047
defer cleanupTest (t , context )
1048
1048
1049
1049
tests := []struct {
@@ -1099,7 +1099,7 @@ func TestPermitPlugin(t *testing.T) {
1099
1099
// Create the master and the scheduler with the test plugin set.
1100
1100
context := initTestSchedulerForFrameworkTest (t , initTestMaster (t , "permit-plugin" , nil ), 2 ,
1101
1101
scheduler .WithFrameworkPlugins (plugins ),
1102
- scheduler .WithFrameworkDefaultRegistry (registry ))
1102
+ scheduler .WithFrameworkInTreeRegistry (registry ))
1103
1103
defer cleanupTest (t , context )
1104
1104
1105
1105
tests := []struct {
@@ -1187,7 +1187,7 @@ func TestMultiplePermitPlugins(t *testing.T) {
1187
1187
// Create the master and the scheduler with the test plugin set.
1188
1188
context := initTestSchedulerForFrameworkTest (t , initTestMaster (t , "multi-permit-plugin" , nil ), 2 ,
1189
1189
scheduler .WithFrameworkPlugins (plugins ),
1190
- scheduler .WithFrameworkDefaultRegistry (registry ))
1190
+ scheduler .WithFrameworkInTreeRegistry (registry ))
1191
1191
defer cleanupTest (t , context )
1192
1192
1193
1193
// Both permit plugins will return Wait for permitting
@@ -1242,7 +1242,7 @@ func TestPermitPluginsCancelled(t *testing.T) {
1242
1242
// Create the master and the scheduler with the test plugin set.
1243
1243
context := initTestSchedulerForFrameworkTest (t , initTestMaster (t , "permit-plugins" , nil ), 2 ,
1244
1244
scheduler .WithFrameworkPlugins (plugins ),
1245
- scheduler .WithFrameworkDefaultRegistry (registry ))
1245
+ scheduler .WithFrameworkInTreeRegistry (registry ))
1246
1246
defer cleanupTest (t , context )
1247
1247
1248
1248
// Both permit plugins will return Wait for permitting
@@ -1283,7 +1283,7 @@ func TestCoSchedulingWithPermitPlugin(t *testing.T) {
1283
1283
// Create the master and the scheduler with the test plugin set.
1284
1284
context := initTestSchedulerForFrameworkTest (t , initTestMaster (t , "permit-plugin" , nil ), 2 ,
1285
1285
scheduler .WithFrameworkPlugins (plugins ),
1286
- scheduler .WithFrameworkDefaultRegistry (registry ))
1286
+ scheduler .WithFrameworkInTreeRegistry (registry ))
1287
1287
defer cleanupTest (t , context )
1288
1288
1289
1289
tests := []struct {
@@ -1364,7 +1364,7 @@ func TestFilterPlugin(t *testing.T) {
1364
1364
// Create the master and the scheduler with the test plugin set.
1365
1365
context := initTestSchedulerForFrameworkTest (t , initTestMaster (t , "filter-plugin" , nil ), 2 ,
1366
1366
scheduler .WithFrameworkPlugins (plugins ),
1367
- scheduler .WithFrameworkDefaultRegistry (registry ))
1367
+ scheduler .WithFrameworkInTreeRegistry (registry ))
1368
1368
defer cleanupTest (t , context )
1369
1369
1370
1370
for _ , fail := range []bool {false , true } {
@@ -1415,7 +1415,7 @@ func TestPostFilterPlugin(t *testing.T) {
1415
1415
// Create the master and the scheduler with the test plugin set.
1416
1416
context := initTestSchedulerForFrameworkTest (t , initTestMaster (t , "post-filter-plugin" , nil ), 2 ,
1417
1417
scheduler .WithFrameworkPlugins (plugins ),
1418
- scheduler .WithFrameworkDefaultRegistry (registry ))
1418
+ scheduler .WithFrameworkInTreeRegistry (registry ))
1419
1419
defer cleanupTest (t , context )
1420
1420
1421
1421
for _ , fail := range []bool {false , true } {
@@ -1460,7 +1460,7 @@ func TestPreemptWithPermitPlugin(t *testing.T) {
1460
1460
// Create the master and the scheduler with the test plugin set.
1461
1461
context := initTestSchedulerForFrameworkTest (t , initTestMaster (t , "preempt-with-permit-plugin" , nil ), 0 ,
1462
1462
scheduler .WithFrameworkPlugins (plugins ),
1463
- scheduler .WithFrameworkDefaultRegistry (registry ))
1463
+ scheduler .WithFrameworkInTreeRegistry (registry ))
1464
1464
defer cleanupTest (t , context )
1465
1465
1466
1466
// Add one node.
0 commit comments