1
0
mirror of synced 2025-12-25 02:09:19 -05:00
Files
airbyte/docs/integrations/destinations
Greg Solovyev f48a6a0909 destination-s3: add a test for listObjects permission on destination bucket (#10856)
* Add a test for listObjects permission to destination-s3 connector

* add testIAMUserHasListObjectPermission method to S3Destination
  and call this method from S3Destination::check. Method throws
  an exception if IAM user does not have listObjects permission
  on the destination bucket

* add a unit test to S3DestinationTest to verify that S3Destination::check
  fails if listObjects throws an exception

* add a unit test to S3DestinationTest to verify that S3Destination::check
  succeeds if listObjects succeeds

* Add S3DestinationConfigFactory in order to be able to mock S3 client
  used in S3Destination::check

* Addressing review comments:

 - separate positive and negative unit tests
 - fix formatting
 - reuse s3 client for both positive and negative tests

* Add information about PR #10856 to the changelog

* Prepare for publishing new version:
 * Bump version to 0.2.10 in Dockerfile
 * Bump version to 0.2.10 in changelog

* Update destination-s3 version in connector index

* Update seed spec for destination-s3 connector
2022-03-11 15:12:07 -08:00
..

description
description
Data warehouses, data lakes, databases...

Destinations