(self)
| 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() |
nothing calls this directly
no test coverage detected