Skip to content

Commit 93dc9ad

Browse files
Merge pull request #30492 from jianlinliu/TRT-2275-fix-2
TRT-2275: minor update for e2e_analysis test
2 parents 74c8e4a + a3d99c8 commit 93dc9ad

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pkg/e2eanalysis/e2e_analysis.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)