Renamed no_migrations to never_overloaded

This commit is contained in:
Anton Beloglazov 2012-12-04 13:19:42 +11:00
parent 1299ef2e03
commit d204fee90f
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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):