@@ -22,7 +22,7 @@ import (
22
22
23
23
. "github.com/onsi/gomega"
24
24
mcadv1beta1 "github.com/project-codeflare/multi-cluster-app-dispatcher/pkg/apis/controller/v1beta1"
25
- rayv1alpha1 "github.com/ray-project/kuberay/ray-operator/apis/ray/v1alpha1 "
25
+ rayv1 "github.com/ray-project/kuberay/ray-operator/apis/ray/v1 "
26
26
27
27
corev1 "k8s.io/api/core/v1"
28
28
"k8s.io/apimachinery/pkg/api/resource"
@@ -60,18 +60,18 @@ func TestMNISTRayJobMCADRayCluster(t *testing.T) {
60
60
test .T ().Logf ("Created ConfigMap %s/%s successfully" , mnist .Namespace , mnist .Name )
61
61
62
62
// RayCluster
63
- rayCluster := & rayv1alpha1 .RayCluster {
63
+ rayCluster := & rayv1 .RayCluster {
64
64
TypeMeta : metav1.TypeMeta {
65
- APIVersion : rayv1alpha1 .GroupVersion .String (),
65
+ APIVersion : rayv1 .GroupVersion .String (),
66
66
Kind : "RayCluster" ,
67
67
},
68
68
ObjectMeta : metav1.ObjectMeta {
69
69
Name : "raycluster" ,
70
70
Namespace : namespace .Name ,
71
71
},
72
- Spec : rayv1alpha1 .RayClusterSpec {
72
+ Spec : rayv1 .RayClusterSpec {
73
73
RayVersion : GetRayVersion (),
74
- HeadGroupSpec : rayv1alpha1 .HeadGroupSpec {
74
+ HeadGroupSpec : rayv1 .HeadGroupSpec {
75
75
RayStartParams : map [string ]string {
76
76
"dashboard-host" : "0.0.0.0" ,
77
77
},
@@ -135,7 +135,7 @@ func TestMNISTRayJobMCADRayCluster(t *testing.T) {
135
135
},
136
136
},
137
137
},
138
- WorkerGroupSpecs : []rayv1alpha1 .WorkerGroupSpec {
138
+ WorkerGroupSpecs : []rayv1 .WorkerGroupSpec {
139
139
{
140
140
Replicas : Ptr (int32 (1 )),
141
141
MinReplicas : Ptr (int32 (1 )),
@@ -220,16 +220,16 @@ func TestMNISTRayJobMCADRayCluster(t *testing.T) {
220
220
test .Eventually (AppWrapper (test , namespace , aw .Name ), TestTimeoutMedium ).
221
221
Should (WithTransform (AppWrapperState , Equal (mcadv1beta1 .AppWrapperStateActive )))
222
222
223
- rayJob := & rayv1alpha1 .RayJob {
223
+ rayJob := & rayv1 .RayJob {
224
224
TypeMeta : metav1.TypeMeta {
225
- APIVersion : rayv1alpha1 .GroupVersion .String (),
225
+ APIVersion : rayv1 .GroupVersion .String (),
226
226
Kind : "RayJob" ,
227
227
},
228
228
ObjectMeta : metav1.ObjectMeta {
229
229
Name : "mnist" ,
230
230
Namespace : namespace .Name ,
231
231
},
232
- Spec : rayv1alpha1 .RayJobSpec {
232
+ Spec : rayv1 .RayJobSpec {
233
233
Entrypoint : "python /home/ray/jobs/mnist.py" ,
234
234
RuntimeEnv : base64 .StdEncoding .EncodeToString ([]byte (`
235
235
{
@@ -248,7 +248,7 @@ func TestMNISTRayJobMCADRayCluster(t *testing.T) {
248
248
ShutdownAfterJobFinishes : false ,
249
249
},
250
250
}
251
- rayJob , err = test .Client ().Ray ().RayV1alpha1 ().RayJobs (namespace .Name ).Create (test .Ctx (), rayJob , metav1.CreateOptions {})
251
+ rayJob , err = test .Client ().Ray ().RayV1 ().RayJobs (namespace .Name ).Create (test .Ctx (), rayJob , metav1.CreateOptions {})
252
252
test .Expect (err ).NotTo (HaveOccurred ())
253
253
test .T ().Logf ("Created RayJob %s/%s successfully" , rayJob .Namespace , rayJob .Name )
254
254
@@ -262,9 +262,9 @@ func TestMNISTRayJobMCADRayCluster(t *testing.T) {
262
262
263
263
test .T ().Logf ("Waiting for RayJob %s/%s to complete" , rayJob .Namespace , rayJob .Name )
264
264
test .Eventually (RayJob (test , rayJob .Namespace , rayJob .Name ), TestTimeoutLong ).
265
- Should (WithTransform (RayJobStatus , Satisfy (rayv1alpha1 .IsJobTerminal )))
265
+ Should (WithTransform (RayJobStatus , Satisfy (rayv1 .IsJobTerminal )))
266
266
267
267
// Assert the Ray job has completed successfully
268
268
test .Expect (GetRayJob (test , rayJob .Namespace , rayJob .Name )).
269
- To (WithTransform (RayJobStatus , Equal (rayv1alpha1 .JobStatusSucceeded )))
269
+ To (WithTransform (RayJobStatus , Equal (rayv1 .JobStatusSucceeded )))
270
270
}
0 commit comments