Closed (fixed)
Project:
Cloud
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
6 Dec 2018 at 00:00 UTC
Updated:
22 Dec 2018 at 06:34 UTC
Jump to comment: Most recent, Most recent file
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 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 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 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 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 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 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