Commit 5cd9c83
feat: Do not create VM if system or bootstrap disks are marked for deletion (#492)
* refactor: Make available complete image info, instead of UUID only
We plan to make decisions based on some of the information.
* fixup! refactor: Make available complete image info, instead of UUID only
Refactor further; add unit tests with mocks
* fixup! refactor: Make available complete image info, instead of UUID only
Use longer name for receivers
* fixup! refactor: Make available complete image info, instead of UUID only
Add unit test for new String method
* fixup! refactor: Make available complete image info, instead of UUID only
Add envtest-based test for getDiskList. I adapted this from Ilya's work
in #493.
Co-authored-by: Ilya Alekseyev <[email protected]>
* fixup! refactor: Make available complete image info, instead of UUID only
Rename function from GetImageByNameOrUUID to GetImage
* fixup! refactor: Make available complete image info, instead of UUID only
Add and use IsName and IsUUID helpers
* fixup! refactor: Make available complete image info, instead of UUID only
Rename input parameter from image to id, for clarity
* fixup! refactor: Make available complete image info, instead of UUID only
As requested, do not use nested switch
* feat: Do not create VM if system or bootstrap disks are marked for deletion
* fixup! feat: Do not create VM if system or bootstrap disks are marked for deletion
Do not export function
* fixup! feat: Do not create VM if system or bootstrap disks are marked for deletion
Use constants for image state
* fixup! feat: Do not create VM if system or bootstrap disks are marked for deletion
Replace ginkgo with standard tests; cover failure cases
* fixup! feat: Do not create VM if system or bootstrap disks are marked for deletion
Export helper function, as requested
---------
Co-authored-by: Ilya Alekseyev <[email protected]>1 parent 41163a5 commit 5cd9c83
File tree
3 files changed
+229
-133
lines changed- controllers
3 files changed
+229
-133
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
| |||
335 | 338 | | |
336 | 339 | | |
337 | 340 | | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
338 | 346 | | |
339 | 347 | | |
340 | 348 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
782 | 782 | | |
783 | 783 | | |
784 | 784 | | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
785 | 794 | | |
786 | 795 | | |
787 | 796 | | |
| |||
805 | 814 | | |
806 | 815 | | |
807 | 816 | | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
808 | 826 | | |
809 | 827 | | |
810 | 828 | | |
| |||
0 commit comments