@@ -108,7 +108,7 @@ func TestValidatePhase(t *testing.T) {
108108 }
109109}
110110
111- func TestValidatePreDeployment (t * testing.T ) {
111+ func TestValidateReadiness (t * testing.T ) {
112112 // Skip if running with -short flag (for fast unit tests)
113113 if testing .Short () {
114114 t .Skip ("Skipping integration test in short mode" )
@@ -136,7 +136,7 @@ func TestValidatePreDeployment(t *testing.T) {
136136 {Name : "OS.release.ID" , Value : "ubuntu" },
137137 },
138138 validationConfig : & recipe.ValidationConfig {
139- PreDeployment : & recipe.ValidationPhase {
139+ Readiness : & recipe.ValidationPhase {
140140 Checks : []string {"gpu-hardware-detection" , "kernel-parameters" },
141141 },
142142 },
@@ -445,8 +445,8 @@ func TestValidateAll_PhaseOrder(t *testing.T) {
445445 }
446446
447447 // Verify readiness has constraint results
448- preDeployPhase := result .Phases ["readiness" ]
449- if len (preDeployPhase .Constraints ) == 0 {
448+ readinessPhase := result .Phases ["readiness" ]
449+ if len (readinessPhase .Constraints ) == 0 {
450450 t .Error ("readiness phase should have constraint results" )
451451 }
452452
@@ -540,7 +540,7 @@ func createTestRecipeWithValidation() *recipe.RecipeResult {
540540 {Name : "OS.release.ID" , Value : "ubuntu" },
541541 },
542542 Validation : & recipe.ValidationConfig {
543- PreDeployment : & recipe.ValidationPhase {
543+ Readiness : & recipe.ValidationPhase {
544544 Checks : []string {"gpu-hardware-detection" , "kernel-parameters" , "os-prerequisites" },
545545 },
546546 Deployment : & recipe.ValidationPhase {
@@ -1018,7 +1018,7 @@ func TestValidateRecipeRegistrations(t *testing.T) {
10181018 name : "readiness - no constraint validators to check" ,
10191019 recipe : & recipe.RecipeResult {
10201020 Validation : & recipe.ValidationConfig {
1021- PreDeployment : & recipe.ValidationPhase {
1021+ Readiness : & recipe.ValidationPhase {
10221022 Checks : []string {"gpu-hardware-detection" },
10231023 },
10241024 },
0 commit comments