Commit d8205661 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #49264 from zhangxiaoyu-zidif/add-test-for-pdb-describer

Automatic merge from submit-queue (batch tested with PRs 49533, 49264) Add test items for pdb describe **What this PR does / why we need it**: Add test items for pdb describe **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # NONE **Special notes for your reviewer**: ref: #49362 **Release note**: ```release-note NONE ```
parents cd44d1d1 1292827b
...@@ -832,7 +832,10 @@ func TestDescribePodDisruptionBudget(t *testing.T) { ...@@ -832,7 +832,10 @@ func TestDescribePodDisruptionBudget(t *testing.T) {
if err != nil { if err != nil {
t.Errorf("unexpected error: %v", err) t.Errorf("unexpected error: %v", err)
} }
if !strings.Contains(out, "pdb1") { if !strings.Contains(out, "pdb1") ||
!strings.Contains(out, "ns1") ||
!strings.Contains(out, "22") ||
!strings.Contains(out, "5") {
t.Errorf("unexpected out: %s", out) t.Errorf("unexpected out: %s", out)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment