@@ -297,7 +297,7 @@ var _ = Describe("AppWrapper E2E Test", func() {
297
297
Expect (err ).NotTo (HaveOccurred ())
298
298
pass := false
299
299
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 {})
301
301
if err != nil {
302
302
fmt .Fprint (GinkgoWriter , "Error getting status" )
303
303
}
@@ -470,7 +470,7 @@ var _ = Describe("AppWrapper E2E Test", func() {
470
470
// Make sure pods from AW aw-deployment-1-850-cpu have preempted
471
471
var pass = false
472
472
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 {})
474
474
if err != nil {
475
475
fmt .Fprintf (GinkgoWriter , "[e2e] MCAD Scheduling Fail Fast Preemption Test - Error getting AW update %v" , err )
476
476
}
@@ -557,7 +557,7 @@ var _ = Describe("AppWrapper E2E Test", func() {
557
557
err1 := waitAWPodsReady (context , aw )
558
558
Expect (err1 ).NotTo (HaveOccurred (), "Expecting pods to be ready for app wrapper: aw-test-jobtimeout-with-comp-1" )
559
559
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 {})
561
561
Expect (err ).NotTo (HaveOccurred (), "Expecting no error when getting app wrapper status" )
562
562
fmt .Fprintf (GinkgoWriter , "[e2e] status of app wrapper: %v.\n " , aw1 .Status )
563
563
Expect (aw1 .Status .State ).To (Equal (arbv1 .AppWrapperStateFailed ), "Expecting a failed state" )
@@ -575,7 +575,7 @@ var _ = Describe("AppWrapper E2E Test", func() {
575
575
err1 := waitAWPodsReady (context , aw )
576
576
Expect (err1 ).NotTo (HaveOccurred ())
577
577
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 {})
579
579
if err != nil {
580
580
fmt .Fprintf (GinkgoWriter , "Error getting status, %v\n " , err )
581
581
}
@@ -597,7 +597,7 @@ var _ = Describe("AppWrapper E2E Test", func() {
597
597
err1 := waitAWPodsReady (context , aw )
598
598
Expect (err1 ).NotTo (HaveOccurred (), "Expecting pods to be ready for app wrapper: 'aw-test-job-with-comp-ms-21'" )
599
599
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 {})
601
601
Expect (err ).NotTo (HaveOccurred (), "No error is expected when getting status" )
602
602
fmt .Fprintf (GinkgoWriter , "[e2e] MCAD Multi-Item Job Completion Test status of AW %v.\n " , aw1 .Status )
603
603
Expect (aw1 .Status .State ).To (Equal (arbv1 .AppWrapperStateCompleted ), "Expecting a completed app wrapper status" )
@@ -655,7 +655,7 @@ var _ = Describe("AppWrapper E2E Test", func() {
655
655
err1 := waitAWPodsReady (context , aw )
656
656
Expect (err1 ).NotTo (HaveOccurred ())
657
657
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 {})
659
659
if err != nil {
660
660
fmt .Fprintf (GinkgoWriter , "Error getting status, %v" , err )
661
661
}
@@ -704,7 +704,7 @@ var _ = Describe("AppWrapper E2E Test", func() {
704
704
time .Sleep (30 * time .Second )
705
705
err1 := waitAWPodsReady (context , aw )
706
706
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 {})
708
708
Expect (err ).NotTo (HaveOccurred (), "Expecting to get app wrapper status" )
709
709
fmt .Fprintf (GinkgoWriter , "[e2e] status of AW %v.\n " , aw1 .Status .State )
710
710
Expect (aw1 .Status .State ).To (Equal (arbv1 .AppWrapperStateRunningHoldCompletion ))
@@ -722,7 +722,7 @@ var _ = Describe("AppWrapper E2E Test", func() {
722
722
time .Sleep (1 * time .Minute )
723
723
err1 := waitAWPodsReady (context , aw )
724
724
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 {})
726
726
if err != nil {
727
727
fmt .Fprintf (GinkgoWriter , "Error getting status, %v" , err )
728
728
}
0 commit comments