Skip to content

Commit 405af5f

Browse files
committed
test: update unit tests after resource creation refactor
Signed-off-by: Bobbins228 <[email protected]>
1 parent e36667c commit 405af5f

7 files changed

+62
-202
lines changed

tests/test-case-custom-image.yaml

+1-7
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ spec:
2929
block: 'true'
3030
dashboard-host: 0.0.0.0
3131
num-gpus: '0'
32-
resources: '"{}"'
3332
serviceType: ClusterIP
3433
template:
3534
spec:
@@ -96,17 +95,12 @@ spec:
9695
rayStartParams:
9796
block: 'true'
9897
num-gpus: '7'
99-
resources: '"{}"'
10098
replicas: 2
10199
template:
102-
metadata:
103-
annotations:
104-
key: value
105-
labels:
106-
key: value
107100
spec:
108101
containers:
109102
- image: quay.io/project-codeflare/ray:2.20.0-py39-cu118
103+
imagePullPolicy: Always
110104
lifecycle:
111105
preStop:
112106
exec:

tests/test-case-no-kueue-no-aw.yaml

+1-7
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ spec:
2626
block: 'true'
2727
dashboard-host: 0.0.0.0
2828
num-gpus: '0'
29-
resources: '"{}"'
3029
serviceType: ClusterIP
3130
template:
3231
spec:
@@ -93,17 +92,12 @@ spec:
9392
rayStartParams:
9493
block: 'true'
9594
num-gpus: '7'
96-
resources: '"{}"'
9795
replicas: 2
9896
template:
99-
metadata:
100-
annotations:
101-
key: value
102-
labels:
103-
key: value
10497
spec:
10598
containers:
10699
- image: quay.io/rhoai/ray:2.23.0-py39-cu121
100+
imagePullPolicy: Always
107101
lifecycle:
108102
preStop:
109103
exec:

tests/test-case-no-mcad.yamls

+1-7
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ spec:
2929
block: 'true'
3030
dashboard-host: 0.0.0.0
3131
num-gpus: '0'
32-
resources: '"{}"'
3332
serviceType: ClusterIP
3433
template:
3534
spec:
@@ -96,17 +95,12 @@ spec:
9695
rayStartParams:
9796
block: 'true'
9897
num-gpus: '7'
99-
resources: '"{}"'
10098
replicas: 2
10199
template:
102-
metadata:
103-
annotations:
104-
key: value
105-
labels:
106-
key: value
107100
spec:
108101
containers:
109102
- image: quay.io/rhoai/ray:2.23.0-py39-cu121
103+
imagePullPolicy: Always
110104
lifecycle:
111105
preStop:
112106
exec:

tests/test-case.yaml

+1-7
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ spec:
3434
block: 'true'
3535
dashboard-host: 0.0.0.0
3636
num-gpus: '0'
37-
resources: '"{}"'
3837
serviceType: ClusterIP
3938
template:
4039
spec:
@@ -101,17 +100,12 @@ spec:
101100
rayStartParams:
102101
block: 'true'
103102
num-gpus: '7'
104-
resources: '"{}"'
105103
replicas: 2
106104
template:
107-
metadata:
108-
annotations:
109-
key: value
110-
labels:
111-
key: value
112105
spec:
113106
containers:
114107
- image: quay.io/rhoai/ray:2.23.0-py39-cu121
108+
imagePullPolicy: Always
115109
lifecycle:
116110
preStop:
117111
exec:

tests/test-default-appwrapper.yaml

+1-9
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,9 @@ spec:
3434
block: 'true'
3535
dashboard-host: 0.0.0.0
3636
num-gpus: '0'
37-
resources: '"{}"'
3837
serviceType: ClusterIP
3938
template:
4039
spec:
41-
imagePullSecrets: []
4240
containers:
4341
- image: quay.io/rhoai/ray:2.23.0-py39-cu121
4442
imagePullPolicy: Always
@@ -100,18 +98,12 @@ spec:
10098
rayStartParams:
10199
block: 'true'
102100
num-gpus: '0'
103-
resources: '"{}"'
104101
replicas: 1
105102
template:
106-
metadata:
107-
annotations:
108-
key: value
109-
labels:
110-
key: value
111103
spec:
112-
imagePullSecrets: []
113104
containers:
114105
- image: quay.io/rhoai/ray:2.23.0-py39-cu121
106+
imagePullPolicy: Always
115107
lifecycle:
116108
preStop:
117109
exec:

0 commit comments

Comments
 (0)