MCPcopy Index your code
hub / github.com/aws/aws-cli / test_query

Method test_query

tests/integration/test_cli.py:500–509  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

498 self.assertEqual(len(response_json['Contents']), 1)
499
500 def test_query(self):
501 bucket_name = self.create_bucket()
502 self.put_object(bucket_name, 'foo.txt', contents=b'bar')
503 p = aws(
504 f's3api list-objects --bucket {bucket_name} '
505 '--query Contents[].Key --output json'
506 )
507 self.assert_no_errors(p)
508 response_json = p.json
509 self.assertEqual(response_json, ['foo.txt'])
510
511 def test_no_sign_requests(self):
512 bucket_name = self.create_bucket()

Callers

nothing calls this directly

Calls 4

awsFunction · 0.90
create_bucketMethod · 0.45
put_objectMethod · 0.45
assert_no_errorsMethod · 0.45

Tested by

no test coverage detected