Example #1
0
def fake_bucket_with_non_matching_keys():
    fb = FakeBucket('fakebucket_no_match')
    for key_path in BAD_KEYS:
        new_key = fb.new_key(key_path)
        new_key.set_contents_from_string(key_path)
    fb.force_consistent_list()
    return fb
Example #2
0
def fake_bucket_with_non_matching_keys():
    fb = FakeBucket('fakebucket_no_match')
    for key_path in BAD_KEYS:
        new_key = fb.new_key(key_path)
        new_key.set_contents_from_string(key_path)
    fb.force_consistent_list()
    return fb
Example #3
0
def fake_bucket():
    fb = FakeBucket('fakebucket')
    key_path = "mycroft/stream/{0}/schema/{1}/schema.yaml"
    for lgn in LOG_NAMES:
        for version in VERSIONS:
            path = key_path.format(lgn, version)
            new_key = fb.new_key(path)
            new_key.set_contents_from_string("{0}_{1}".format(lgn, version))
    fb.force_consistent_list()
    return fb
Example #4
0
def fake_bucket():
    fb = FakeBucket('fakebucket')
    key_path = "mycroft/stream/{0}/schema/{1}/schema.yaml"
    for lgn in LOG_NAMES:
        for version in VERSIONS:
            path = key_path.format(lgn, version)
            new_key = fb.new_key(path)
            new_key.set_contents_from_string("{0}_{1}".format(lgn, version))
    fb.force_consistent_list()
    return fb