File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ metadata:
5
5
labels:
6
6
controller-tools.k8s.io: '1.0'
7
7
kueue.x-k8s.io/queue-name: local-queue-default
8
+ testlabel: test
9
+ testlabel2: test
8
10
name: unit-test-cluster-ray
9
11
namespace: ns
10
12
spec:
Original file line number Diff line number Diff line change @@ -324,6 +324,7 @@ def test_cluster_creation_no_mcad(mocker):
324
324
config .name = "unit-test-cluster-ray"
325
325
config .write_to_file = True
326
326
config .mcad = False
327
+ config .user_labels = {"testlabel" : "test" , "testlabel2" : "test" }
327
328
cluster = Cluster (config )
328
329
329
330
assert cluster .app_wrapper_yaml == f"{ aw_dir } unit-test-cluster-ray.yaml"
@@ -348,6 +349,7 @@ def test_cluster_creation_no_mcad_local_queue(mocker):
348
349
config .mcad = False
349
350
config .write_to_file = True
350
351
config .local_queue = "local-queue-default"
352
+ config .user_labels = {"testlabel" : "test" , "testlabel2" : "test" }
351
353
cluster = Cluster (config )
352
354
assert cluster .app_wrapper_yaml == f"{ aw_dir } unit-test-cluster-ray.yaml"
353
355
assert cluster .app_wrapper_name == "unit-test-cluster-ray"
@@ -373,6 +375,7 @@ def test_cluster_creation_no_mcad_local_queue(mocker):
373
375
write_to_file = True ,
374
376
mcad = False ,
375
377
local_queue = "local-queue-default" ,
378
+ user_labels = {"testlabel" : "test" , "testlabel2" : "test" },
376
379
)
377
380
cluster = Cluster (config )
378
381
assert cluster .app_wrapper_yaml == f"{ aw_dir } unit-test-cluster-ray.yaml"
You can’t perform that action at this time.
0 commit comments