Renamed no_migrations to never_overloaded
This commit is contained in:
parent
1299ef2e03
commit
d204fee90f
@ -23,8 +23,8 @@ log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@contract
|
||||
def no_migrations_factory(time_step, migration_time, params):
|
||||
""" Creates an algorithm that never migrates a VM.
|
||||
def never_overloaded_factory(time_step, migration_time, params):
|
||||
""" Creates an algorithm that never considers the host overloaded.
|
||||
|
||||
:param time_step: The length of the simulation time step in seconds.
|
||||
:type time_step: int,>=0
|
||||
|
@ -24,13 +24,13 @@ logging.disable(logging.CRITICAL)
|
||||
class Trivial(TestCase):
|
||||
|
||||
@qc(10)
|
||||
def overloading_steps(
|
||||
def never_overloaded_factory(
|
||||
time_step=int_(min=0, max=10),
|
||||
migration_time=float_(min=0, max=10),
|
||||
utilization=list_(of=float)
|
||||
):
|
||||
alg = trivial.no_migrations_factory(time_step, migration_time,
|
||||
{'threshold': 0.5})
|
||||
alg = trivial.never_overloaded_factory(time_step, migration_time,
|
||||
{'threshold': 0.5})
|
||||
assert alg(utilization) == (False, {})
|
||||
|
||||
def test_threshold_factory(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user