cloudstack/test
Bryan Lima c45596cca3
Refactor of Allocator classes (#9074)
* Refactoring Allocator classes

* Break into smaller methods random and firfit allocators.

* Added unit tests for random and firstfit allocators

* Move random allocator from cloud-plugins to cloud-server

* Add BaseAllocator abstract class for duplicate code

* Add missing license

* Add missing license to unit test file

* Remove host allocator random dependency

* Change exception message on smoke tests

* Remove conditional as it was never actually reached in the original flow

* Fix tests

* Fix flipped parameters

* Fix NPE while listing hosts for migration when suitableHosts is null

* Remove unnecessary stubbings

* Fix checkstyle

* Remove unnecessary file

* Rename exception error messages

* Apply suggestions from code review

Co-authored-by: Fabricio Duarte <fabricio.duarte.jr@gmail.com>

* Rename UserVmDetailVO references to VMInstanceDetailVO

* Remove unused imports

* Add new line at EOF

* Remove unnecessary random allocator pom

* Fix GPU allocation mistake

* Fix failing tests

---------

Co-authored-by: Fabricio Duarte <fabricio.duarte@scclouds.com.br>
Co-authored-by: Fabricio Duarte <fabricio.duarte.jr@gmail.com>
2026-04-30 10:30:02 -03:00
..
bindirbak pre-commit: add hook to trim trailing whitespace (#8205) 2024-05-28 09:01:30 +02:00
conf pre-commit fix mixed line endings in XML files (#10148) 2025-01-03 09:42:09 +01:00
integration Refactor of Allocator classes (#9074) 2026-04-30 10:30:02 -03:00
metadata pre-commit fix mixed line endings in XML files (#10148) 2025-01-03 09:42:09 +01:00
scripts pre-commit upgrade codespell; fix spelling; (#10144) 2025-11-14 14:17:10 +01:00
systemvm pre-commit auto add license for all Markdown files (#11870) 2025-10-24 16:04:22 +05:30
pom.xml Updating pom.xml version numbers for release 4.20.4.0-SNAPSHOT 2026-04-13 15:48:18 +05:30