@@ -22,7 +22,7 @@ import (
2222
2323 . "github.com/onsi/gomega"
2424 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 "
2626
2727 corev1 "k8s.io/api/core/v1"
2828 "k8s.io/apimachinery/pkg/api/resource"
@@ -60,18 +60,18 @@ func TestMNISTRayJobMCADRayCluster(t *testing.T) {
6060 test .T ().Logf ("Created ConfigMap %s/%s successfully" , mnist .Namespace , mnist .Name )
6161
6262 // RayCluster
63- rayCluster := & rayv1alpha1 .RayCluster {
63+ rayCluster := & rayv1 .RayCluster {
6464 TypeMeta : metav1.TypeMeta {
65- APIVersion : rayv1alpha1 .GroupVersion .String (),
65+ APIVersion : rayv1 .GroupVersion .String (),
6666 Kind : "RayCluster" ,
6767 },
6868 ObjectMeta : metav1.ObjectMeta {
6969 Name : "raycluster" ,
7070 Namespace : namespace .Name ,
7171 },
72- Spec : rayv1alpha1 .RayClusterSpec {
72+ Spec : rayv1 .RayClusterSpec {
7373 RayVersion : GetRayVersion (),
74- HeadGroupSpec : rayv1alpha1 .HeadGroupSpec {
74+ HeadGroupSpec : rayv1 .HeadGroupSpec {
7575 RayStartParams : map [string ]string {
7676 "dashboard-host" : "0.0.0.0" ,
7777 },
@@ -135,7 +135,7 @@ func TestMNISTRayJobMCADRayCluster(t *testing.T) {
135135 },
136136 },
137137 },
138- WorkerGroupSpecs : []rayv1alpha1 .WorkerGroupSpec {
138+ WorkerGroupSpecs : []rayv1 .WorkerGroupSpec {
139139 {
140140 Replicas : Ptr (int32 (1 )),
141141 MinReplicas : Ptr (int32 (1 )),
@@ -220,16 +220,16 @@ func TestMNISTRayJobMCADRayCluster(t *testing.T) {
220220 test .Eventually (AppWrapper (test , namespace , aw .Name ), TestTimeoutMedium ).
221221 Should (WithTransform (AppWrapperState , Equal (mcadv1beta1 .AppWrapperStateActive )))
222222
223- rayJob := & rayv1alpha1 .RayJob {
223+ rayJob := & rayv1 .RayJob {
224224 TypeMeta : metav1.TypeMeta {
225- APIVersion : rayv1alpha1 .GroupVersion .String (),
225+ APIVersion : rayv1 .GroupVersion .String (),
226226 Kind : "RayJob" ,
227227 },
228228 ObjectMeta : metav1.ObjectMeta {
229229 Name : "mnist" ,
230230 Namespace : namespace .Name ,
231231 },
232- Spec : rayv1alpha1 .RayJobSpec {
232+ Spec : rayv1 .RayJobSpec {
233233 Entrypoint : "python /home/ray/jobs/mnist.py" ,
234234 RuntimeEnv : base64 .StdEncoding .EncodeToString ([]byte (`
235235{
@@ -248,7 +248,7 @@ func TestMNISTRayJobMCADRayCluster(t *testing.T) {
248248 ShutdownAfterJobFinishes : false ,
249249 },
250250 }
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 {})
252252 test .Expect (err ).NotTo (HaveOccurred ())
253253 test .T ().Logf ("Created RayJob %s/%s successfully" , rayJob .Namespace , rayJob .Name )
254254
@@ -262,9 +262,9 @@ func TestMNISTRayJobMCADRayCluster(t *testing.T) {
262262
263263 test .T ().Logf ("Waiting for RayJob %s/%s to complete" , rayJob .Namespace , rayJob .Name )
264264 test .Eventually (RayJob (test , rayJob .Namespace , rayJob .Name ), TestTimeoutLong ).
265- Should (WithTransform (RayJobStatus , Satisfy (rayv1alpha1 .IsJobTerminal )))
265+ Should (WithTransform (RayJobStatus , Satisfy (rayv1 .IsJobTerminal )))
266266
267267 // Assert the Ray job has completed successfully
268268 test .Expect (GetRayJob (test , rayJob .Namespace , rayJob .Name )).
269- To (WithTransform (RayJobStatus , Equal (rayv1alpha1 .JobStatusSucceeded )))
269+ To (WithTransform (RayJobStatus , Equal (rayv1 .JobStatusSucceeded )))
270270}
0 commit comments