Esempio n. 1
0
def deallocate_pools_for_aurorabridge_tests(request):
    '''
    Deallocates pools when all aurorabridge tests complete
    '''
    yield

    if is_aurora_bridge_test(request):
        fix = failure_fixture.FailureFixture()
        fix.setup()
        deallocate_pools(fix.client)
Esempio n. 2
0
def failure_tester():
    """
    Creates the test fixture to use for failure tests.
    """
    fix = failure_fixture.FailureFixture()
    print  # to format log output
    fix.setup()
    yield fix

    fix.teardown()
Esempio n. 3
0
def failure_tester(request):
    """
    Creates the test fixture for failure tests.
    """
    fix = failure_fixture.FailureFixture()
    print  # to format log output
    fix.setup()
    yield fix

    fix.reset_client()

    if is_aurora_bridge_test(request):
        # Delete all jobs without deallocating the pools
        cleanup_jobs(fix.client)
    else:
        # Stop all jobs and deallocate all the pools
        cleanup_test(fix.client)

    fix.teardown()