def create_and_assign_allocation_source(context):
    context.ts = parse('2016-10-04T00:00+00:00')
    context.allocation_source_1 = create_allocation_source(
        name='TestSource', compute_allowed=1000, timestamp=context.ts
    )
    context.amit.assign_allocation_source_to_user(
        context.allocation_source_1, timestamp=context.ts
    )
Example #2
0
def create_and_assign_allocation_source(context):
    context.ts = parse('2016-10-04T00:00+00:00')
    context.allocation_source_1 = create_allocation_source(name='TestSource', compute_allowed=1000,
                                                           timestamp=context.ts)
    context.amit.assign_allocation_source_to_user(context.allocation_source_1, timestamp=context.ts)
Example #3
0
def new_allocation_source_created(context):
    context.allocation_source_2 = create_allocation_source(name='DefaultAllocationSource',
                                                           compute_allowed=128,
                                                           timestamp=context.ts)