File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ metadata:
6
6
name : unit-test-cluster
7
7
namespace : ns
8
8
spec :
9
- priority : 5
9
+ priority : 9
10
10
resources :
11
11
GenericItems :
12
12
- custompodresources :
@@ -109,7 +109,7 @@ spec:
109
109
nvidia.com/gpu : 0
110
110
imagePullSecrets :
111
111
- name : unit-test-pull-secret
112
- priorityClassName : default-priority
112
+ priorityClassName : default
113
113
rayVersion : 2.1.0
114
114
workerGroupSpecs :
115
115
- groupName : small-group-unit-test-cluster
@@ -177,7 +177,7 @@ spec:
177
177
do echo waiting for myservice; sleep 2; done
178
178
image : busybox:1.28
179
179
name : init-myservice
180
- priorityClassName : default-priority
180
+ priorityClassName : default
181
181
replicas : 1
182
182
- generictemplate :
183
183
apiVersion : route.openshift.io/v1
Original file line number Diff line number Diff line change @@ -256,6 +256,10 @@ def test_cluster_up_down(mocker):
256
256
"kubernetes.client.CustomObjectsApi.delete_namespaced_custom_object" ,
257
257
side_effect = arg_check_del_effect ,
258
258
)
259
+ mocker .patch (
260
+ "kubernetes.client.CustomObjectsApi.list_cluster_custom_object" ,
261
+ return_value = {"items" : []},
262
+ )
259
263
cluster = test_cluster_creation ()
260
264
cluster .up ()
261
265
cluster .down ()
@@ -2215,7 +2219,7 @@ def test_export_env():
2215
2219
2216
2220
# Make sure to always keep this function last
2217
2221
def test_cleanup ():
2218
- os .remove ("unit-test-cluster.yaml" )
2222
+ # os.remove("unit-test-cluster.yaml")
2219
2223
os .remove ("unit-test-default-cluster.yaml" )
2220
2224
os .remove ("test.yaml" )
2221
2225
os .remove ("raytest2.yaml" )
You can’t perform that action at this time.
0 commit comments