Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Add test cases for Attaching and Detaching instances from a volume.
Comment | File | Size | Author |
---|---|---|---|
#13 | 3018419_4.patch | 928 bytes | baldwinlouie |
Comments
Comment #2
baldwinlouie CreditAttribution: baldwinlouie commentedAttaching patch with test case. Also by writing the test case, I found a bug in the VolumeAttachForm.php. This patch includes that fix as well.
Comment #3
baldwinlouie CreditAttribution: baldwinlouie commentedUploading a new patch. Previous patch did not include the new test case file.
Comment #4
yas@baldwin,
Could you please repeat the test like the following code ? (c.f. https://www.drupal.org/project/cloud/issues/3017114)
Comment #5
yasComment #6
baldwinlouie CreditAttribution: baldwinlouie commentedAdded a loop to perform the test case multiple times.
Comment #7
yas@baldwinlouie
Thank you for adding the loop.
As we discussed inhttps://www.drupal.org/project/cloud/issues/3017114, what about the following as our default test case design pattern for repeating? We can show our intention to the other developer, that we repeat the test by giving the max repeat count parameter explicitly.
Comment #8
baldwinlouie CreditAttribution: baldwinlouie commented@yas, I've uploaded the new patch with the design pattern we agreed on.
Comment #9
yas@baldwinlouie
Thank you for the modification. Now it looks good to me.
@xiaohua-guan
Do you agree to the patch?
Comment #10
Xiaohua Guan CreditAttribution: Xiaohua Guan commented@yas
It looks ok to me. And I changed the status to RTBC.
Comment #12
yas@baldwinlouie
@xiaohua-guan
I merged it and closed this issue. Thank you for your contribution!
Comment #13
baldwinlouie CreditAttribution: baldwinlouie commented@yas, With the recent CamelCase refactoring, the Volume Attach/Detach test stopped working. I'm attaching an updated patch to fix this.
Comment #14
yasLooks good, I'll merge the patch. Thanks!
Comment #16
yas