-
Notifications
You must be signed in to change notification settings - Fork 28.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-49381][K8S][TESTS] Fix SPARK-41388
test case to assert the result
#47865
Conversation
@@ -853,7 +853,7 @@ class ExecutorPodsAllocatorSuite extends SparkFunSuite with BeforeAndAfter { | |||
pvc2.getMetadata.setCreationTimestamp(now.toString) | |||
|
|||
when(persistentVolumeClaimList.getItems).thenReturn(Seq(pvc1, pvc2).asJava) | |||
podsAllocatorUnderTest invokePrivate getReusablePVCs("appId", Seq("pvc-1")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously, we only invoke the target method and didn't check the result.
All tests passed. |
val pvc1 = persistentVolumeClaim("pvc-0", "gp2", "200Gi") | ||
val pvc2 = persistentVolumeClaim("pvc-1", "gp2", "200Gi") | ||
val pvc1 = persistentVolumeClaim("pvc-1", "gp2", "200Gi") | ||
val pvc2 = persistentVolumeClaim("pvc-2", "gp2", "200Gi") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PVC names are revised to match with the variable names.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Thank you, @HyukjinKwon and @yaooqinn . Merged to master/3.5/3.4. |
…esult ### What changes were proposed in this pull request? This PR aims to fix a test case of SPARK-41388 by adding a missed assert. ### Why are the changes needed? To check the result correctly. ### Does this PR introduce _any_ user-facing change? No, this is a test case change. ### How was this patch tested? Pass the CIs with newly added assertion. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #47865 from dongjoon-hyun/SPARK-49381. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit 5706942) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
…esult ### What changes were proposed in this pull request? This PR aims to fix a test case of SPARK-41388 by adding a missed assert. ### Why are the changes needed? To check the result correctly. ### Does this PR introduce _any_ user-facing change? No, this is a test case change. ### How was this patch tested? Pass the CIs with newly added assertion. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #47865 from dongjoon-hyun/SPARK-49381. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit 5706942) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
…esult ### What changes were proposed in this pull request? This PR aims to fix a test case of SPARK-41388 by adding a missed assert. ### Why are the changes needed? To check the result correctly. ### Does this PR introduce _any_ user-facing change? No, this is a test case change. ### How was this patch tested? Pass the CIs with newly added assertion. ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#47865 from dongjoon-hyun/SPARK-49381. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
…esult ### What changes were proposed in this pull request? This PR aims to fix a test case of SPARK-41388 by adding a missed assert. ### Why are the changes needed? To check the result correctly. ### Does this PR introduce _any_ user-facing change? No, this is a test case change. ### How was this patch tested? Pass the CIs with newly added assertion. ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#47865 from dongjoon-hyun/SPARK-49381. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit 5706942) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
…esult ### What changes were proposed in this pull request? This PR aims to fix a test case of SPARK-41388 by adding a missed assert. ### Why are the changes needed? To check the result correctly. ### Does this PR introduce _any_ user-facing change? No, this is a test case change. ### How was this patch tested? Pass the CIs with newly added assertion. ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#47865 from dongjoon-hyun/SPARK-49381. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
What changes were proposed in this pull request?
This PR aims to fix a test case of SPARK-41388 by adding a missed assert.
Why are the changes needed?
To check the result correctly.
Does this PR introduce any user-facing change?
No, this is a test case change.
How was this patch tested?
Pass the CIs with newly added assertion.
Was this patch authored or co-authored using generative AI tooling?
No.