Files
ubicloud/spec/model/vm_host_slice_spec.rb
Enes Cakir e1286b290a Add create_vm_host spec helper
The VmHost model requires a Sshable record due to database constraints.
Currently, we're creating VmHost models with dummy Sshable data across
multiple test locations, leading to code duplication.

Additionally, we're creating VmHost instances using `VmHost.create(...)
{ _1.id = Sshable.create.id }`, which results in VmHost having a Sshable
UBID instead of its own UBID. While this doesn't break any test, it's
conceptually incorrect and should be fixed.
2025-02-03 08:34:22 +03:00

5.2 KiB