@@ -133,7 +133,7 @@ func (opt *Options) Run() error {
133133 tm := NewTestManager ()
134134 defer tm .GenerateReport (opt )
135135
136- tcName := "verify the cluster can be connected "
136+ tcName := "verify the cluster readiness and stability "
137137 tc := NewTestCase (tcName )
138138 cfg , err := e2e .LoadConfig ()
139139 if err != nil {
@@ -481,18 +481,18 @@ func checkClusterVersionStable(dc dynamic.Interface) (int, error) {
481481 cv := objx .Map (obj .UnstructuredContent ())
482482
483483 if cond := condition (cv , "Available" ); cond .Get ("status" ).String () != "True" {
484- err := fmt .Errorf ("clusterversion not available" )
485- logrus .WithError (err ). Errorf ( "ClusterVersion Available=%s" , getInfoFromCondition ( cond ))
484+ err := fmt .Errorf ("clusterversion not available: %s" , getInfoFromCondition ( cond ) )
485+ logrus .WithError (err )
486486 return 1 , err
487487 }
488488 if cond := condition (cv , "Failing" ); cond .Get ("status" ).String () != "False" {
489- err := fmt .Errorf ("clusterversion is failing" )
490- logrus .WithError (err ). Errorf ( "ClusterVersion Failing=%s" , getInfoFromCondition ( cond ))
489+ err := fmt .Errorf ("clusterversion is failing: %s" , getInfoFromCondition ( cond ) )
490+ logrus .WithError (err )
491491 return 1 , err
492492 }
493493 if cond := condition (cv , "Progressing" ); cond .Get ("status" ).String () != "False" {
494- err := fmt .Errorf ("clusterversion is progressing" )
495- logrus .WithError (err ). Errorf ( "ClusterVersion Progressing=%s" , getInfoFromCondition ( cond ))
494+ err := fmt .Errorf ("clusterversion is progressing: %s" , getInfoFromCondition ( cond ) )
495+ logrus .WithError (err )
496496 return 1 , err
497497 }
498498
0 commit comments