MCPcopy
hub / github.com/aws/aws-cli / get_key_contents

Method get_key_contents

tests/__init__.py:639–643  ·  view source on GitHub ↗
(self, bucket_name, key_name)

Source from the content-addressed store, hash-verified

637 client.delete_object(Bucket=bucket_name, Key=key_name)
638
639 def get_key_contents(self, bucket_name, key_name):
640 self.wait_until_key_exists(bucket_name, key_name)
641 client = self._create_client_for_bucket(bucket_name)
642 response = client.get_object(Bucket=bucket_name, Key=key_name)
643 return response['Body'].read().decode('utf-8')
644
645 def wait_bucket_exists(self, bucket_name, min_successes=3):
646 client = self._create_client_for_bucket(bucket_name)

Callers 11

test_mv_s3_to_s3Method · 0.45
test_follow_symlinksMethod · 0.45
test_uploadMethod · 0.45
test_unicode_uploadMethod · 0.45
test_multipart_uploadMethod · 0.45

Calls 4

wait_until_key_existsMethod · 0.95
decodeMethod · 0.80
readMethod · 0.45

Tested by 10

test_mv_s3_to_s3Method · 0.36
test_follow_symlinksMethod · 0.36
test_uploadMethod · 0.36
test_unicode_uploadMethod · 0.36
test_multipart_uploadMethod · 0.36