Ejemplo n.º 1
0
def s3bucket_set_keys_bucket(context, b):
    step = u"""
        Given I set the contents of key "{}" in bucket "{}" to "{}"
    """
    for row in context.table:
        context.execute_steps(step.format(row['key'], b, row['content']))
Ejemplo n.º 2
0
def s3bucket_keys_bucket(context, bucket):
    step = u"""
        Given the key "{}" exists in the bucket "{}"
    """
    for row in context.table:
        context.execute_steps(step.format(row['key'], bucket))