@@ -297,7 +297,7 @@ var _ = Describe("AppWrapper E2E Test", func() {
297297 Expect (err ).NotTo (HaveOccurred ())
298298 pass := false
299299 for true {
300- aw1 , err := context .karclient .ArbV1 ().AppWrappers (aw .Namespace ).Get (aw .Name , metav1.GetOptions {})
300+ aw1 , err := context .karclient .McadV1beta1 ().AppWrappers (aw .Namespace ).Get (context . ctx , aw .Name , metav1.GetOptions {})
301301 if err != nil {
302302 fmt .Fprint (GinkgoWriter , "Error getting status" )
303303 }
@@ -470,7 +470,7 @@ var _ = Describe("AppWrapper E2E Test", func() {
470470 // Make sure pods from AW aw-deployment-1-850-cpu have preempted
471471 var pass = false
472472 for true {
473- aw2Update , err := context .karclient .ArbV1 ().AppWrappers (aw2 .Namespace ).Get (aw2 .Name , metav1.GetOptions {})
473+ aw2Update , err := context .karclient .McadV1beta1 ().AppWrappers (aw2 .Namespace ).Get (context . ctx , aw2 .Name , metav1.GetOptions {})
474474 if err != nil {
475475 fmt .Fprintf (GinkgoWriter , "[e2e] MCAD Scheduling Fail Fast Preemption Test - Error getting AW update %v" , err )
476476 }
@@ -557,7 +557,7 @@ var _ = Describe("AppWrapper E2E Test", func() {
557557 err1 := waitAWPodsReady (context , aw )
558558 Expect (err1 ).NotTo (HaveOccurred (), "Expecting pods to be ready for app wrapper: aw-test-jobtimeout-with-comp-1" )
559559 time .Sleep (90 * time .Second )
560- aw1 , err := context .karclient .ArbV1 ().AppWrappers (aw .Namespace ).Get (aw .Name , metav1.GetOptions {})
560+ aw1 , err := context .karclient .McadV1beta1 ().AppWrappers (aw .Namespace ).Get (context . ctx , aw .Name , metav1.GetOptions {})
561561 Expect (err ).NotTo (HaveOccurred (), "Expecting no error when getting app wrapper status" )
562562 fmt .Fprintf (GinkgoWriter , "[e2e] status of app wrapper: %v.\n " , aw1 .Status )
563563 Expect (aw1 .Status .State ).To (Equal (arbv1 .AppWrapperStateFailed ), "Expecting a failed state" )
@@ -575,7 +575,7 @@ var _ = Describe("AppWrapper E2E Test", func() {
575575 err1 := waitAWPodsReady (context , aw )
576576 Expect (err1 ).NotTo (HaveOccurred ())
577577 time .Sleep (1 * time .Minute )
578- aw1 , err := context .karclient .ArbV1 ().AppWrappers (aw .Namespace ).Get (aw .Name , metav1.GetOptions {})
578+ aw1 , err := context .karclient .McadV1beta1 ().AppWrappers (aw .Namespace ).Get (context . ctx , aw .Name , metav1.GetOptions {})
579579 if err != nil {
580580 fmt .Fprintf (GinkgoWriter , "Error getting status, %v\n " , err )
581581 }
@@ -597,7 +597,7 @@ var _ = Describe("AppWrapper E2E Test", func() {
597597 err1 := waitAWPodsReady (context , aw )
598598 Expect (err1 ).NotTo (HaveOccurred (), "Expecting pods to be ready for app wrapper: 'aw-test-job-with-comp-ms-21'" )
599599 time .Sleep (1 * time .Minute )
600- aw1 , err := context .karclient .ArbV1 ().AppWrappers (aw .Namespace ).Get (aw .Name , metav1.GetOptions {})
600+ aw1 , err := context .karclient .McadV1beta1 ().AppWrappers (aw .Namespace ).Get (context . ctx , aw .Name , metav1.GetOptions {})
601601 Expect (err ).NotTo (HaveOccurred (), "No error is expected when getting status" )
602602 fmt .Fprintf (GinkgoWriter , "[e2e] MCAD Multi-Item Job Completion Test status of AW %v.\n " , aw1 .Status )
603603 Expect (aw1 .Status .State ).To (Equal (arbv1 .AppWrapperStateCompleted ), "Expecting a completed app wrapper status" )
@@ -655,7 +655,7 @@ var _ = Describe("AppWrapper E2E Test", func() {
655655 err1 := waitAWPodsReady (context , aw )
656656 Expect (err1 ).NotTo (HaveOccurred ())
657657 time .Sleep (1 * time .Minute )
658- aw1 , err := context .karclient .ArbV1 ().AppWrappers (aw .Namespace ).Get (aw .Name , metav1.GetOptions {})
658+ aw1 , err := context .karclient .McadV1beta1 ().AppWrappers (aw .Namespace ).Get (context . ctx , aw .Name , metav1.GetOptions {})
659659 if err != nil {
660660 fmt .Fprintf (GinkgoWriter , "Error getting status, %v" , err )
661661 }
@@ -704,7 +704,7 @@ var _ = Describe("AppWrapper E2E Test", func() {
704704 time .Sleep (30 * time .Second )
705705 err1 := waitAWPodsReady (context , aw )
706706 Expect (err1 ).NotTo (HaveOccurred (), "Expecting pods to be ready for app wrapper: aw-deployment-rhc" )
707- aw1 , err := context .karclient .ArbV1 ().AppWrappers (aw .Namespace ).Get (aw .Name , metav1.GetOptions {})
707+ aw1 , err := context .karclient .McadV1beta1 ().AppWrappers (aw .Namespace ).Get (context . ctx , aw .Name , metav1.GetOptions {})
708708 Expect (err ).NotTo (HaveOccurred (), "Expecting to get app wrapper status" )
709709 fmt .Fprintf (GinkgoWriter , "[e2e] status of AW %v.\n " , aw1 .Status .State )
710710 Expect (aw1 .Status .State ).To (Equal (arbv1 .AppWrapperStateRunningHoldCompletion ))
@@ -722,7 +722,7 @@ var _ = Describe("AppWrapper E2E Test", func() {
722722 time .Sleep (1 * time .Minute )
723723 err1 := waitAWPodsReady (context , aw )
724724 Expect (err1 ).NotTo (HaveOccurred ())
725- aw1 , err := context .karclient .ArbV1 ().AppWrappers (aw .Namespace ).Get (aw .Name , metav1.GetOptions {})
725+ aw1 , err := context .karclient .McadV1beta1 ().AppWrappers (aw .Namespace ).Get (context . ctx , aw .Name , metav1.GetOptions {})
726726 if err != nil {
727727 fmt .Fprintf (GinkgoWriter , "Error getting status, %v" , err )
728728 }
0 commit comments