mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-11-28 12:21:12 +00:00
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. refactor pd.go for future tests **What this PR does / why we need it**: Refactored _test/e2e/storage/pd.go_ so that it will be easier to add new tests, which I plan on doing to address issue 52676 1. Condenses 8 `It` blocks into 3 table driven tests. 2. Adds several `By` descriptions and `Logf` messages. 3. provides more consistent formatting and messages. **Special notes for your reviewer**: The diff is large but mostly I've not altered any test. The one semantic change I made was to remove the call to verify a write to a PD when, in fact, nothing had been written yet. This was essentially a no-op since the verify code returned immediately if the passed-in map was empty (which it was since nothing had been written). ```release-note NONE ``` cc @jingxu97 @copejon