mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
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 ```
This commit is contained in:
commit
d8205661b7
@ -832,7 +832,10 @@ func TestDescribePodDisruptionBudget(t *testing.T) {
|
||||
if err != nil {
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user