@@ -30,16 +30,15 @@ import (
3030
3131type ClusterTrainingRuntime struct {
3232 Name string
33- ODHImage string
3433 RHOAIImage string
3534}
3635
3736var expectedRuntimes = []ClusterTrainingRuntime {
38- {Name : "torch-distributed" , ODHImage : "training:py312-cuda128-torch280" , RHOAIImage : "odh-training-cuda128-torch28-py312-rhel9" },
39- {Name : "torch-distributed-rocm" , ODHImage : "training:py312-rocm64-torch280" , RHOAIImage : "odh-training-rocm64-torch28-py312-rhel9" },
40- {Name : "torch-distributed-th03-cuda128-torch28-py312" , ODHImage : "training:py312-cuda128-torch280" , RHOAIImage : "odh-training-cuda128-torch28-py312-rhel9" },
41- {Name : "training-hub" , ODHImage : "training:py312-cuda128-torch280" , RHOAIImage : "odh-training-cuda128-torch28-py312-rhel9" },
42- {Name : "training-hub03-cuda128-torch28-py312" , ODHImage : "training:py312-cuda128-torch280" , RHOAIImage : "odh-training-cuda128-torch28-py312-rhel9" },
37+ {Name : "torch-distributed" , RHOAIImage : "odh-training-cuda128-torch28-py312-rhel9" },
38+ {Name : "torch-distributed-rocm" , RHOAIImage : "odh-training-rocm64-torch28-py312-rhel9" },
39+ {Name : "torch-distributed-th03-cuda128-torch28-py312" , RHOAIImage : "odh-training-cuda128-torch28-py312-rhel9" },
40+ {Name : "training-hub" , RHOAIImage : "odh-training-cuda128-torch28-py312-rhel9" },
41+ {Name : "training-hub03-cuda128-torch28-py312" , RHOAIImage : "odh-training-cuda128-torch28-py312-rhel9" },
4342}
4443
4544// defaultClusterTrainingRuntime is used across integration tests
@@ -49,10 +48,8 @@ func TestDefaultClusterTrainingRuntimes(t *testing.T) {
4948 Tags (t , Smoke )
5049 test := With (t )
5150
52- // Determine registry based on ODH namespace
53- namespace , err := GetApplicationsNamespaceFromDSCI (test , DefaultDSCIName )
54- test .Expect (err ).NotTo (HaveOccurred ())
55- registryName := GetExpectedRegistry (test , namespace )
51+ // Determine registry based on cluster environment
52+ registryName := GetExpectedRegistry (test )
5653
5754 // Build a map of expected runtimes for quick lookup
5855 expectedRuntimeMap := make (map [string ]ClusterTrainingRuntime )
@@ -101,16 +98,7 @@ func TestDefaultClusterTrainingRuntimes(t *testing.T) {
10198 test .T ().Logf ("Image referred in ClusterTrainingRuntime is %s" , foundImage )
10299
103100 // Verify image based on environment
104- var expectedImage string
105- switch registryName {
106- case "registry.redhat.io" :
107- expectedImage = registryName + "/rhoai/" + expectedRuntime .RHOAIImage
108- case "quay.io" :
109- expectedImage = registryName + "/modh/" + expectedRuntime .ODHImage
110- default :
111- test .T ().Fatalf ("Unexpected registry: %s" , registryName )
112- }
113-
101+ expectedImage := registryName + "/rhoai/" + expectedRuntime .RHOAIImage
114102 test .Expect (foundImage ).To (ContainSubstring (expectedImage ),
115103 "Image %s should contain %s" , foundImage , expectedImage )
116104 test .T ().Logf ("ClusterTrainingRuntime '%s' uses expected image: %s" , expectedRuntime .Name , expectedImage )
0 commit comments