Example #1
0
def every_service_is_stopped(step):
    for data in step.hashes:
        step_assert(step).assert_true(utils.service(data['ServiceName']).stopped())
Example #2
0
def restart_services(step):
    for data in step.hashes:
        step_assert(step).assert_true(utils.service(data['ServiceName']).restart())
Example #3
0
def stop_services(step):
    for data in step.hashes:
        step_assert(step).assert_true(utils.service(data['ServiceName']).stop())
Example #4
0
def every_service_is_running(step):
    for data in step.hashes:
        step_assert(step).assert_true(utils.service(data['ServiceName']).running())